linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] pinctrl: freescale: make mxs_regs const
@ 2017-08-23 13:49 Bhumika Goyal
  2017-08-31 11:57 ` Linus Walleij
  0 siblings, 1 reply; 2+ messages in thread
From: Bhumika Goyal @ 2017-08-23 13:49 UTC (permalink / raw)
  To: julia.lawall, linus.walleij, linux-gpio, linux-kernel; +Cc: Bhumika Goyal

Make these const as they are only stored in the const field of a
mxs_pinctrl_soc_data structure.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
---
 drivers/pinctrl/freescale/pinctrl-imx23.c | 2 +-
 drivers/pinctrl/freescale/pinctrl-imx28.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/pinctrl/freescale/pinctrl-imx23.c b/drivers/pinctrl/freescale/pinctrl-imx23.c
index 89b4f16..c940568 100644
--- a/drivers/pinctrl/freescale/pinctrl-imx23.c
+++ b/drivers/pinctrl/freescale/pinctrl-imx23.c
@@ -257,7 +257,7 @@ enum imx23_pin_enum {
 	MXS_PINCTRL_PIN(EMI_CLKN),
 };
 
-static struct mxs_regs imx23_regs = {
+static const struct mxs_regs imx23_regs = {
 	.muxsel = 0x100,
 	.drive = 0x200,
 	.pull = 0x400,
diff --git a/drivers/pinctrl/freescale/pinctrl-imx28.c b/drivers/pinctrl/freescale/pinctrl-imx28.c
index 295236d..87deb9e 100644
--- a/drivers/pinctrl/freescale/pinctrl-imx28.c
+++ b/drivers/pinctrl/freescale/pinctrl-imx28.c
@@ -373,7 +373,7 @@ enum imx28_pin_enum {
 	MXS_PINCTRL_PIN(EMI_CKE),
 };
 
-static struct mxs_regs imx28_regs = {
+static const struct mxs_regs imx28_regs = {
 	.muxsel = 0x100,
 	.drive = 0x300,
 	.pull = 0x600,
-- 
1.9.1


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

* Re: [PATCH] pinctrl: freescale: make mxs_regs const
  2017-08-23 13:49 [PATCH] pinctrl: freescale: make mxs_regs const Bhumika Goyal
@ 2017-08-31 11:57 ` Linus Walleij
  0 siblings, 0 replies; 2+ messages in thread
From: Linus Walleij @ 2017-08-31 11:57 UTC (permalink / raw)
  To: Bhumika Goyal
  Cc: Julia Lawall, linux-gpio@vger.kernel.org,
	linux-kernel@vger.kernel.org

On Wed, Aug 23, 2017 at 3:49 PM, Bhumika Goyal <bhumirks@gmail.com> wrote:

> Make these const as they are only stored in the const field of a
> mxs_pinctrl_soc_data structure.
>
> Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>

Patch applied.

Yours,
Linus Walleij

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

end of thread, other threads:[~2017-08-31 11:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-23 13:49 [PATCH] pinctrl: freescale: make mxs_regs const Bhumika Goyal
2017-08-31 11:57 ` Linus Walleij

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).