Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit db01120c authored by Thierry Reding's avatar Thierry Reding Committed by Thierry Reding
Browse files

ARM: pxa: Initialize PWM backlight enable_gpio field



The GPIO API defines 0 as being a valid GPIO number, so this field needs
to be initialized explicitly.

A special case is the Palm Tungsten|C board. Since it doesn't use any
quirks that would require the existing .init() or .exit() hooks it can
simply use the new enable_gpio field.

Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
parent d46055af
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -310,6 +310,7 @@ static struct platform_pwm_backlight_data cm_x300_backlight_data = {
	.max_brightness	= 100,
	.dft_brightness	= 100,
	.pwm_period_ns	= 10000,
	.enable_gpio	= -1,
};

static struct platform_device cm_x300_backlight_device = {
+1 −0
Original line number Diff line number Diff line
@@ -189,6 +189,7 @@ static struct platform_pwm_backlight_data income_backlight_data = {
	.max_brightness	= 0x3ff,
	.dft_brightness	= 0x1ff,
	.pwm_period_ns	= 1000000,
	.enable_gpio	= -1,
};

static struct platform_device income_backlight = {
+1 −0
Original line number Diff line number Diff line
@@ -54,6 +54,7 @@ static struct platform_pwm_backlight_data ezx_backlight_data = {
	.max_brightness	= 1023,
	.dft_brightness	= 1023,
	.pwm_period_ns	= 78770,
	.enable_gpio	= -1,
};

static struct platform_device ezx_backlight_device = {
+1 −0
Original line number Diff line number Diff line
@@ -561,6 +561,7 @@ static struct platform_pwm_backlight_data backlight_data = {
	.max_brightness = 200,
	.dft_brightness = 100,
	.pwm_period_ns  = 30923,
	.enable_gpio    = -1,
};

static struct platform_device backlight = {
+1 −0
Original line number Diff line number Diff line
@@ -269,6 +269,7 @@ static struct platform_pwm_backlight_data lpd270_backlight_data = {
	.max_brightness	= 1,
	.dft_brightness	= 1,
	.pwm_period_ns	= 78770,
	.enable_gpio	= -1,
};

static struct platform_device lpd270_backlight_device = {
Loading