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

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

ARM: SAMSUNG: 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.

Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
parent db01120c
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -504,6 +504,7 @@ static struct platform_pwm_backlight_data backlight_data = {
	.dft_brightness = 50,
	/* tcnt = 0x31 */
	.pwm_period_ns  = 36296,
	.enable_gpio    = -1,
	.init           = h1940_backlight_init,
	.notify		= h1940_backlight_notify,
	.exit           = h1940_backlight_exit,
+1 −0
Original line number Diff line number Diff line
@@ -522,6 +522,7 @@ static struct platform_pwm_backlight_data rx1950_backlight_data = {
	.max_brightness = 24,
	.dft_brightness = 4,
	.pwm_period_ns = 48000,
	.enable_gpio = -1,
	.init = rx1950_backlight_init,
	.notify = rx1950_backlight_notify,
	.exit = rx1950_backlight_exit,
+1 −0
Original line number Diff line number Diff line
@@ -114,6 +114,7 @@ static struct platform_pwm_backlight_data crag6410_backlight_data = {
	.max_brightness	= 1000,
	.dft_brightness	= 600,
	.pwm_period_ns	= 100000,	/* about 1kHz */
	.enable_gpio	= -1,
};

static struct platform_device crag6410_backlight_device = {
+1 −0
Original line number Diff line number Diff line
@@ -114,6 +114,7 @@ static struct platform_pwm_backlight_data hmt_backlight_data = {
	.max_brightness	= 100 * 256,
	.dft_brightness	= 40 * 256,
	.pwm_period_ns	= 1000000000 / (100 * 256 * 20),
	.enable_gpio	= -1,
	.init		= hmt_bl_init,
	.notify		= hmt_bl_notify,
	.exit		= hmt_bl_exit,
+1 −0
Original line number Diff line number Diff line
@@ -151,6 +151,7 @@ static struct platform_pwm_backlight_data smartq_backlight_data = {
	.max_brightness	= 1000,
	.dft_brightness	= 600,
	.pwm_period_ns	= 1000000000 / (1000 * 20),
	.enable_gpio	= -1,
	.init		= smartq_bl_init,
};

Loading