diff mbox series

[08/16] iio:proximity:srf04: White space cleanup of spacing around {} in id tables

Message ID 20211230174911.78291-9-jic23@kernel.org (mailing list archive)
State Accepted
Headers show
Series IIO: Tidy up inconsistent spacing in ID tables. | expand

Commit Message

Jonathan Cameron Dec. 30, 2021, 5:49 p.m. UTC
From: Jonathan Cameron <Jonathan.Cameron@huawei.com>

The spacing in this driver was inconsistent with a space after the {
but not before the }.  Tidy this up to avoid providing a bad example
to copy into new drivers.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Cc: Andreas Klinger <ak@it-klinger.de>
---
 drivers/iio/proximity/srf04.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

Comments

Gwendal Grignou Dec. 31, 2021, 5:48 a.m. UTC | #1
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 with a space after the {
> but not before the }.  Tidy this up to avoid providing a bad example
> to copy into new drivers.
>
> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
> Cc: Andreas Klinger <ak@it-klinger.de>
> ---
Reviewed-by: Gwendal Grignou <gwendal@chromium.org>
>  drivers/iio/proximity/srf04.c | 12 ++++++------
>  1 file changed, 6 insertions(+), 6 deletions(-)
>
> diff --git a/drivers/iio/proximity/srf04.c b/drivers/iio/proximity/srf04.c
> index fe88b2bb60bc..4e6286765f01 100644
> --- a/drivers/iio/proximity/srf04.c
> +++ b/drivers/iio/proximity/srf04.c
> @@ -235,12 +235,12 @@ static const struct iio_chan_spec srf04_chan_spec[] = {
>  };
>
>  static const struct of_device_id of_srf04_match[] = {
> -       { .compatible = "devantech,srf04", .data = &srf04_cfg},
> -       { .compatible = "maxbotix,mb1000", .data = &mb_lv_cfg},
> -       { .compatible = "maxbotix,mb1010", .data = &mb_lv_cfg},
> -       { .compatible = "maxbotix,mb1020", .data = &mb_lv_cfg},
> -       { .compatible = "maxbotix,mb1030", .data = &mb_lv_cfg},
> -       { .compatible = "maxbotix,mb1040", .data = &mb_lv_cfg},
> +       { .compatible = "devantech,srf04", .data = &srf04_cfg },
> +       { .compatible = "maxbotix,mb1000", .data = &mb_lv_cfg },
> +       { .compatible = "maxbotix,mb1010", .data = &mb_lv_cfg },
> +       { .compatible = "maxbotix,mb1020", .data = &mb_lv_cfg },
> +       { .compatible = "maxbotix,mb1030", .data = &mb_lv_cfg },
> +       { .compatible = "maxbotix,mb1040", .data = &mb_lv_cfg },
>         {},
>  };
>
> --
> 2.34.1
>
diff mbox series

Patch

diff --git a/drivers/iio/proximity/srf04.c b/drivers/iio/proximity/srf04.c
index fe88b2bb60bc..4e6286765f01 100644
--- a/drivers/iio/proximity/srf04.c
+++ b/drivers/iio/proximity/srf04.c
@@ -235,12 +235,12 @@  static const struct iio_chan_spec srf04_chan_spec[] = {
 };
 
 static const struct of_device_id of_srf04_match[] = {
-	{ .compatible = "devantech,srf04", .data = &srf04_cfg},
-	{ .compatible = "maxbotix,mb1000", .data = &mb_lv_cfg},
-	{ .compatible = "maxbotix,mb1010", .data = &mb_lv_cfg},
-	{ .compatible = "maxbotix,mb1020", .data = &mb_lv_cfg},
-	{ .compatible = "maxbotix,mb1030", .data = &mb_lv_cfg},
-	{ .compatible = "maxbotix,mb1040", .data = &mb_lv_cfg},
+	{ .compatible = "devantech,srf04", .data = &srf04_cfg },
+	{ .compatible = "maxbotix,mb1000", .data = &mb_lv_cfg },
+	{ .compatible = "maxbotix,mb1010", .data = &mb_lv_cfg },
+	{ .compatible = "maxbotix,mb1020", .data = &mb_lv_cfg },
+	{ .compatible = "maxbotix,mb1030", .data = &mb_lv_cfg },
+	{ .compatible = "maxbotix,mb1040", .data = &mb_lv_cfg },
 	{},
 };