Skip to content

Commit 060a518

Browse files
grgbrjic23
authored andcommitted
iio:st_pressure: clean useless static channel initializers
Some static channels are explicitly initialized with default values. Remove them to enhance readability. Signed-off-by: Gregor Boirie <gregor.boirie@parrot.com> Tested-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
1 parent 85d7913 commit 060a518

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

drivers/iio/pressure/st_pressure_core.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,6 @@
224224
static const struct iio_chan_spec st_press_1_channels[] = {
225225
{
226226
.type = IIO_PRESSURE,
227-
.channel2 = IIO_NO_MOD,
228227
.address = ST_PRESS_1_OUT_XL_ADDR,
229228
.scan_index = 0,
230229
.scan_type = {
@@ -235,11 +234,9 @@ static const struct iio_chan_spec st_press_1_channels[] = {
235234
},
236235
.info_mask_separate =
237236
BIT(IIO_CHAN_INFO_RAW) | BIT(IIO_CHAN_INFO_SCALE),
238-
.modified = 0,
239237
},
240238
{
241239
.type = IIO_TEMP,
242-
.channel2 = IIO_NO_MOD,
243240
.address = ST_TEMP_1_OUT_L_ADDR,
244241
.scan_index = 1,
245242
.scan_type = {
@@ -252,15 +249,13 @@ static const struct iio_chan_spec st_press_1_channels[] = {
252249
BIT(IIO_CHAN_INFO_RAW) |
253250
BIT(IIO_CHAN_INFO_SCALE) |
254251
BIT(IIO_CHAN_INFO_OFFSET),
255-
.modified = 0,
256252
},
257253
IIO_CHAN_SOFT_TIMESTAMP(2)
258254
};
259255

260256
static const struct iio_chan_spec st_press_lps001wp_channels[] = {
261257
{
262258
.type = IIO_PRESSURE,
263-
.channel2 = IIO_NO_MOD,
264259
.address = ST_PRESS_LPS001WP_OUT_L_ADDR,
265260
.scan_index = 0,
266261
.scan_type = {
@@ -272,11 +267,9 @@ static const struct iio_chan_spec st_press_lps001wp_channels[] = {
272267
.info_mask_separate =
273268
BIT(IIO_CHAN_INFO_RAW) |
274269
BIT(IIO_CHAN_INFO_SCALE),
275-
.modified = 0,
276270
},
277271
{
278272
.type = IIO_TEMP,
279-
.channel2 = IIO_NO_MOD,
280273
.address = ST_TEMP_LPS001WP_OUT_L_ADDR,
281274
.scan_index = 1,
282275
.scan_type = {
@@ -288,15 +281,13 @@ static const struct iio_chan_spec st_press_lps001wp_channels[] = {
288281
.info_mask_separate =
289282
BIT(IIO_CHAN_INFO_RAW) |
290283
BIT(IIO_CHAN_INFO_SCALE),
291-
.modified = 0,
292284
},
293285
IIO_CHAN_SOFT_TIMESTAMP(2)
294286
};
295287

296288
static const struct iio_chan_spec st_press_lps22hb_channels[] = {
297289
{
298290
.type = IIO_PRESSURE,
299-
.channel2 = IIO_NO_MOD,
300291
.address = ST_PRESS_1_OUT_XL_ADDR,
301292
.scan_index = 0,
302293
.scan_type = {
@@ -309,7 +300,6 @@ static const struct iio_chan_spec st_press_lps22hb_channels[] = {
309300
BIT(IIO_CHAN_INFO_RAW) |
310301
BIT(IIO_CHAN_INFO_SCALE),
311302
.info_mask_shared_by_all = BIT(IIO_CHAN_INFO_SAMP_FREQ),
312-
.modified = 0,
313303
},
314304
{
315305
.type = IIO_TEMP,

0 commit comments

Comments
 (0)