linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] microblaze: add const to of_device_id
@ 2021-12-12 14:12 Xiang wangx
  2021-12-13 15:27 ` Michal Simek
  0 siblings, 1 reply; 2+ messages in thread
From: Xiang wangx @ 2021-12-12 14:12 UTC (permalink / raw)
  To: monstr; +Cc: linux-arm-kernel, linux-kernel, Xiang wangx

struct of_device_id should normally be const.

Signed-off-by: Xiang wangx <wangxiang@cdjrlc.com>
---
 arch/microblaze/pci/xilinx_pci.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/microblaze/pci/xilinx_pci.c b/arch/microblaze/pci/xilinx_pci.c
index b800909ddccf..f4cb86fffcee 100644
--- a/arch/microblaze/pci/xilinx_pci.c
+++ b/arch/microblaze/pci/xilinx_pci.c
@@ -27,7 +27,7 @@
 #define PCI_HOST_ENABLE_CMD (PCI_COMMAND_SERR | PCI_COMMAND_PARITY | \
 				PCI_COMMAND_MASTER | PCI_COMMAND_MEMORY)
 
-static struct of_device_id xilinx_pci_match[] = {
+static const struct of_device_id xilinx_pci_match[] = {
 	{ .compatible = "xlnx,plbv46-pci-1.03.a", },
 	{}
 };
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] microblaze: add const to of_device_id
  2021-12-12 14:12 [PATCH] microblaze: add const to of_device_id Xiang wangx
@ 2021-12-13 15:27 ` Michal Simek
  0 siblings, 0 replies; 2+ messages in thread
From: Michal Simek @ 2021-12-13 15:27 UTC (permalink / raw)
  To: Xiang wangx; +Cc: linux-arm, LKML

ne 12. 12. 2021 v 15:13 odesílatel Xiang wangx <wangxiang@cdjrlc.com> napsal:
>
> struct of_device_id should normally be const.
>
> Signed-off-by: Xiang wangx <wangxiang@cdjrlc.com>
> ---
>  arch/microblaze/pci/xilinx_pci.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/microblaze/pci/xilinx_pci.c b/arch/microblaze/pci/xilinx_pci.c
> index b800909ddccf..f4cb86fffcee 100644
> --- a/arch/microblaze/pci/xilinx_pci.c
> +++ b/arch/microblaze/pci/xilinx_pci.c
> @@ -27,7 +27,7 @@
>  #define PCI_HOST_ENABLE_CMD (PCI_COMMAND_SERR | PCI_COMMAND_PARITY | \
>                                 PCI_COMMAND_MASTER | PCI_COMMAND_MEMORY)
>
> -static struct of_device_id xilinx_pci_match[] = {
> +static const struct of_device_id xilinx_pci_match[] = {
>         { .compatible = "xlnx,plbv46-pci-1.03.a", },
>         {}
>  };
> --
> 2.20.1
>

Applied.
M

-- 
Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel - Xilinx Microblaze
Maintainer of Linux kernel - Xilinx Zynq ARM and ZynqMP ARM64 SoCs
U-Boot custodian - Xilinx Microblaze/Zynq/ZynqMP/Versal SoCs

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-12-13 15:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-12 14:12 [PATCH] microblaze: add const to of_device_id Xiang wangx
2021-12-13 15:27 ` Michal Simek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).