Skip to content

Commit

Permalink
iio: accel: adxl345: Remove unneeded blank lines
Browse files Browse the repository at this point in the history
Remove unneeded blank lines where they separate the data type definitions
and the macros which are using them.

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-8-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 b8f83ab commit 4781f3e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
3 changes: 0 additions & 3 deletions drivers/iio/accel/adxl345_i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,13 @@ static const struct i2c_device_id adxl345_i2c_id[] = {
{ "adxl375", ADXL375 },
{ }
};

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);

static const struct acpi_device_id adxl345_acpi_match[] = {
Expand All @@ -61,7 +59,6 @@ static struct i2c_driver adxl345_i2c_driver = {
.probe_new = adxl345_i2c_probe,
.id_table = adxl345_i2c_id,
};

module_i2c_driver(adxl345_i2c_driver);

MODULE_AUTHOR("Eva Rachel Retuya <eraretuya@gmail.com>");
Expand Down
3 changes: 0 additions & 3 deletions drivers/iio/accel/adxl345_spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,13 @@ static const struct spi_device_id adxl345_spi_id[] = {
{ "adxl375", ADXL375 },
{ }
};

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);

static const struct acpi_device_id adxl345_acpi_match[] = {
Expand All @@ -67,7 +65,6 @@ static struct spi_driver adxl345_spi_driver = {
.probe = adxl345_spi_probe,
.id_table = adxl345_spi_id,
};

module_spi_driver(adxl345_spi_driver);

MODULE_AUTHOR("Eva Rachel Retuya <eraretuya@gmail.com>");
Expand Down

0 comments on commit 4781f3e

Please sign in to comment.