pinctrl/: at91: fix warmings
PATCH 1/2 pinctrl/: at91: fix warmings
/opt/work/linux-2.6/drivers/pinctrl/pinctrl-at91.c: In function 'at91_pinctrl_probe_dt':/opt/work/linux-2.6/drivers/pinctrl/pinctrl-at91.c:952:12: warning: assignment discards qualifiers from pointer target type /opt/work/linux-2.6/drivers/pinctrl/pinctrl-at91.c: In function 'at91_gpio_probe':/opt/work/linux-2.6/drivers/pinctrl/pinctrl-at91.c:1517:17: warning: assignment discards qualifiers from pointer target type
--- drivers/pinctrl/pinctrl-at91.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/pinctrl/pinctrl-at91.c +2 -2
@@ -949,7 +949,7 @@ static int __devinit at91_pinctrl_probe_dt(struct platform_device *pdev,return -ENODEV ; info->dev = &pdev->dev; - info->ops = + info->ops = (struct at91_pinctrl_mux_ops *)of_match_device (at91_pinctrl_of_match, &pdev->dev)->data;at91_pinctrl_child_count (info, np);
@@ -1514,7 +1514,7 @@ static int __devinit at91_gpio_probe(struct platform_device *pdev) goto err; } - at91_chip->ops = + at91_chip->ops = (struct at91_pinctrl_mux_ops *)of_match_device (at91_gpio_of_match, &pdev->dev)->data; at91_chip->pioc_virq = irq; at91_chip->pioc_idx = alias_idx;
Signature · 1 line
1.7.10.4
PATCH 2/2 MAINTAINERS: add pinctrl atmel at91 entry
--- MAINTAINERS | 6 ++++++ 1 file changed, 6 insertions(+)
MAINTAINERS +6 -0
@@ -5624,6 +5624,12 @@ S: Maintained F: drivers/pinctrl/ F: include/linux/pinctrl/ +PIN CONTROLLER - ATMEL AT91 +M: Jean-Christophe Plagniol-Villard <[email protected]> +L: linux-arm-kernel at lists.infradead.org (moderated for non-subscribers) +S: Maintained +F: drivers/pinctrl/pinctrl-at91.c + PIN CONTROLLER - ST SPEAR M: Viresh Kumar <[email protected]> L: spear-devel at list.st.com
Signature · 1 line
1.7.10.4
Re: [PATCH 2/2] MAINTAINERS: add pinctrl atmel at91 entry
Quoted 2 lines · Jean-Christophe PLAGNIOL-VILLARD
Cc linux-kernel at vger.kernel.orgSigned-off-by Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
I applied this to my at91 pinctrl branch as well, hope that's OK...
Yours,
Linus Walleij
Re: [PATCH 2/2] MAINTAINERS: add pinctrl atmel at91 entry
In reply to Jean-Christophe PLAGNIOL-VILLARDOn 10/27/2012 07:53 PM, Jean-Christophe PLAGNIOL-VILLARD :
Quoted 2 lines
Quoted 22 lines
--- MAINTAINERS | 6 ++++++ 1 file changed, 6 insertions(+)MAINTAINERS +6
-0@@ -5624,6 +5624,12 @@ S: Maintained F: drivers/pinctrl/ F: include/linux/pinctrl/ +PIN CONTROLLER - ATMEL AT91 +M: Jean-Christophe Plagniol-Villard <[email protected]> +L: [email protected] (moderated for non-subscribers) +S: Maintained +F: drivers/pinctrl/pinctrl-at91.c + PIN CONTROLLER - ST SPEAR M: Viresh Kumar <[email protected]> L: [email protected]
Signature · 1 line
Nicolas Ferre
PATCH 1/2 pinctrl/: at91: fix warmings
In reply to Jean-Christophe PLAGNIOL-VILLARDQuoted 7 lines · Jean-Christophe PLAGNIOL-VILLARD
/opt/work/linux-2.6/drivers/pinctrl/pinctrl-at91.c: In function 'at91_pinctrl_probe_dt':/opt/work/linux-2.6/drivers/pinctrl/pinctrl-at91.c:952:12: warning: assignment discards qualifiers from pointer target type/opt/work/linux-2.6/drivers/pinctrl/pinctrl-at91.c: In function 'at91_gpio_probe':/opt/work/linux-2.6/drivers/pinctrl/pinctrl-at91.c:1517:17: warning: assignment discards qualifiers from pointer target typeCc Linus Walleij <[email protected]>Signed-off-by Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
Thanks, patch applied to my at91 branch.
Yours,
Linus Walleij
PATCH 1/2 pinctrl/: at91: fix warmings
In reply to Jean-Christophe PLAGNIOL-VILLARDQuoted 16 lines · Jean-Christophe PLAGNIOL-VILLARD
/opt/work/linux-2.6/drivers/pinctrl/pinctrl-at91.c: In function 'at91_pinctrl_probe_dt':/opt/work/linux-2.6/drivers/pinctrl/pinctrl-at91.c:952:12: warning: assignment discards qualifiers from pointer target type/opt/work/linux-2.6/drivers/pinctrl/pinctrl-at91.c: In function 'at91_gpio_probe':/opt/work/linux-2.6/drivers/pinctrl/pinctrl-at91.c:1517:17: warning: assignment discards qualifiers from pointer target typeCc Linus Walleij <[email protected]>Signed-off-by Jean-Christophe PLAGNIOL-VILLARD <[email protected]>--- drivers/pinctrl/pinctrl-at91.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/pinctrl/pinctrl-at91.c +0
-0
drivers/pinctrl/pinctrl-at91.c static int __devinit at91_pinctrl_probe_dt(struct platform_device *pdev, · line 953
Quoted 6 lines
drivers/pinctrl/pinctrl-at91.c +1
-1@@ -949,7 +949,7 @@ static int __devinit at91_pinctrl_probe_dt(struct platform_device *pdev,return -ENODEV ; info->dev = &pdev->dev; - info->ops = + info->ops = (struct at91_pinctrl_mux_ops *)of_match_device (at91_pinctrl_of_match, &pdev->dev)->data;
Fix the type on info->ops instead, it probably wants to be const.