Message ID | 20211230174911.78291-6-jic23@kernel.org (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
Series | IIO: Tidy up inconsistent spacing in ID tables. | expand |
On Thu, Dec 30, 2021 at 9:44 AM Jonathan Cameron <jic23@kernel.org> wrote: > > From: Jonathan Cameron <Jonathan.Cameron@huawei.com> > > The spacing in this driver was inconsistent so make sure we have a space > after { and before } for the two id tables. > Part of aim is to avoid providing examples of this inconsistency that > get copied into new drivers. > > Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> > Cc: Nikita Travkin <nikita@trvn.ru> > Cc: Maslov Dmitry <maslovdmitry@seeed.cc> > --- Reviewed-by: Gwendal Grignou <gwendal@chromium.org> > drivers/iio/light/ltr501.c | 14 +++++++------- > 1 file changed, 7 insertions(+), 7 deletions(-) > > diff --git a/drivers/iio/light/ltr501.c b/drivers/iio/light/ltr501.c > index 47d61ec2bb50..d1532ef5f08b 100644 > --- a/drivers/iio/light/ltr501.c > +++ b/drivers/iio/light/ltr501.c > @@ -1632,18 +1632,18 @@ static int ltr501_resume(struct device *dev) > static SIMPLE_DEV_PM_OPS(ltr501_pm_ops, ltr501_suspend, ltr501_resume); > > static const struct acpi_device_id ltr_acpi_match[] = { > - {"LTER0501", ltr501}, > - {"LTER0559", ltr559}, > - {"LTER0301", ltr301}, > + { "LTER0501", ltr501 }, > + { "LTER0559", ltr559 }, > + { "LTER0301", ltr301 }, > { }, > }; > MODULE_DEVICE_TABLE(acpi, ltr_acpi_match); > > static const struct i2c_device_id ltr501_id[] = { > - { "ltr501", ltr501}, > - { "ltr559", ltr559}, > - { "ltr301", ltr301}, > - { "ltr303", ltr303}, > + { "ltr501", ltr501 }, > + { "ltr559", ltr559 }, > + { "ltr301", ltr301 }, > + { "ltr303", ltr303 }, > { } > }; > MODULE_DEVICE_TABLE(i2c, ltr501_id); > -- > 2.34.1 >
diff --git a/drivers/iio/light/ltr501.c b/drivers/iio/light/ltr501.c index 47d61ec2bb50..d1532ef5f08b 100644 --- a/drivers/iio/light/ltr501.c +++ b/drivers/iio/light/ltr501.c @@ -1632,18 +1632,18 @@ static int ltr501_resume(struct device *dev) static SIMPLE_DEV_PM_OPS(ltr501_pm_ops, ltr501_suspend, ltr501_resume); static const struct acpi_device_id ltr_acpi_match[] = { - {"LTER0501", ltr501}, - {"LTER0559", ltr559}, - {"LTER0301", ltr301}, + { "LTER0501", ltr501 }, + { "LTER0559", ltr559 }, + { "LTER0301", ltr301 }, { }, }; MODULE_DEVICE_TABLE(acpi, ltr_acpi_match); static const struct i2c_device_id ltr501_id[] = { - { "ltr501", ltr501}, - { "ltr559", ltr559}, - { "ltr301", ltr301}, - { "ltr303", ltr303}, + { "ltr501", ltr501 }, + { "ltr559", ltr559 }, + { "ltr301", ltr301 }, + { "ltr303", ltr303 }, { } }; MODULE_DEVICE_TABLE(i2c, ltr501_id);