iio: accel: adxl345: Drop comma in terminator entries
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 22 Feb 2022 09:00:08 +0000 (11:00 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 26 Feb 2022 19:11:32 +0000 (19:11 +0000)
Terminator entries are by definition should terminate the array.
Dropping comma make this enforced at compile time.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Tested-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Link: https://lore.kernel.org/r/20220222090009.2060-7-andriy.shevchenko@linux.intel.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/accel/adxl345_core.c
drivers/iio/accel/adxl345_i2c.c
drivers/iio/accel/adxl345_spi.c

index 4e4562fc35c9855e65af3e1d6c871b2395e36d3a..370bfec1275a156301b7f7ae172b6281dd5bd2aa 100644 (file)
@@ -195,7 +195,7 @@ static IIO_CONST_ATTR_SAMP_FREQ_AVAIL(
 
 static struct attribute *adxl345_attrs[] = {
        &iio_const_attr_sampling_frequency_available.dev_attr.attr,
-       NULL,
+       NULL
 };
 
 static const struct attribute_group adxl345_attrs_group = {
index 283edb0babb4c64603c6a07bde2e63eec5d7f425..fa91deaf5b4aaf8147aad9f3f3099995c9b97c35 100644 (file)
@@ -41,7 +41,7 @@ MODULE_DEVICE_TABLE(i2c, adxl345_i2c_id);
 static const struct of_device_id adxl345_of_match[] = {
        { .compatible = "adi,adxl345", .data = (const void *)ADXL345 },
        { .compatible = "adi,adxl375", .data = (const void *)ADXL375 },
-       { },
+       { }
 };
 
 MODULE_DEVICE_TABLE(of, adxl345_of_match);
index 850ac616d65e1d794397552a8d5a6884f2643156..2f5fc565f1f410d9aeeab9c7b97012656e3c67a1 100644 (file)
@@ -47,7 +47,7 @@ MODULE_DEVICE_TABLE(spi, adxl345_spi_id);
 static const struct of_device_id adxl345_of_match[] = {
        { .compatible = "adi,adxl345", .data = (const void *)ADXL345 },
        { .compatible = "adi,adxl375", .data = (const void *)ADXL375 },
-       { },
+       { }
 };
 
 MODULE_DEVICE_TABLE(of, adxl345_of_match);