Re: [PATCH v2] backlight: pwm_bl: Switch to full GPIO descriptor

2019-12-19 Thread Robert Jarzmik
Linus Walleij  writes:

> The PWM backlight still supports passing a enable GPIO line as
> platform data using the legacy  API.
>
> It turns out that ever board using this mechanism except one
> is pass .enable_gpio = -1. So we drop all these cargo-culted -1's
> from all instances of this platform data in the kernel.
>
> The remaning board, Palm TC, is converted to pass a machine
> descriptior table with the "enable" GPIO instead, and delete the
> platform data entry for enable_gpio and the code handling it
> and things should work smoothly with the new API.
>
> Cc: Krzysztof Kozlowski 
> Cc: Robert Jarzmik 
> Cc: Guan Xuetao 
> Reviewed-by: Bartosz Golaszewski 
> Signed-off-by: Linus Walleij 
> ---
> ChangeLog v1->v2:
> - Located a missing removal of .enable_gpio in the Palm TC
>   board file, pointed out by Daniel.
> - Grepped to ascertain there is not a single instance of
>   the string "enable_gpio" in the affected board files.

For arch/arm/mach-pxa :
Acked-by: Robert Jarzmik 

Cheers.

--
Robert
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


Re: [PATCH v2] backlight: pwm_bl: Switch to full GPIO descriptor

2019-12-16 Thread Krzysztof Kozlowski
On Fri, 13 Dec 2019 at 11:23, Linus Walleij  wrote:
>
> The PWM backlight still supports passing a enable GPIO line as
> platform data using the legacy  API.
>
> It turns out that ever board using this mechanism except one
> is pass .enable_gpio = -1. So we drop all these cargo-culted -1's
> from all instances of this platform data in the kernel.
>
> The remaning board, Palm TC, is converted to pass a machine
> descriptior table with the "enable" GPIO instead, and delete the
> platform data entry for enable_gpio and the code handling it
> and things should work smoothly with the new API.
>
> Cc: Krzysztof Kozlowski 
> Cc: Robert Jarzmik 
> Cc: Guan Xuetao 
> Reviewed-by: Bartosz Golaszewski 
> Signed-off-by: Linus Walleij 
> ---
> ChangeLog v1->v2:
> - Located a missing removal of .enable_gpio in the Palm TC
>   board file, pointed out by Daniel.
> - Grepped to ascertain there is not a single instance of
>   the string "enable_gpio" in the affected board files.
> ---
>  arch/arm/mach-pxa/cm-x300.c   |  1 -
>  arch/arm/mach-pxa/colibri-pxa270-income.c |  1 -
>  arch/arm/mach-pxa/ezx.c   |  1 -
>  arch/arm/mach-pxa/hx4700.c|  1 -
>  arch/arm/mach-pxa/lpd270.c|  1 -
>  arch/arm/mach-pxa/magician.c  |  1 -
>  arch/arm/mach-pxa/mainstone.c |  1 -
>  arch/arm/mach-pxa/mioa701.c   |  1 -
>  arch/arm/mach-pxa/palm27x.c   |  1 -
>  arch/arm/mach-pxa/palmtc.c| 11 ++-
>  arch/arm/mach-pxa/palmte2.c   |  1 -
>  arch/arm/mach-pxa/pcm990-baseboard.c  |  1 -
>  arch/arm/mach-pxa/tavorevb.c  |  2 --
>  arch/arm/mach-pxa/viper.c |  1 -
>  arch/arm/mach-pxa/z2.c|  2 --
>  arch/arm/mach-pxa/zylonite.c  |  1 -
>  arch/arm/mach-s3c24xx/mach-h1940.c|  1 -
>  arch/arm/mach-s3c24xx/mach-rx1950.c   |  1 -
>  arch/arm/mach-s3c64xx/dev-backlight.c |  3 ---
>  arch/arm/mach-s3c64xx/mach-crag6410.c |  1 -
>  arch/arm/mach-s3c64xx/mach-hmt.c  |  1 -
>  arch/arm/mach-s3c64xx/mach-smartq.c   |  1 -
>  arch/arm/mach-s3c64xx/mach-smdk6410.c |  2 +-

For s3c:
Acked-by: Krzysztof Kozlowski 

Best regards,
Krzysztof
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


Re: [PATCH v2] backlight: pwm_bl: Switch to full GPIO descriptor

2019-12-16 Thread Lee Jones
On Fri, 13 Dec 2019, Linus Walleij wrote:

> The PWM backlight still supports passing a enable GPIO line as
> platform data using the legacy  API.
> 
> It turns out that ever board using this mechanism except one
> is pass .enable_gpio = -1. So we drop all these cargo-culted -1's
> from all instances of this platform data in the kernel.
> 
> The remaning board, Palm TC, is converted to pass a machine
> descriptior table with the "enable" GPIO instead, and delete the
> platform data entry for enable_gpio and the code handling it
> and things should work smoothly with the new API.
> 
> Cc: Krzysztof Kozlowski 
> Cc: Robert Jarzmik 
> Cc: Guan Xuetao 
> Reviewed-by: Bartosz Golaszewski 
> Signed-off-by: Linus Walleij 

Happy to handle this, but it requires more Acks.

> ---
> ChangeLog v1->v2:
> - Located a missing removal of .enable_gpio in the Palm TC
>   board file, pointed out by Daniel.
> - Grepped to ascertain there is not a single instance of
>   the string "enable_gpio" in the affected board files.
> ---
>  arch/arm/mach-pxa/cm-x300.c   |  1 -
>  arch/arm/mach-pxa/colibri-pxa270-income.c |  1 -
>  arch/arm/mach-pxa/ezx.c   |  1 -
>  arch/arm/mach-pxa/hx4700.c|  1 -
>  arch/arm/mach-pxa/lpd270.c|  1 -
>  arch/arm/mach-pxa/magician.c  |  1 -
>  arch/arm/mach-pxa/mainstone.c |  1 -
>  arch/arm/mach-pxa/mioa701.c   |  1 -
>  arch/arm/mach-pxa/palm27x.c   |  1 -
>  arch/arm/mach-pxa/palmtc.c| 11 ++-
>  arch/arm/mach-pxa/palmte2.c   |  1 -
>  arch/arm/mach-pxa/pcm990-baseboard.c  |  1 -
>  arch/arm/mach-pxa/tavorevb.c  |  2 --
>  arch/arm/mach-pxa/viper.c |  1 -
>  arch/arm/mach-pxa/z2.c|  2 --
>  arch/arm/mach-pxa/zylonite.c  |  1 -
>  arch/arm/mach-s3c24xx/mach-h1940.c|  1 -
>  arch/arm/mach-s3c24xx/mach-rx1950.c   |  1 -
>  arch/arm/mach-s3c64xx/dev-backlight.c |  3 ---
>  arch/arm/mach-s3c64xx/mach-crag6410.c |  1 -
>  arch/arm/mach-s3c64xx/mach-hmt.c  |  1 -
>  arch/arm/mach-s3c64xx/mach-smartq.c   |  1 -
>  arch/arm/mach-s3c64xx/mach-smdk6410.c |  2 +-
>  arch/unicore32/kernel/puv3-nb0916.c   |  1 -
>  drivers/video/backlight/pwm_bl.c  | 19 ---
>  include/linux/pwm_backlight.h |  2 --
>  26 files changed, 11 insertions(+), 49 deletions(-)

-- 
Lee Jones [李琼斯]
Linaro Services Technical Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


Re: [PATCH v2] backlight: pwm_bl: Switch to full GPIO descriptor

2019-12-13 Thread Daniel Thompson
On Fri, Dec 13, 2019 at 11:23:46AM +0100, Linus Walleij wrote:
> The PWM backlight still supports passing a enable GPIO line as
> platform data using the legacy  API.
> 
> It turns out that ever board using this mechanism except one
> is pass .enable_gpio = -1. So we drop all these cargo-culted -1's
> from all instances of this platform data in the kernel.
> 
> The remaning board, Palm TC, is converted to pass a machine
> descriptior table with the "enable" GPIO instead, and delete the
> platform data entry for enable_gpio and the code handling it
> and things should work smoothly with the new API.
> 
> Cc: Krzysztof Kozlowski 
> Cc: Robert Jarzmik 
> Cc: Guan Xuetao 
> Reviewed-by: Bartosz Golaszewski 
> Signed-off-by: Linus Walleij 

Reviewed-by: Daniel Thompson 
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[PATCH v2] backlight: pwm_bl: Switch to full GPIO descriptor

2019-12-13 Thread Linus Walleij
The PWM backlight still supports passing a enable GPIO line as
platform data using the legacy  API.

It turns out that ever board using this mechanism except one
is pass .enable_gpio = -1. So we drop all these cargo-culted -1's
from all instances of this platform data in the kernel.

The remaning board, Palm TC, is converted to pass a machine
descriptior table with the "enable" GPIO instead, and delete the
platform data entry for enable_gpio and the code handling it
and things should work smoothly with the new API.

Cc: Krzysztof Kozlowski 
Cc: Robert Jarzmik 
Cc: Guan Xuetao 
Reviewed-by: Bartosz Golaszewski 
Signed-off-by: Linus Walleij 
---
ChangeLog v1->v2:
- Located a missing removal of .enable_gpio in the Palm TC
  board file, pointed out by Daniel.
- Grepped to ascertain there is not a single instance of
  the string "enable_gpio" in the affected board files.
---
 arch/arm/mach-pxa/cm-x300.c   |  1 -
 arch/arm/mach-pxa/colibri-pxa270-income.c |  1 -
 arch/arm/mach-pxa/ezx.c   |  1 -
 arch/arm/mach-pxa/hx4700.c|  1 -
 arch/arm/mach-pxa/lpd270.c|  1 -
 arch/arm/mach-pxa/magician.c  |  1 -
 arch/arm/mach-pxa/mainstone.c |  1 -
 arch/arm/mach-pxa/mioa701.c   |  1 -
 arch/arm/mach-pxa/palm27x.c   |  1 -
 arch/arm/mach-pxa/palmtc.c| 11 ++-
 arch/arm/mach-pxa/palmte2.c   |  1 -
 arch/arm/mach-pxa/pcm990-baseboard.c  |  1 -
 arch/arm/mach-pxa/tavorevb.c  |  2 --
 arch/arm/mach-pxa/viper.c |  1 -
 arch/arm/mach-pxa/z2.c|  2 --
 arch/arm/mach-pxa/zylonite.c  |  1 -
 arch/arm/mach-s3c24xx/mach-h1940.c|  1 -
 arch/arm/mach-s3c24xx/mach-rx1950.c   |  1 -
 arch/arm/mach-s3c64xx/dev-backlight.c |  3 ---
 arch/arm/mach-s3c64xx/mach-crag6410.c |  1 -
 arch/arm/mach-s3c64xx/mach-hmt.c  |  1 -
 arch/arm/mach-s3c64xx/mach-smartq.c   |  1 -
 arch/arm/mach-s3c64xx/mach-smdk6410.c |  2 +-
 arch/unicore32/kernel/puv3-nb0916.c   |  1 -
 drivers/video/backlight/pwm_bl.c  | 19 ---
 include/linux/pwm_backlight.h |  2 --
 26 files changed, 11 insertions(+), 49 deletions(-)

diff --git a/arch/arm/mach-pxa/cm-x300.c b/arch/arm/mach-pxa/cm-x300.c
index 425855f456f2..2e35354b61f5 100644
--- a/arch/arm/mach-pxa/cm-x300.c
+++ b/arch/arm/mach-pxa/cm-x300.c
@@ -312,7 +312,6 @@ static struct pwm_lookup cm_x300_pwm_lookup[] = {
 static struct platform_pwm_backlight_data cm_x300_backlight_data = {
.max_brightness = 100,
.dft_brightness = 100,
-   .enable_gpio= -1,
 };
 
 static struct platform_device cm_x300_backlight_device = {
diff --git a/arch/arm/mach-pxa/colibri-pxa270-income.c 
b/arch/arm/mach-pxa/colibri-pxa270-income.c
index dbad2f13706c..e5879e8b0682 100644
--- a/arch/arm/mach-pxa/colibri-pxa270-income.c
+++ b/arch/arm/mach-pxa/colibri-pxa270-income.c
@@ -202,7 +202,6 @@ static struct pwm_lookup income_pwm_lookup[] = {
 static struct platform_pwm_backlight_data income_backlight_data = {
.max_brightness = 0x3ff,
.dft_brightness = 0x1ff,
-   .enable_gpio= -1,
 };
 
 static struct platform_device income_backlight = {
diff --git a/arch/arm/mach-pxa/ezx.c b/arch/arm/mach-pxa/ezx.c
index ec10851b63cf..eb85950e7c0e 100644
--- a/arch/arm/mach-pxa/ezx.c
+++ b/arch/arm/mach-pxa/ezx.c
@@ -55,7 +55,6 @@ static struct pwm_lookup ezx_pwm_lookup[] __maybe_unused = {
 static struct platform_pwm_backlight_data ezx_backlight_data = {
.max_brightness = 1023,
.dft_brightness = 1023,
-   .enable_gpio= -1,
 };
 
 static struct platform_device ezx_backlight_device = {
diff --git a/arch/arm/mach-pxa/hx4700.c b/arch/arm/mach-pxa/hx4700.c
index 311268d186ab..60186224df49 100644
--- a/arch/arm/mach-pxa/hx4700.c
+++ b/arch/arm/mach-pxa/hx4700.c
@@ -557,7 +557,6 @@ static struct platform_device hx4700_lcd = {
 static struct platform_pwm_backlight_data backlight_data = {
.max_brightness = 200,
.dft_brightness = 100,
-   .enable_gpio= -1,
 };
 
 static struct platform_device backlight = {
diff --git a/arch/arm/mach-pxa/lpd270.c b/arch/arm/mach-pxa/lpd270.c
index 20e00e970385..6fc40bc06910 100644
--- a/arch/arm/mach-pxa/lpd270.c
+++ b/arch/arm/mach-pxa/lpd270.c
@@ -277,7 +277,6 @@ static struct pwm_lookup lpd270_pwm_lookup[] = {
 static struct platform_pwm_backlight_data lpd270_backlight_data = {
.max_brightness = 1,
.dft_brightness = 1,
-   .enable_gpio= -1,
 };
 
 static struct platform_device lpd270_backlight_device = {
diff --git a/arch/arm/mach-pxa/magician.c b/arch/arm/mach-pxa/magician.c
index e1a394ac3eea..9b5b17b8b8b7 100644
--- a/arch/arm/mach-pxa/magician.c
+++ b/arch/arm/mach-pxa/magician.c
@@ -402,7 +402,6 @@ static void magician_backlight_exit(struct device *dev)
 static struct platform_pwm_backlight_data backlight_data = {
.max_brightness = 2