summaryrefslogtreecommitdiffstats
path: root/drivers/iio/adc/ad7793.c
diff options
context:
space:
mode:
authorJonathan Cameron <Jonathan.Cameron@huawei.com>2024-08-18 20:09:12 +0200
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2024-09-05 20:27:13 +0200
commit09e3bdfe499d5b0ed24c123f7c5a12459db217db (patch)
treea7ecbcca09232229db154d7dc3d332dd463c9773 /drivers/iio/adc/ad7793.c
parentiio: proximity: aw96103: Add support for aw96103/aw96105 proximity sensor (diff)
downloadlinux-09e3bdfe499d5b0ed24c123f7c5a12459db217db.tar.xz
linux-09e3bdfe499d5b0ed24c123f7c5a12459db217db.zip
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/20240818180912.719399-1-jic23@kernel.org Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/adc/ad7793.c')
-rw-r--r--drivers/iio/adc/ad7793.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/iio/adc/ad7793.c b/drivers/iio/adc/ad7793.c
index d4ad7e0b515a..abebd519cafa 100644
--- a/drivers/iio/adc/ad7793.c
+++ b/drivers/iio/adc/ad7793.c
@@ -824,16 +824,16 @@ static int ad7793_probe(struct spi_device *spi)
}
static const struct spi_device_id ad7793_id[] = {
- {"ad7785", ID_AD7785},
- {"ad7792", ID_AD7792},
- {"ad7793", ID_AD7793},
- {"ad7794", ID_AD7794},
- {"ad7795", ID_AD7795},
- {"ad7796", ID_AD7796},
- {"ad7797", ID_AD7797},
- {"ad7798", ID_AD7798},
- {"ad7799", ID_AD7799},
- {}
+ { "ad7785", ID_AD7785 },
+ { "ad7792", ID_AD7792 },
+ { "ad7793", ID_AD7793 },
+ { "ad7794", ID_AD7794 },
+ { "ad7795", ID_AD7795 },
+ { "ad7796", ID_AD7796 },
+ { "ad7797", ID_AD7797 },
+ { "ad7798", ID_AD7798 },
+ { "ad7799", ID_AD7799 },
+ { }
};
MODULE_DEVICE_TABLE(spi, ad7793_id);