linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] pinctrl: armada-37xx: add static to local data
@ 2017-08-04  4:47 Masahiro Yamada
  2017-08-07 13:12 ` Linus Walleij
  0 siblings, 1 reply; 2+ messages in thread
From: Masahiro Yamada @ 2017-08-04  4:47 UTC (permalink / raw)
  To: linux-gpio
  Cc: Gregory CLEMENT, Masahiro Yamada, linux-kernel, Linus Walleij,
	Sebastian Hesselbarth, Jason Cooper, Andrew Lunn,
	linux-arm-kernel

Detected by sparse.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
---

 drivers/pinctrl/mvebu/pinctrl-armada-37xx.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/pinctrl/mvebu/pinctrl-armada-37xx.c b/drivers/pinctrl/mvebu/pinctrl-armada-37xx.c
index f024e25787fc..0b263b90a9a8 100644
--- a/drivers/pinctrl/mvebu/pinctrl-armada-37xx.c
+++ b/drivers/pinctrl/mvebu/pinctrl-armada-37xx.c
@@ -179,14 +179,14 @@ static struct armada_37xx_pin_group armada_37xx_sb_groups[] = {
 	PIN_GRP("mii_col", 23, 1, BIT(8), "mii", "mii_err"),
 };
 
-const struct armada_37xx_pin_data armada_37xx_pin_nb = {
+static const struct armada_37xx_pin_data armada_37xx_pin_nb = {
 	.nr_pins = 36,
 	.name = "GPIO1",
 	.groups = armada_37xx_nb_groups,
 	.ngroups = ARRAY_SIZE(armada_37xx_nb_groups),
 };
 
-const struct armada_37xx_pin_data armada_37xx_pin_sb = {
+static const struct armada_37xx_pin_data armada_37xx_pin_sb = {
 	.nr_pins = 29,
 	.name = "GPIO2",
 	.groups = armada_37xx_sb_groups,
-- 
2.7.4

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

* Re: [PATCH] pinctrl: armada-37xx: add static to local data
  2017-08-04  4:47 [PATCH] pinctrl: armada-37xx: add static to local data Masahiro Yamada
@ 2017-08-07 13:12 ` Linus Walleij
  0 siblings, 0 replies; 2+ messages in thread
From: Linus Walleij @ 2017-08-07 13:12 UTC (permalink / raw)
  To: Masahiro Yamada
  Cc: linux-gpio, Gregory CLEMENT, linux-kernel, Sebastian Hesselbarth,
	Jason Cooper, Andrew Lunn, linux-arm-kernel

On Fri, Aug 4, 2017 at 6:47 AM, Masahiro Yamada
<yamada.masahiro@socionext.com> wrote:

> Detected by sparse.
>
> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>

Patch applied.

Yours,
Linus Walleij

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

end of thread, other threads:[~2017-08-07 13:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-04  4:47 [PATCH] pinctrl: armada-37xx: add static to local data Masahiro Yamada
2017-08-07 13:12 ` 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).