dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Romain Gantois <romain.gantois@bootlin.com>
To: "Arnd Bergmann" <arnd@arndb.de>,
	"Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
	"Uwe Kleine-König (The Capable Hub)"
	<u.kleine-koenig@baylibre.com>
Cc: Srinivas Kandagatla <srini@kernel.org>,
	Ekansh Gupta <ekansh.gupta@oss.qualcomm.com>,
	John Stultz <jstultz@google.com>,
	Eric Piel <eric.piel@tremplin-utc.net>,
	Danilo Krummrich <dakr@kernel.org>,
	Bjorn Helgaas <bhelgaas@google.com>,
	Takashi Sakamoto <o-takashi@sakamocchi.jp>,
	linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org,
	dri-devel@lists.freedesktop.org
Subject: Re: [PATCH v2 11/12] misc: Unify style of of_device_id arrays
Date: Mon, 20 Jul 2026 09:50:48 +0200	[thread overview]
Message-ID: <Nl9yKsP2RmuG2RLCMfrvew@bootlin.com> (raw)
In-Reply-To: <fbf51b8f413c516977e2c8a81896221795df77e4.1784299069.git.u.kleine-koenig@baylibre.com>

[-- Attachment #1: Type: text/plain, Size: 7553 bytes --]

Hi Uwe,

On Friday, 17 July 2026 16:50:57 CEST Uwe Kleine-König (The Capable Hub) wrote:
> Update the various of_device_id arrays to conform to the most used and
> 
> generally recommended coding style. That is:
>  - No comma after the list terminator;
>  - A comma after an initializer if (and only if) the closing } is not
>  
>    directly following;
>  
>  - No explicit zeros in the list terminator;
>  - A space after an opening { and before a closing }, a single space in
>  
>    the list terminator;
> 
> Adapt the few offenders accordingly.
> 
> Signed-off-by: Uwe Kleine-König (The Capable Hub)
> <u.kleine-koenig@baylibre.com> ---
> 
>  drivers/misc/ds1682.c                  | 4 ++--
>  drivers/misc/fastrpc.c                 | 6 +++---
>  drivers/misc/hisi_hikey_usb.c          | 2 +-
>  drivers/misc/lis3lv02d/lis3lv02d_i2c.c | 2 +-
>  drivers/misc/lis3lv02d/lis3lv02d_spi.c | 2 +-
>  drivers/misc/open-dice.c               | 2 +-
>  drivers/misc/pvpanic/pvpanic-mmio.c    | 4 ++--
>  drivers/misc/qcom-coincell.c           | 4 ++--
>  drivers/misc/sram.c                    | 2 +-
>  drivers/misc/ti_fpc202.c               | 2 +-
>  drivers/misc/vcpu_stall_detector.c     | 4 ++--
>  11 files changed, 17 insertions(+), 17 deletions(-)
> 
> diff --git a/drivers/misc/ds1682.c b/drivers/misc/ds1682.c
> index f073a5067fc8..4500d7d0ea77 100644
> --- a/drivers/misc/ds1682.c
> +++ b/drivers/misc/ds1682.c
> @@ -277,8 +277,8 @@ static const struct i2c_device_id ds1682_id[] = {
> 
>  MODULE_DEVICE_TABLE(i2c, ds1682_id);
>  
>  static const struct of_device_id ds1682_of_match[] = {
> 
> -	{ .compatible = "dallas,ds1682", },
> -	{}
> +	{ .compatible = "dallas,ds1682" },
> +	{ }
> 
>  };
>  MODULE_DEVICE_TABLE(of, ds1682_of_match);
> 
> diff --git a/drivers/misc/fastrpc.c b/drivers/misc/fastrpc.c
> index d86e79134c68..f7b6aba8b71d 100644
> --- a/drivers/misc/fastrpc.c
> +++ b/drivers/misc/fastrpc.c
> @@ -2299,8 +2299,8 @@ static void fastrpc_cb_remove(struct platform_device
> *pdev) }
> 
>  static const struct of_device_id fastrpc_match_table[] = {
> 
> -	{ .compatible = "qcom,fastrpc-compute-cb", },
> -	{}
> +	{ .compatible = "qcom,fastrpc-compute-cb" },
> +	{ }
> 
>  };
>  
>  static struct platform_driver fastrpc_cb_driver = {
> 
> @@ -2579,7 +2579,7 @@ static int fastrpc_rpmsg_callback(struct rpmsg_device
> *rpdev, void *data, static const struct of_device_id
> fastrpc_rpmsg_of_match[] = {
> 
>  	{ .compatible = "qcom,kaanapali-fastrpc", .data = &kaanapali_soc_data },
>  	{ .compatible = "qcom,fastrpc", .data = &default_soc_data },
> 
> -	{ },
> +	{ }
> 
>  };
>  MODULE_DEVICE_TABLE(of, fastrpc_rpmsg_of_match);
> 
> diff --git a/drivers/misc/hisi_hikey_usb.c b/drivers/misc/hisi_hikey_usb.c
> index 79f06001259b..e68bc6e384d5 100644
> --- a/drivers/misc/hisi_hikey_usb.c
> +++ b/drivers/misc/hisi_hikey_usb.c
> @@ -254,7 +254,7 @@ static void hisi_hikey_usb_remove(struct platform_device
> *pdev)
> 
>  static const struct of_device_id id_table_hisi_hikey_usb[] = {
>  
>  	{ .compatible = "hisilicon,usbhub" },
> 
> -	{}
> +	{ }
> 
>  };
>  MODULE_DEVICE_TABLE(of, id_table_hisi_hikey_usb);
> 
> diff --git a/drivers/misc/lis3lv02d/lis3lv02d_i2c.c
> b/drivers/misc/lis3lv02d/lis3lv02d_i2c.c index 36032fc125f3..7c3ca6d604d1
> 100644
> --- a/drivers/misc/lis3lv02d/lis3lv02d_i2c.c
> +++ b/drivers/misc/lis3lv02d/lis3lv02d_i2c.c
> @@ -95,7 +95,7 @@ static union axis_conversion lis3lv02d_axis_map =
> 
>  #ifdef CONFIG_OF
>  static const struct of_device_id lis3lv02d_i2c_dt_ids[] = {
>  
>  	{ .compatible = "st,lis3lv02d" },
> 
> -	{}
> +	{ }
> 
>  };
>  MODULE_DEVICE_TABLE(of, lis3lv02d_i2c_dt_ids);
>  #endif
> 
> diff --git a/drivers/misc/lis3lv02d/lis3lv02d_spi.c
> b/drivers/misc/lis3lv02d/lis3lv02d_spi.c index 203a108b8883..5bf95176a00e
> 100644
> --- a/drivers/misc/lis3lv02d/lis3lv02d_spi.c
> +++ b/drivers/misc/lis3lv02d/lis3lv02d_spi.c
> @@ -60,7 +60,7 @@ static union axis_conversion lis3lv02d_axis_normal =
> 
>  #ifdef CONFIG_OF
>  static const struct of_device_id lis302dl_spi_dt_ids[] = {
>  
>  	{ .compatible = "st,lis302dl-spi" },
> 
> -	{}
> +	{ }
> 
>  };
>  MODULE_DEVICE_TABLE(of, lis302dl_spi_dt_ids);
>  #endif
> 
> diff --git a/drivers/misc/open-dice.c b/drivers/misc/open-dice.c
> index 45060fb4ea27..77ab0c1e83d3 100644
> --- a/drivers/misc/open-dice.c
> +++ b/drivers/misc/open-dice.c
> @@ -177,7 +177,7 @@ static void open_dice_remove(struct platform_device
> *pdev)
> 
>  static const struct of_device_id open_dice_of_match[] = {
>  
>  	{ .compatible = "google,open-dice" },
> 
> -	{},
> +	{ }
> 
>  };
>  
>  static struct platform_driver open_dice_driver = {
> 
> diff --git a/drivers/misc/pvpanic/pvpanic-mmio.c
> b/drivers/misc/pvpanic/pvpanic-mmio.c index 43a094bfdaec..724dfddf69e4
> 100644
> --- a/drivers/misc/pvpanic/pvpanic-mmio.c
> +++ b/drivers/misc/pvpanic/pvpanic-mmio.c
> @@ -51,8 +51,8 @@ static int pvpanic_mmio_probe(struct platform_device
> *pdev) }
> 
>  static const struct of_device_id pvpanic_mmio_match[] = {
> 
> -	{ .compatible = "qemu,pvpanic-mmio", },
> -	{}
> +	{ .compatible = "qemu,pvpanic-mmio" },
> +	{ }
> 
>  };
>  MODULE_DEVICE_TABLE(of, pvpanic_mmio_match);
> 
> diff --git a/drivers/misc/qcom-coincell.c b/drivers/misc/qcom-coincell.c
> index 3c57f7429147..b58bd34fc471 100644
> --- a/drivers/misc/qcom-coincell.c
> +++ b/drivers/misc/qcom-coincell.c
> @@ -124,8 +124,8 @@ static int qcom_coincell_probe(struct platform_device
> *pdev) }
> 
>  static const struct of_device_id qcom_coincell_match_table[] = {
> 
> -	{ .compatible = "qcom,pm8941-coincell", },
> -	{}
> +	{ .compatible = "qcom,pm8941-coincell" },
> +	{ }
> 
>  };
>  
>  MODULE_DEVICE_TABLE(of, qcom_coincell_match_table);
> 
> diff --git a/drivers/misc/sram.c b/drivers/misc/sram.c
> index 1919d24c8236..c8990e83a65a 100644
> --- a/drivers/misc/sram.c
> +++ b/drivers/misc/sram.c
> @@ -370,7 +370,7 @@ static const struct of_device_id sram_dt_ids[] = {
> 
>  	{ .compatible = "nvidia,tegra186-sysram", .data = &tegra_sysram_config },
>  	{ .compatible = "nvidia,tegra194-sysram", .data = &tegra_sysram_config },
>  	{ .compatible = "nvidia,tegra234-sysram", .data = &tegra_sysram_config },
> 
> -	{}
> +	{ }
> 
>  };
>  
>  static int sram_probe(struct platform_device *pdev)
> 
> diff --git a/drivers/misc/ti_fpc202.c b/drivers/misc/ti_fpc202.c
> index 2aac83ec4a39..9e2d24f89457 100644
> --- a/drivers/misc/ti_fpc202.c
> +++ b/drivers/misc/ti_fpc202.c
> @@ -718,7 +718,7 @@ static void fpc202_remove(struct i2c_client *client)
> 
>  static const struct of_device_id fpc202_of_match[] = {
>  
>  	{ .compatible = "ti,fpc202" },
> 
> -	{}
> +	{ }
> 
>  };
>  MODULE_DEVICE_TABLE(of, fpc202_of_match);
> 
> diff --git a/drivers/misc/vcpu_stall_detector.c
> b/drivers/misc/vcpu_stall_detector.c index 26166357b255..1306b2c1ef99
> 100644
> --- a/drivers/misc/vcpu_stall_detector.c
> +++ b/drivers/misc/vcpu_stall_detector.c
> @@ -224,8 +224,8 @@ static void vcpu_stall_detect_remove(struct
> platform_device *pdev) }
> 
>  static const struct of_device_id vcpu_stall_detect_of_match[] = {
> 
> -	{ .compatible = "qemu,vcpu-stall-detector", },
> -	{}
> +	{ .compatible = "qemu,vcpu-stall-detector" },
> +	{ }
> 
>  };
>  
>  MODULE_DEVICE_TABLE(of, vcpu_stall_detect_of_match);

Reviewed-by: Romain Gantois <romain.gantois@bootlin.com>

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

      reply	other threads:[~2026-07-20  7:51 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-17 14:50 [PATCH v2 00/12] misc: Improvements around *_device_id defintions Uwe Kleine-König (The Capable Hub)
2026-07-17 14:50 ` [PATCH v2 11/12] misc: Unify style of of_device_id arrays Uwe Kleine-König (The Capable Hub)
2026-07-20  7:50   ` Romain Gantois [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Nl9yKsP2RmuG2RLCMfrvew@bootlin.com \
    --to=romain.gantois@bootlin.com \
    --cc=arnd@arndb.de \
    --cc=bhelgaas@google.com \
    --cc=dakr@kernel.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=ekansh.gupta@oss.qualcomm.com \
    --cc=eric.piel@tremplin-utc.net \
    --cc=gregkh@linuxfoundation.org \
    --cc=jstultz@google.com \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=o-takashi@sakamocchi.jp \
    --cc=srini@kernel.org \
    --cc=u.kleine-koenig@baylibre.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox