Skip to content

Commit

Permalink
iio: accel: adxl345: Drop comma in terminator entries
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Andy Shevchenko authored and Jonathan Cameron committed Feb 26, 2022
1 parent 5b4c63f commit b8f83ab
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion drivers/iio/accel/adxl345_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
2 changes: 1 addition & 1 deletion drivers/iio/accel/adxl345_i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion drivers/iio/accel/adxl345_spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b8f83ab

Please sign in to comment.