[PATCH] pinctrl: pinconf: remove warning: unused variable 'ops'

Subsystems: pin control subsystem, the rest

STALE4614d

2 messages, 2 authors, 2013-12-13 · open the first message on its own page

[PATCH] pinctrl: pinconf: remove warning: unused variable 'ops'

From: Alexandre Belloni <hidden>
Date: 2013-12-13 11:14:47

Signed-off-by: Alexandre Belloni <redacted>
---
 drivers/pinctrl/pinconf.c | 2 --
 1 file changed, 2 deletions(-)
diff --git a/drivers/pinctrl/pinconf.c b/drivers/pinctrl/pinconf.c
index 4187fe58794d..8bfa0643e5dc 100644
--- a/drivers/pinctrl/pinconf.c
+++ b/drivers/pinctrl/pinconf.c
@@ -296,7 +296,6 @@ static void pinconf_dump_pin(struct pinctrl_dev *pctldev,
 static int pinconf_pins_show(struct seq_file *s, void *what)
 {
 	struct pinctrl_dev *pctldev = s->private;
-	const struct pinconf_ops *ops = pctldev->desc->confops;
 	unsigned i, pin;
 
 	seq_puts(s, "Pin config settings per pin\n");
@@ -343,7 +342,6 @@ static int pinconf_groups_show(struct seq_file *s, void *what)
 {
 	struct pinctrl_dev *pctldev = s->private;
 	const struct pinctrl_ops *pctlops = pctldev->desc->pctlops;
-	const struct pinconf_ops *ops = pctldev->desc->confops;
 	unsigned ngroups = pctlops->get_groups_count(pctldev);
 	unsigned selector = 0;
 
-- 
1.8.3.2

Re: [PATCH] pinctrl: pinconf: remove warning: unused variable 'ops'

From: Linus Walleij <hidden>
Date: 2013-12-13 12:57:25

On Fri, Dec 13, 2013 at 12:14 PM, Alexandre Belloni
[off-list ref] wrote:
Signed-off-by: Alexandre Belloni <redacted>
Patch applied, thanks!

Yours,
Linus Walleij
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help