* [PATCH 1/9] Input: ab8500-ponkey - Remove redundant platform_set_drvdata()
@ 2013-05-04 14:51 Sachin Kamat
2013-05-04 14:51 ` [PATCH 2/9] Input: bfin_rotary " Sachin Kamat
` (8 more replies)
0 siblings, 9 replies; 12+ messages in thread
From: Sachin Kamat @ 2013-05-04 14:51 UTC (permalink / raw)
To: linux-input; +Cc: dmitry.torokhov, sachin.kamat, Sundar Iyer
Commit 0998d06310 (device-core: Ensure drvdata = NULL when no
driver is bound) removes the need to set driver data field to
NULL.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Cc: Sundar Iyer <sundar.iyer@stericsson.com>
---
This series compile tested and based on linux-next (20130503).
---
drivers/input/misc/ab8500-ponkey.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/drivers/input/misc/ab8500-ponkey.c b/drivers/input/misc/ab8500-ponkey.c
index 2f090b4..f2fbdd8 100644
--- a/drivers/input/misc/ab8500-ponkey.c
+++ b/drivers/input/misc/ab8500-ponkey.c
@@ -127,8 +127,6 @@ static int ab8500_ponkey_remove(struct platform_device *pdev)
input_unregister_device(ponkey->idev);
kfree(ponkey);
- platform_set_drvdata(pdev, NULL);
-
return 0;
}
--
1.7.4.1
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [PATCH 2/9] Input: bfin_rotary - Remove redundant platform_set_drvdata()
2013-05-04 14:51 [PATCH 1/9] Input: ab8500-ponkey - Remove redundant platform_set_drvdata() Sachin Kamat
@ 2013-05-04 14:51 ` Sachin Kamat
2013-05-04 14:51 ` [PATCH 3/9] Input: gpio_tilt_polled " Sachin Kamat
` (7 subsequent siblings)
8 siblings, 0 replies; 12+ messages in thread
From: Sachin Kamat @ 2013-05-04 14:51 UTC (permalink / raw)
To: linux-input; +Cc: dmitry.torokhov, sachin.kamat, Michael Hennerich
Commit 0998d06310 (device-core: Ensure drvdata = NULL when no
driver is bound) removes the need to set driver data field to
NULL.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Cc: Michael Hennerich <hennerich@blackfin.uclinux.org>
---
drivers/input/misc/bfin_rotary.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/drivers/input/misc/bfin_rotary.c b/drivers/input/misc/bfin_rotary.c
index a6666e1..cd139cb 100644
--- a/drivers/input/misc/bfin_rotary.c
+++ b/drivers/input/misc/bfin_rotary.c
@@ -208,7 +208,6 @@ static int bfin_rotary_remove(struct platform_device *pdev)
peripheral_free_list(per_cnt);
kfree(rotary);
- platform_set_drvdata(pdev, NULL);
return 0;
}
--
1.7.4.1
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [PATCH 3/9] Input: gpio_tilt_polled - Remove redundant platform_set_drvdata()
2013-05-04 14:51 [PATCH 1/9] Input: ab8500-ponkey - Remove redundant platform_set_drvdata() Sachin Kamat
2013-05-04 14:51 ` [PATCH 2/9] Input: bfin_rotary " Sachin Kamat
@ 2013-05-04 14:51 ` Sachin Kamat
2013-05-04 19:44 ` Heiko Stübner
2013-05-04 14:51 ` [PATCH 4/9] Input: max8925_onkey " Sachin Kamat
` (6 subsequent siblings)
8 siblings, 1 reply; 12+ messages in thread
From: Sachin Kamat @ 2013-05-04 14:51 UTC (permalink / raw)
To: linux-input; +Cc: dmitry.torokhov, sachin.kamat, Heiko Stuebner
Commit 0998d06310 (device-core: Ensure drvdata = NULL when no
driver is bound) removes the need to set driver data field to
NULL.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Cc: Heiko Stuebner <heiko@sntech.de>
---
drivers/input/misc/gpio_tilt_polled.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/drivers/input/misc/gpio_tilt_polled.c b/drivers/input/misc/gpio_tilt_polled.c
index da05cca..714c683 100644
--- a/drivers/input/misc/gpio_tilt_polled.c
+++ b/drivers/input/misc/gpio_tilt_polled.c
@@ -184,8 +184,6 @@ static int gpio_tilt_polled_remove(struct platform_device *pdev)
struct gpio_tilt_polled_dev *tdev = platform_get_drvdata(pdev);
const struct gpio_tilt_platform_data *pdata = tdev->pdata;
- platform_set_drvdata(pdev, NULL);
-
input_unregister_polled_device(tdev->poll_dev);
input_free_polled_device(tdev->poll_dev);
--
1.7.4.1
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [PATCH 4/9] Input: max8925_onkey - Remove redundant platform_set_drvdata()
2013-05-04 14:51 [PATCH 1/9] Input: ab8500-ponkey - Remove redundant platform_set_drvdata() Sachin Kamat
2013-05-04 14:51 ` [PATCH 2/9] Input: bfin_rotary " Sachin Kamat
2013-05-04 14:51 ` [PATCH 3/9] Input: gpio_tilt_polled " Sachin Kamat
@ 2013-05-04 14:51 ` Sachin Kamat
2013-05-04 14:51 ` [PATCH 5/9] Input: mc13783-pwrbutton " Sachin Kamat
` (5 subsequent siblings)
8 siblings, 0 replies; 12+ messages in thread
From: Sachin Kamat @ 2013-05-04 14:51 UTC (permalink / raw)
To: linux-input; +Cc: dmitry.torokhov, sachin.kamat
Commit 0998d06310 (device-core: Ensure drvdata = NULL when no
driver is bound) removes the need to set driver data field to
NULL.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
---
drivers/input/misc/max8925_onkey.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/drivers/input/misc/max8925_onkey.c b/drivers/input/misc/max8925_onkey.c
index f9179b2..eef41cf 100644
--- a/drivers/input/misc/max8925_onkey.c
+++ b/drivers/input/misc/max8925_onkey.c
@@ -148,8 +148,6 @@ static int max8925_onkey_remove(struct platform_device *pdev)
input_unregister_device(info->idev);
kfree(info);
- platform_set_drvdata(pdev, NULL);
-
return 0;
}
--
1.7.4.1
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [PATCH 5/9] Input: mc13783-pwrbutton - Remove redundant platform_set_drvdata()
2013-05-04 14:51 [PATCH 1/9] Input: ab8500-ponkey - Remove redundant platform_set_drvdata() Sachin Kamat
` (2 preceding siblings ...)
2013-05-04 14:51 ` [PATCH 4/9] Input: max8925_onkey " Sachin Kamat
@ 2013-05-04 14:51 ` Sachin Kamat
2013-05-04 14:51 ` [PATCH 6/9] Input: pm8xxx-vibrator " Sachin Kamat
` (4 subsequent siblings)
8 siblings, 0 replies; 12+ messages in thread
From: Sachin Kamat @ 2013-05-04 14:51 UTC (permalink / raw)
To: linux-input; +Cc: dmitry.torokhov, sachin.kamat
Commit 0998d06310 (device-core: Ensure drvdata = NULL when no
driver is bound) removes the need to set driver data field to
NULL.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
---
drivers/input/misc/mc13783-pwrbutton.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/drivers/input/misc/mc13783-pwrbutton.c b/drivers/input/misc/mc13783-pwrbutton.c
index 0906ca5..d0277a7 100644
--- a/drivers/input/misc/mc13783-pwrbutton.c
+++ b/drivers/input/misc/mc13783-pwrbutton.c
@@ -250,7 +250,6 @@ static int mc13783_pwrbutton_remove(struct platform_device *pdev)
input_unregister_device(priv->pwr);
kfree(priv);
- platform_set_drvdata(pdev, NULL);
return 0;
}
--
1.7.4.1
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [PATCH 6/9] Input: pm8xxx-vibrator - Remove redundant platform_set_drvdata()
2013-05-04 14:51 [PATCH 1/9] Input: ab8500-ponkey - Remove redundant platform_set_drvdata() Sachin Kamat
` (3 preceding siblings ...)
2013-05-04 14:51 ` [PATCH 5/9] Input: mc13783-pwrbutton " Sachin Kamat
@ 2013-05-04 14:51 ` Sachin Kamat
2013-05-04 14:51 ` [PATCH 7/9] Input: pmic8xxx-pwrkey " Sachin Kamat
` (3 subsequent siblings)
8 siblings, 0 replies; 12+ messages in thread
From: Sachin Kamat @ 2013-05-04 14:51 UTC (permalink / raw)
To: linux-input; +Cc: dmitry.torokhov, sachin.kamat, Amy Maloche
Commit 0998d06310 (device-core: Ensure drvdata = NULL when no
driver is bound) removes the need to set driver data field to
NULL.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Cc: Amy Maloche <amaloche@codeaurora.org>
---
drivers/input/misc/pm8xxx-vibrator.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/drivers/input/misc/pm8xxx-vibrator.c b/drivers/input/misc/pm8xxx-vibrator.c
index a9da65e..ec086f6 100644
--- a/drivers/input/misc/pm8xxx-vibrator.c
+++ b/drivers/input/misc/pm8xxx-vibrator.c
@@ -249,8 +249,6 @@ static int pm8xxx_vib_remove(struct platform_device *pdev)
input_unregister_device(vib->vib_input_dev);
kfree(vib);
- platform_set_drvdata(pdev, NULL);
-
return 0;
}
--
1.7.4.1
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [PATCH 7/9] Input: pmic8xxx-pwrkey - Remove redundant platform_set_drvdata()
2013-05-04 14:51 [PATCH 1/9] Input: ab8500-ponkey - Remove redundant platform_set_drvdata() Sachin Kamat
` (4 preceding siblings ...)
2013-05-04 14:51 ` [PATCH 6/9] Input: pm8xxx-vibrator " Sachin Kamat
@ 2013-05-04 14:51 ` Sachin Kamat
2013-05-04 14:51 ` [PATCH 8/9] Input: pwm-beeper " Sachin Kamat
` (2 subsequent siblings)
8 siblings, 0 replies; 12+ messages in thread
From: Sachin Kamat @ 2013-05-04 14:51 UTC (permalink / raw)
To: linux-input; +Cc: dmitry.torokhov, sachin.kamat, Trilok Soni
Commit 0998d06310 (device-core: Ensure drvdata = NULL when no
driver is bound) removes the need to set driver data field to
NULL.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Cc: Trilok Soni <tsoni@codeaurora.org>
---
drivers/input/misc/pmic8xxx-pwrkey.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/drivers/input/misc/pmic8xxx-pwrkey.c b/drivers/input/misc/pmic8xxx-pwrkey.c
index 4b811be..afd0af9 100644
--- a/drivers/input/misc/pmic8xxx-pwrkey.c
+++ b/drivers/input/misc/pmic8xxx-pwrkey.c
@@ -177,7 +177,6 @@ static int pmic8xxx_pwrkey_probe(struct platform_device *pdev)
free_press_irq:
free_irq(key_press_irq, NULL);
unreg_input_dev:
- platform_set_drvdata(pdev, NULL);
input_unregister_device(pwr);
pwr = NULL;
free_input_dev:
@@ -198,7 +197,6 @@ static int pmic8xxx_pwrkey_remove(struct platform_device *pdev)
free_irq(key_press_irq, pwrkey);
free_irq(key_release_irq, pwrkey);
input_unregister_device(pwrkey->pwr);
- platform_set_drvdata(pdev, NULL);
kfree(pwrkey);
return 0;
--
1.7.4.1
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [PATCH 8/9] Input: pwm-beeper - Remove redundant platform_set_drvdata()
2013-05-04 14:51 [PATCH 1/9] Input: ab8500-ponkey - Remove redundant platform_set_drvdata() Sachin Kamat
` (5 preceding siblings ...)
2013-05-04 14:51 ` [PATCH 7/9] Input: pmic8xxx-pwrkey " Sachin Kamat
@ 2013-05-04 14:51 ` Sachin Kamat
2013-05-04 14:51 ` [PATCH 9/9] Input: rotary_encoder " Sachin Kamat
2013-05-06 3:01 ` [PATCH 1/9] Input: ab8500-ponkey " Dmitry Torokhov
8 siblings, 0 replies; 12+ messages in thread
From: Sachin Kamat @ 2013-05-04 14:51 UTC (permalink / raw)
To: linux-input; +Cc: dmitry.torokhov, sachin.kamat, Lars-Peter Clausen
Commit 0998d06310 (device-core: Ensure drvdata = NULL when no
driver is bound) removes the need to set driver data field to
NULL.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Cc: Lars-Peter Clausen <lars@metafoo.de>
---
drivers/input/misc/pwm-beeper.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/drivers/input/misc/pwm-beeper.c b/drivers/input/misc/pwm-beeper.c
index 0808868..a37f0c9 100644
--- a/drivers/input/misc/pwm-beeper.c
+++ b/drivers/input/misc/pwm-beeper.c
@@ -133,7 +133,6 @@ static int pwm_beeper_remove(struct platform_device *pdev)
{
struct pwm_beeper *beeper = platform_get_drvdata(pdev);
- platform_set_drvdata(pdev, NULL);
input_unregister_device(beeper->input);
pwm_disable(beeper->pwm);
--
1.7.4.1
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [PATCH 9/9] Input: rotary_encoder - Remove redundant platform_set_drvdata()
2013-05-04 14:51 [PATCH 1/9] Input: ab8500-ponkey - Remove redundant platform_set_drvdata() Sachin Kamat
` (6 preceding siblings ...)
2013-05-04 14:51 ` [PATCH 8/9] Input: pwm-beeper " Sachin Kamat
@ 2013-05-04 14:51 ` Sachin Kamat
2013-05-06 10:12 ` Daniel Mack
2013-05-06 3:01 ` [PATCH 1/9] Input: ab8500-ponkey " Dmitry Torokhov
8 siblings, 1 reply; 12+ messages in thread
From: Sachin Kamat @ 2013-05-04 14:51 UTC (permalink / raw)
To: linux-input; +Cc: dmitry.torokhov, sachin.kamat, Daniel Mack
Commit 0998d06310 (device-core: Ensure drvdata = NULL when no
driver is bound) removes the need to set driver data field to
NULL.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Cc: Daniel Mack <daniel@caiaq.de>
---
drivers/input/misc/rotary_encoder.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/drivers/input/misc/rotary_encoder.c b/drivers/input/misc/rotary_encoder.c
index aff47b2..5b1aff8 100644
--- a/drivers/input/misc/rotary_encoder.c
+++ b/drivers/input/misc/rotary_encoder.c
@@ -317,8 +317,6 @@ static int rotary_encoder_remove(struct platform_device *pdev)
if (!dev_get_platdata(&pdev->dev))
kfree(pdata);
- platform_set_drvdata(pdev, NULL);
-
return 0;
}
--
1.7.4.1
^ permalink raw reply related [flat|nested] 12+ messages in thread
* Re: [PATCH 3/9] Input: gpio_tilt_polled - Remove redundant platform_set_drvdata()
2013-05-04 14:51 ` [PATCH 3/9] Input: gpio_tilt_polled " Sachin Kamat
@ 2013-05-04 19:44 ` Heiko Stübner
0 siblings, 0 replies; 12+ messages in thread
From: Heiko Stübner @ 2013-05-04 19:44 UTC (permalink / raw)
To: Sachin Kamat; +Cc: linux-input, dmitry.torokhov
Am Samstag, 4. Mai 2013, 16:51:52 schrieb Sachin Kamat:
> Commit 0998d06310 (device-core: Ensure drvdata = NULL when no
> driver is bound) removes the need to set driver data field to
> NULL.
>
> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
> Cc: Heiko Stuebner <heiko@sntech.de>
not sure, if it's needed for such a small change, but nevertheless
Acked-by: Heiko Stuebner <heiko@sntech.de>
> ---
> drivers/input/misc/gpio_tilt_polled.c | 2 --
> 1 files changed, 0 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/input/misc/gpio_tilt_polled.c
> b/drivers/input/misc/gpio_tilt_polled.c index da05cca..714c683 100644
> --- a/drivers/input/misc/gpio_tilt_polled.c
> +++ b/drivers/input/misc/gpio_tilt_polled.c
> @@ -184,8 +184,6 @@ static int gpio_tilt_polled_remove(struct
> platform_device *pdev) struct gpio_tilt_polled_dev *tdev =
> platform_get_drvdata(pdev);
> const struct gpio_tilt_platform_data *pdata = tdev->pdata;
>
> - platform_set_drvdata(pdev, NULL);
> -
> input_unregister_polled_device(tdev->poll_dev);
> input_free_polled_device(tdev->poll_dev);
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH 1/9] Input: ab8500-ponkey - Remove redundant platform_set_drvdata()
2013-05-04 14:51 [PATCH 1/9] Input: ab8500-ponkey - Remove redundant platform_set_drvdata() Sachin Kamat
` (7 preceding siblings ...)
2013-05-04 14:51 ` [PATCH 9/9] Input: rotary_encoder " Sachin Kamat
@ 2013-05-06 3:01 ` Dmitry Torokhov
8 siblings, 0 replies; 12+ messages in thread
From: Dmitry Torokhov @ 2013-05-06 3:01 UTC (permalink / raw)
To: Sachin Kamat; +Cc: linux-input, Sundar Iyer
On Sat, May 04, 2013 at 08:21:50PM +0530, Sachin Kamat wrote:
> Commit 0998d06310 (device-core: Ensure drvdata = NULL when no
> driver is bound) removes the need to set driver data field to
> NULL.
>
> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Applied all series, thank you.
--
Dmitry
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH 9/9] Input: rotary_encoder - Remove redundant platform_set_drvdata()
2013-05-04 14:51 ` [PATCH 9/9] Input: rotary_encoder " Sachin Kamat
@ 2013-05-06 10:12 ` Daniel Mack
0 siblings, 0 replies; 12+ messages in thread
From: Daniel Mack @ 2013-05-06 10:12 UTC (permalink / raw)
To: Sachin Kamat; +Cc: linux-input, dmitry.torokhov, Daniel Mack
On 04.05.2013 16:51, Sachin Kamat wrote:
> Commit 0998d06310 (device-core: Ensure drvdata = NULL when no
> driver is bound) removes the need to set driver data field to
> NULL.
>
> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
> Cc: Daniel Mack <daniel@caiaq.de>
Acked-by: Daniel Mack <zonque@gmail.com>
> ---
> drivers/input/misc/rotary_encoder.c | 2 --
> 1 files changed, 0 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/input/misc/rotary_encoder.c b/drivers/input/misc/rotary_encoder.c
> index aff47b2..5b1aff8 100644
> --- a/drivers/input/misc/rotary_encoder.c
> +++ b/drivers/input/misc/rotary_encoder.c
> @@ -317,8 +317,6 @@ static int rotary_encoder_remove(struct platform_device *pdev)
> if (!dev_get_platdata(&pdev->dev))
> kfree(pdata);
>
> - platform_set_drvdata(pdev, NULL);
> -
> return 0;
> }
>
>
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2013-05-06 10:12 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-04 14:51 [PATCH 1/9] Input: ab8500-ponkey - Remove redundant platform_set_drvdata() Sachin Kamat
2013-05-04 14:51 ` [PATCH 2/9] Input: bfin_rotary " Sachin Kamat
2013-05-04 14:51 ` [PATCH 3/9] Input: gpio_tilt_polled " Sachin Kamat
2013-05-04 19:44 ` Heiko Stübner
2013-05-04 14:51 ` [PATCH 4/9] Input: max8925_onkey " Sachin Kamat
2013-05-04 14:51 ` [PATCH 5/9] Input: mc13783-pwrbutton " Sachin Kamat
2013-05-04 14:51 ` [PATCH 6/9] Input: pm8xxx-vibrator " Sachin Kamat
2013-05-04 14:51 ` [PATCH 7/9] Input: pmic8xxx-pwrkey " Sachin Kamat
2013-05-04 14:51 ` [PATCH 8/9] Input: pwm-beeper " Sachin Kamat
2013-05-04 14:51 ` [PATCH 9/9] Input: rotary_encoder " Sachin Kamat
2013-05-06 10:12 ` Daniel Mack
2013-05-06 3:01 ` [PATCH 1/9] Input: ab8500-ponkey " Dmitry Torokhov
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).