All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] pinctrl: imx8dxl: Constify imx_pinctrl_soc_info
@ 2021-07-16 13:13 Fabio Estevam
  2021-07-30 10:06 ` Linus Walleij
  0 siblings, 1 reply; 2+ messages in thread
From: Fabio Estevam @ 2021-07-16 13:13 UTC (permalink / raw)
  To: linus.walleij
  Cc: linux-gpio, shawnguo, linux-imx, kernel, Fabio Estevam, Dong Aisheng

The imx_pinctrl_soc_info structure content is never changed, so it can be
declared as 'const', like it is done on all other i.MX pinctrl drivers.

Make it 'const' in this driver too.

Reported-by: Dong Aisheng <aisheng.dong@nxp.com>
Signed-off-by: Fabio Estevam <festevam@gmail.com>
---
 drivers/pinctrl/freescale/pinctrl-imx8dxl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/pinctrl/freescale/pinctrl-imx8dxl.c b/drivers/pinctrl/freescale/pinctrl-imx8dxl.c
index 041455c13d0d..f947b1d0d1aa 100644
--- a/drivers/pinctrl/freescale/pinctrl-imx8dxl.c
+++ b/drivers/pinctrl/freescale/pinctrl-imx8dxl.c
@@ -155,7 +155,7 @@ static const struct pinctrl_pin_desc imx8dxl_pinctrl_pads[] = {
 };
 
 
-static struct imx_pinctrl_soc_info imx8dxl_pinctrl_info = {
+static const struct imx_pinctrl_soc_info imx8dxl_pinctrl_info = {
 	.pins = imx8dxl_pinctrl_pads,
 	.npins = ARRAY_SIZE(imx8dxl_pinctrl_pads),
 	.flags = IMX_USE_SCU,
-- 
2.25.1


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

* Re: [PATCH] pinctrl: imx8dxl: Constify imx_pinctrl_soc_info
  2021-07-16 13:13 [PATCH] pinctrl: imx8dxl: Constify imx_pinctrl_soc_info Fabio Estevam
@ 2021-07-30 10:06 ` Linus Walleij
  0 siblings, 0 replies; 2+ messages in thread
From: Linus Walleij @ 2021-07-30 10:06 UTC (permalink / raw)
  To: Fabio Estevam
  Cc: open list:GPIO SUBSYSTEM, Shawn Guo, NXP Linux Team,
	Sascha Hauer, Dong Aisheng

On Fri, Jul 16, 2021 at 3:13 PM Fabio Estevam <festevam@gmail.com> wrote:

> The imx_pinctrl_soc_info structure content is never changed, so it can be
> declared as 'const', like it is done on all other i.MX pinctrl drivers.
>
> Make it 'const' in this driver too.
>
> Reported-by: Dong Aisheng <aisheng.dong@nxp.com>
> Signed-off-by: Fabio Estevam <festevam@gmail.com>

Patch applied.

Yours,
Linus Walleij

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

end of thread, other threads:[~2021-07-30 10:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-16 13:13 [PATCH] pinctrl: imx8dxl: Constify imx_pinctrl_soc_info Fabio Estevam
2021-07-30 10:06 ` Linus Walleij

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.