* [PATCH 1/2] pinctrl: lantiq: Remove ltq_pmx_disable() function
@ 2012-11-07 15:57 Axel Lin
2012-11-07 15:58 ` [PATCH 2/2] pinctrl: lantiq: Staticize ltq_pinctrl_dt_free_map Axel Lin
` (3 more replies)
0 siblings, 4 replies; 7+ messages in thread
From: Axel Lin @ 2012-11-07 15:57 UTC (permalink / raw)
To: Linus Walleij; +Cc: John Crispin, linux-kernel
Current code adds empty ltq_pmx_disable() because pinmux_check_ops() requires
this callback to be defined.
This is not required since commit 02b50ce4cb1
"pinctrl: make pinmux disable function optional".
Thus remove ltq_pmx_disable() function.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
drivers/pinctrl/pinctrl-lantiq.c | 11 -----------
1 file changed, 11 deletions(-)
diff --git a/drivers/pinctrl/pinctrl-lantiq.c b/drivers/pinctrl/pinctrl-lantiq.c
index 07ba768..d670ad6 100644
--- a/drivers/pinctrl/pinctrl-lantiq.c
+++ b/drivers/pinctrl/pinctrl-lantiq.c
@@ -275,16 +275,6 @@ static int ltq_pmx_enable(struct pinctrl_dev *pctrldev,
return 0;
}
-static void ltq_pmx_disable(struct pinctrl_dev *pctrldev,
- unsigned func,
- unsigned group)
-{
- /*
- * Nothing to do here. However, pinconf_check_ops() requires this
- * callback to be defined.
- */
-}
-
static int ltq_pmx_gpio_request_enable(struct pinctrl_dev *pctrldev,
struct pinctrl_gpio_range *range,
unsigned pin)
@@ -312,7 +302,6 @@ static struct pinmux_ops ltq_pmx_ops = {
.get_function_name = ltq_pmx_func_name,
.get_function_groups = ltq_pmx_get_groups,
.enable = ltq_pmx_enable,
- .disable = ltq_pmx_disable,
.gpio_request_enable = ltq_pmx_gpio_request_enable,
};
--
1.7.9.5
^ permalink raw reply related [flat|nested] 7+ messages in thread* [PATCH 2/2] pinctrl: lantiq: Staticize ltq_pinctrl_dt_free_map
2012-11-07 15:57 [PATCH 1/2] pinctrl: lantiq: Remove ltq_pmx_disable() function Axel Lin
@ 2012-11-07 15:58 ` Axel Lin
2012-11-07 16:05 ` Axel Lin
2012-11-07 16:10 ` [PATCH 2/2] pinctrl: lantiq: Staticize non-exported symbols Axel Lin
` (2 subsequent siblings)
3 siblings, 1 reply; 7+ messages in thread
From: Axel Lin @ 2012-11-07 15:58 UTC (permalink / raw)
To: Linus Walleij; +Cc: John Crispin, linux-kernel
It is not referenced outside of this file.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
drivers/pinctrl/pinctrl-lantiq.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/pinctrl/pinctrl-lantiq.c b/drivers/pinctrl/pinctrl-lantiq.c
index d670ad6..4eb6854 100644
--- a/drivers/pinctrl/pinctrl-lantiq.c
+++ b/drivers/pinctrl/pinctrl-lantiq.c
@@ -128,10 +128,10 @@ static int ltq_pinctrl_dt_subnode_size(struct device_node *np)
return ret;
}
-int ltq_pinctrl_dt_node_to_map(struct pinctrl_dev *pctldev,
- struct device_node *np_config,
- struct pinctrl_map **map,
- unsigned *num_maps)
+static int ltq_pinctrl_dt_node_to_map(struct pinctrl_dev *pctldev,
+ struct device_node *np_config,
+ struct pinctrl_map **map,
+ unsigned *num_maps)
{
struct pinctrl_map *tmp;
struct device_node *np;
--
1.7.9.5
^ permalink raw reply related [flat|nested] 7+ messages in thread* [PATCH 2/2] pinctrl: lantiq: Staticize non-exported symbols
2012-11-07 15:57 [PATCH 1/2] pinctrl: lantiq: Remove ltq_pmx_disable() function Axel Lin
2012-11-07 15:58 ` [PATCH 2/2] pinctrl: lantiq: Staticize ltq_pinctrl_dt_free_map Axel Lin
@ 2012-11-07 16:10 ` Axel Lin
2012-11-11 18:21 ` Linus Walleij
2012-11-07 19:24 ` [PATCH 1/2] pinctrl: lantiq: Remove ltq_pmx_disable() function John Crispin
2012-11-11 18:20 ` Linus Walleij
3 siblings, 1 reply; 7+ messages in thread
From: Axel Lin @ 2012-11-07 16:10 UTC (permalink / raw)
To: Linus Walleij; +Cc: John Crispin, linux-kernel
Both ltq_pinctrl_dt_node_to_map() and ltq_pinctrl_dt_free_map() are not
referenced outside of this file. Make them static.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
drivers/pinctrl/pinctrl-lantiq.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/drivers/pinctrl/pinctrl-lantiq.c b/drivers/pinctrl/pinctrl-lantiq.c
index d670ad6..15f501d 100644
--- a/drivers/pinctrl/pinctrl-lantiq.c
+++ b/drivers/pinctrl/pinctrl-lantiq.c
@@ -46,8 +46,8 @@ static int ltq_get_group_pins(struct pinctrl_dev *pctrldev,
return 0;
}
-void ltq_pinctrl_dt_free_map(struct pinctrl_dev *pctldev,
- struct pinctrl_map *map, unsigned num_maps)
+static void ltq_pinctrl_dt_free_map(struct pinctrl_dev *pctldev,
+ struct pinctrl_map *map, unsigned num_maps)
{
int i;
@@ -128,10 +128,10 @@ static int ltq_pinctrl_dt_subnode_size(struct device_node *np)
return ret;
}
-int ltq_pinctrl_dt_node_to_map(struct pinctrl_dev *pctldev,
- struct device_node *np_config,
- struct pinctrl_map **map,
- unsigned *num_maps)
+static int ltq_pinctrl_dt_node_to_map(struct pinctrl_dev *pctldev,
+ struct device_node *np_config,
+ struct pinctrl_map **map,
+ unsigned *num_maps)
{
struct pinctrl_map *tmp;
struct device_node *np;
--
1.7.9.5
^ permalink raw reply related [flat|nested] 7+ messages in thread* Re: [PATCH 1/2] pinctrl: lantiq: Remove ltq_pmx_disable() function
2012-11-07 15:57 [PATCH 1/2] pinctrl: lantiq: Remove ltq_pmx_disable() function Axel Lin
2012-11-07 15:58 ` [PATCH 2/2] pinctrl: lantiq: Staticize ltq_pinctrl_dt_free_map Axel Lin
2012-11-07 16:10 ` [PATCH 2/2] pinctrl: lantiq: Staticize non-exported symbols Axel Lin
@ 2012-11-07 19:24 ` John Crispin
2012-11-11 18:20 ` Linus Walleij
3 siblings, 0 replies; 7+ messages in thread
From: John Crispin @ 2012-11-07 19:24 UTC (permalink / raw)
To: Linus Walleij; +Cc: Axel Lin, linux-kernel
On 07/11/12 16:57, Axel Lin wrote:
> Current code adds empty ltq_pmx_disable() because pinmux_check_ops() requires
> this callback to be defined.
>
> This is not required since commit 02b50ce4cb1
> "pinctrl: make pinmux disable function optional".
>
> Thus remove ltq_pmx_disable() function.
>
> Signed-off-by: Axel Lin<axel.lin@ingics.com>
>
for both of these feel free to add ...
Acked-by: John Crispin <blogic@openwrt.org>
Thanks,
John
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: [PATCH 1/2] pinctrl: lantiq: Remove ltq_pmx_disable() function
2012-11-07 15:57 [PATCH 1/2] pinctrl: lantiq: Remove ltq_pmx_disable() function Axel Lin
` (2 preceding siblings ...)
2012-11-07 19:24 ` [PATCH 1/2] pinctrl: lantiq: Remove ltq_pmx_disable() function John Crispin
@ 2012-11-11 18:20 ` Linus Walleij
3 siblings, 0 replies; 7+ messages in thread
From: Linus Walleij @ 2012-11-11 18:20 UTC (permalink / raw)
To: Axel Lin; +Cc: John Crispin, linux-kernel
On Wed, Nov 7, 2012 at 4:57 PM, Axel Lin <axel.lin@ingics.com> wrote:
> Current code adds empty ltq_pmx_disable() because pinmux_check_ops() requires
> this callback to be defined.
>
> This is not required since commit 02b50ce4cb1
> "pinctrl: make pinmux disable function optional".
>
> Thus remove ltq_pmx_disable() function.
>
> Signed-off-by: Axel Lin <axel.lin@ingics.com>
Applied with John's ACK.
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2012-11-11 18:22 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-07 15:57 [PATCH 1/2] pinctrl: lantiq: Remove ltq_pmx_disable() function Axel Lin
2012-11-07 15:58 ` [PATCH 2/2] pinctrl: lantiq: Staticize ltq_pinctrl_dt_free_map Axel Lin
2012-11-07 16:05 ` Axel Lin
2012-11-07 16:10 ` [PATCH 2/2] pinctrl: lantiq: Staticize non-exported symbols Axel Lin
2012-11-11 18:21 ` Linus Walleij
2012-11-07 19:24 ` [PATCH 1/2] pinctrl: lantiq: Remove ltq_pmx_disable() function John Crispin
2012-11-11 18:20 ` 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.