Skip to content

Commit 09e3bdf

Browse files
committed
iio: adc: standardize on formatting for id match tables
This is a frequent minor comment in reviews, so start cleaning up existing drivers in the hope we get fewer cases of cut and paste. There are not kernel wide rules for these, but for IIO the style that I prefer (and hence most common) is: - Space after { and before } - No comma after terminator { } This may cause merge conflicts but they should be trivial to resolve hence I have not broken this into per driver patches. Link: https://patch.msgid.link/[email protected] Signed-off-by: Jonathan Cameron <[email protected]>
1 parent 07b2412 commit 09e3bdf

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+169
-169
lines changed

drivers/iio/adc/ad7091r5.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,13 +112,13 @@ static int ad7091r5_i2c_probe(struct i2c_client *i2c)
112112

113113
static const struct of_device_id ad7091r5_dt_ids[] = {
114114
{ .compatible = "adi,ad7091r5", .data = &ad7091r5_init_info },
115-
{},
115+
{ }
116116
};
117117
MODULE_DEVICE_TABLE(of, ad7091r5_dt_ids);
118118

119119
static const struct i2c_device_id ad7091r5_i2c_ids[] = {
120-
{"ad7091r5", (kernel_ulong_t)&ad7091r5_init_info },
121-
{}
120+
{ "ad7091r5", (kernel_ulong_t)&ad7091r5_init_info },
121+
{ }
122122
};
123123
MODULE_DEVICE_TABLE(i2c, ad7091r5_i2c_ids);
124124

drivers/iio/adc/ad7124.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1008,14 +1008,14 @@ static const struct of_device_id ad7124_of_match[] = {
10081008
.data = &ad7124_chip_info_tbl[ID_AD7124_4], },
10091009
{ .compatible = "adi,ad7124-8",
10101010
.data = &ad7124_chip_info_tbl[ID_AD7124_8], },
1011-
{ },
1011+
{ }
10121012
};
10131013
MODULE_DEVICE_TABLE(of, ad7124_of_match);
10141014

10151015
static const struct spi_device_id ad71124_ids[] = {
10161016
{ "ad7124-4", (kernel_ulong_t)&ad7124_chip_info_tbl[ID_AD7124_4] },
10171017
{ "ad7124-8", (kernel_ulong_t)&ad7124_chip_info_tbl[ID_AD7124_8] },
1018-
{}
1018+
{ }
10191019
};
10201020
MODULE_DEVICE_TABLE(spi, ad71124_ids);
10211021

drivers/iio/adc/ad7192.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ static const struct iio_chan_spec_ext_info ad7192_calibsys_ext_info[] = {
286286
&ad7192_syscalib_mode_enum),
287287
IIO_ENUM_AVAILABLE("sys_calibration_mode", IIO_SHARED_BY_TYPE,
288288
&ad7192_syscalib_mode_enum),
289-
{}
289+
{ }
290290
};
291291

292292
static struct ad7192_state *ad_sigma_delta_to_ad7192(struct ad_sigma_delta *sd)
@@ -1431,7 +1431,7 @@ static const struct of_device_id ad7192_of_match[] = {
14311431
{ .compatible = "adi,ad7193", .data = &ad7192_chip_info_tbl[ID_AD7193] },
14321432
{ .compatible = "adi,ad7194", .data = &ad7192_chip_info_tbl[ID_AD7194] },
14331433
{ .compatible = "adi,ad7195", .data = &ad7192_chip_info_tbl[ID_AD7195] },
1434-
{}
1434+
{ }
14351435
};
14361436
MODULE_DEVICE_TABLE(of, ad7192_of_match);
14371437

@@ -1441,7 +1441,7 @@ static const struct spi_device_id ad7192_ids[] = {
14411441
{ "ad7193", (kernel_ulong_t)&ad7192_chip_info_tbl[ID_AD7193] },
14421442
{ "ad7194", (kernel_ulong_t)&ad7192_chip_info_tbl[ID_AD7194] },
14431443
{ "ad7195", (kernel_ulong_t)&ad7192_chip_info_tbl[ID_AD7195] },
1444-
{}
1444+
{ }
14451445
};
14461446
MODULE_DEVICE_TABLE(spi, ad7192_ids);
14471447

drivers/iio/adc/ad7266.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -457,8 +457,8 @@ static int ad7266_probe(struct spi_device *spi)
457457
}
458458

459459
static const struct spi_device_id ad7266_id[] = {
460-
{"ad7265", 0},
461-
{"ad7266", 0},
460+
{ "ad7265", 0 },
461+
{ "ad7266", 0 },
462462
{ }
463463
};
464464
MODULE_DEVICE_TABLE(spi, ad7266_id);

drivers/iio/adc/ad7280a.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1090,8 +1090,8 @@ static int ad7280_probe(struct spi_device *spi)
10901090
}
10911091

10921092
static const struct spi_device_id ad7280_id[] = {
1093-
{"ad7280a", 0},
1094-
{}
1093+
{ "ad7280a", 0 },
1094+
{ }
10951095
};
10961096
MODULE_DEVICE_TABLE(spi, ad7280_id);
10971097

drivers/iio/adc/ad7291.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -537,14 +537,14 @@ static int ad7291_probe(struct i2c_client *client)
537537

538538
static const struct i2c_device_id ad7291_id[] = {
539539
{ "ad7291" },
540-
{}
540+
{ }
541541
};
542542

543543
MODULE_DEVICE_TABLE(i2c, ad7291_id);
544544

545545
static const struct of_device_id ad7291_of_match[] = {
546546
{ .compatible = "adi,ad7291" },
547-
{}
547+
{ }
548548
};
549549
MODULE_DEVICE_TABLE(of, ad7291_of_match);
550550

drivers/iio/adc/ad7292.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,13 +301,13 @@ static int ad7292_probe(struct spi_device *spi)
301301

302302
static const struct spi_device_id ad7292_id_table[] = {
303303
{ "ad7292", 0 },
304-
{}
304+
{ }
305305
};
306306
MODULE_DEVICE_TABLE(spi, ad7292_id_table);
307307

308308
static const struct of_device_id ad7292_of_match[] = {
309309
{ .compatible = "adi,ad7292" },
310-
{ },
310+
{ }
311311
};
312312
MODULE_DEVICE_TABLE(of, ad7292_of_match);
313313

drivers/iio/adc/ad7298.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,8 +355,8 @@ static const struct acpi_device_id ad7298_acpi_ids[] = {
355355
MODULE_DEVICE_TABLE(acpi, ad7298_acpi_ids);
356356

357357
static const struct spi_device_id ad7298_id[] = {
358-
{"ad7298", 0},
359-
{}
358+
{ "ad7298", 0 },
359+
{ }
360360
};
361361
MODULE_DEVICE_TABLE(spi, ad7298_id);
362362

drivers/iio/adc/ad7476.c

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -409,35 +409,35 @@ static int ad7476_probe(struct spi_device *spi)
409409
}
410410

411411
static const struct spi_device_id ad7476_id[] = {
412-
{"ad7091", ID_AD7091},
413-
{"ad7091r", ID_AD7091R},
414-
{"ad7273", ID_AD7273},
415-
{"ad7274", ID_AD7274},
416-
{"ad7276", ID_AD7276},
417-
{"ad7277", ID_AD7277},
418-
{"ad7278", ID_AD7278},
419-
{"ad7466", ID_AD7466},
420-
{"ad7467", ID_AD7467},
421-
{"ad7468", ID_AD7468},
422-
{"ad7475", ID_AD7475},
423-
{"ad7476", ID_AD7466},
424-
{"ad7476a", ID_AD7466},
425-
{"ad7477", ID_AD7467},
426-
{"ad7477a", ID_AD7467},
427-
{"ad7478", ID_AD7468},
428-
{"ad7478a", ID_AD7468},
429-
{"ad7495", ID_AD7495},
430-
{"ad7910", ID_AD7467},
431-
{"ad7920", ID_AD7466},
432-
{"ad7940", ID_AD7940},
433-
{"adc081s", ID_ADC081S},
434-
{"adc101s", ID_ADC101S},
435-
{"adc121s", ID_ADC121S},
436-
{"ads7866", ID_ADS7866},
437-
{"ads7867", ID_ADS7867},
438-
{"ads7868", ID_ADS7868},
439-
{"ltc2314-14", ID_LTC2314_14},
440-
{}
412+
{ "ad7091", ID_AD7091 },
413+
{ "ad7091r", ID_AD7091R },
414+
{ "ad7273", ID_AD7273 },
415+
{ "ad7274", ID_AD7274 },
416+
{ "ad7276", ID_AD7276},
417+
{ "ad7277", ID_AD7277 },
418+
{ "ad7278", ID_AD7278 },
419+
{ "ad7466", ID_AD7466 },
420+
{ "ad7467", ID_AD7467 },
421+
{ "ad7468", ID_AD7468 },
422+
{ "ad7475", ID_AD7475 },
423+
{ "ad7476", ID_AD7466 },
424+
{ "ad7476a", ID_AD7466 },
425+
{ "ad7477", ID_AD7467 },
426+
{ "ad7477a", ID_AD7467 },
427+
{ "ad7478", ID_AD7468 },
428+
{ "ad7478a", ID_AD7468 },
429+
{ "ad7495", ID_AD7495 },
430+
{ "ad7910", ID_AD7467 },
431+
{ "ad7920", ID_AD7466 },
432+
{ "ad7940", ID_AD7940 },
433+
{ "adc081s", ID_ADC081S },
434+
{ "adc101s", ID_ADC101S },
435+
{ "adc121s", ID_ADC121S },
436+
{ "ads7866", ID_ADS7866 },
437+
{ "ads7867", ID_ADS7867 },
438+
{ "ads7868", ID_ADS7868 },
439+
{ "ltc2314-14", ID_LTC2314_14 },
440+
{ }
441441
};
442442
MODULE_DEVICE_TABLE(spi, ad7476_id);
443443

drivers/iio/adc/ad7606_par.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ static const struct of_device_id ad7606_of_match[] = {
8383
{ .compatible = "adi,ad7606-4" },
8484
{ .compatible = "adi,ad7606-6" },
8585
{ .compatible = "adi,ad7606-8" },
86-
{ },
86+
{ }
8787
};
8888
MODULE_DEVICE_TABLE(of, ad7606_of_match);
8989

0 commit comments

Comments
 (0)