diff mbox series

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

Message ID 20211230174911.78291-7-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 so make sure we have a space
after { and before } for the two id tables.
Avoid providing examples of this inconsistency that get copied into new
drivers.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Cc: Andreas Klinger <ak@it-klinger.de>
---
 drivers/iio/proximity/ping.c | 4 ++--
 1 file changed, 2 insertions(+), 2 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 so make sure we have a space
> after { and before } for the two id tables.
> Avoid providing examples of this inconsistency that get copied 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/ping.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/iio/proximity/ping.c b/drivers/iio/proximity/ping.c
> index 1283ac1c2e03..24a97d41e115 100644
> --- a/drivers/iio/proximity/ping.c
> +++ b/drivers/iio/proximity/ping.c
> @@ -267,8 +267,8 @@ static const struct iio_chan_spec ping_chan_spec[] = {
>  };
>
>  static const struct of_device_id of_ping_match[] = {
> -       { .compatible = "parallax,ping", .data = &pa_ping_cfg},
> -       { .compatible = "parallax,laserping", .data = &pa_laser_ping_cfg},
> +       { .compatible = "parallax,ping", .data = &pa_ping_cfg },
> +       { .compatible = "parallax,laserping", .data = &pa_laser_ping_cfg },
>         {},
>  };
>
> --
> 2.34.1
>
diff mbox series

Patch

diff --git a/drivers/iio/proximity/ping.c b/drivers/iio/proximity/ping.c
index 1283ac1c2e03..24a97d41e115 100644
--- a/drivers/iio/proximity/ping.c
+++ b/drivers/iio/proximity/ping.c
@@ -267,8 +267,8 @@  static const struct iio_chan_spec ping_chan_spec[] = {
 };
 
 static const struct of_device_id of_ping_match[] = {
-	{ .compatible = "parallax,ping", .data = &pa_ping_cfg},
-	{ .compatible = "parallax,laserping", .data = &pa_laser_ping_cfg},
+	{ .compatible = "parallax,ping", .data = &pa_ping_cfg },
+	{ .compatible = "parallax,laserping", .data = &pa_laser_ping_cfg },
 	{},
 };