Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

iio: accel: adxl345: Drop comma in terminator entries

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>

authored by

Andy Shevchenko and committed by
Jonathan Cameron
b8f83abd 5b4c63f6

+3 -3
+1 -1
drivers/iio/accel/adxl345_core.c
··· 195 195 196 196 static struct attribute *adxl345_attrs[] = { 197 197 &iio_const_attr_sampling_frequency_available.dev_attr.attr, 198 - NULL, 198 + NULL 199 199 }; 200 200 201 201 static const struct attribute_group adxl345_attrs_group = {
+1 -1
drivers/iio/accel/adxl345_i2c.c
··· 41 41 static const struct of_device_id adxl345_of_match[] = { 42 42 { .compatible = "adi,adxl345", .data = (const void *)ADXL345 }, 43 43 { .compatible = "adi,adxl375", .data = (const void *)ADXL375 }, 44 - { }, 44 + { } 45 45 }; 46 46 47 47 MODULE_DEVICE_TABLE(of, adxl345_of_match);
+1 -1
drivers/iio/accel/adxl345_spi.c
··· 47 47 static const struct of_device_id adxl345_of_match[] = { 48 48 { .compatible = "adi,adxl345", .data = (const void *)ADXL345 }, 49 49 { .compatible = "adi,adxl375", .data = (const void *)ADXL375 }, 50 - { }, 50 + { } 51 51 }; 52 52 53 53 MODULE_DEVICE_TABLE(of, adxl345_of_match);