Skip to content

Commit b574beb

Browse files
committed
Merge tag 'backlight-next-5.7' of git://git.kernel.org/pub/scm/linux/kernel/git/lee/backlight
Pull backlight updates from Lee Jones: "Switch pwm_bl and corgi_lcd drivers to use GPIO descriptors" * tag 'backlight-next-5.7' of git://git.kernel.org/pub/scm/linux/kernel/git/lee/backlight: backlight: corgi: Convert to use GPIO descriptors backlight: pwm_bl: Switch to full GPIO descriptor
2 parents 38e2c63 + ee0c8e4 commit b574beb

30 files changed

+65
-112
lines changed

arch/arm/mach-pxa/cm-x300.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,6 @@ static struct pwm_lookup cm_x300_pwm_lookup[] = {
312312
static struct platform_pwm_backlight_data cm_x300_backlight_data = {
313313
.max_brightness = 100,
314314
.dft_brightness = 100,
315-
.enable_gpio = -1,
316315
};
317316

318317
static struct platform_device cm_x300_backlight_device = {

arch/arm/mach-pxa/colibri-pxa270-income.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,6 @@ static struct pwm_lookup income_pwm_lookup[] = {
202202
static struct platform_pwm_backlight_data income_backlight_data = {
203203
.max_brightness = 0x3ff,
204204
.dft_brightness = 0x1ff,
205-
.enable_gpio = -1,
206205
};
207206

208207
static struct platform_device income_backlight = {

arch/arm/mach-pxa/corgi.c

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -563,13 +563,20 @@ static void corgi_bl_kick_battery(void)
563563
}
564564
}
565565

566+
static struct gpiod_lookup_table corgi_lcdcon_gpio_table = {
567+
.dev_id = "spi1.1",
568+
.table = {
569+
GPIO_LOOKUP("gpio-pxa", CORGI_GPIO_BACKLIGHT_CONT,
570+
"BL_CONT", GPIO_ACTIVE_HIGH),
571+
{ },
572+
},
573+
};
574+
566575
static struct corgi_lcd_platform_data corgi_lcdcon_info = {
567576
.init_mode = CORGI_LCD_MODE_VGA,
568577
.max_intensity = 0x2f,
569578
.default_intensity = 0x1f,
570579
.limit_mask = 0x0b,
571-
.gpio_backlight_cont = CORGI_GPIO_BACKLIGHT_CONT,
572-
.gpio_backlight_on = -1,
573580
.kick_battery = corgi_bl_kick_battery,
574581
};
575582

@@ -609,6 +616,7 @@ static struct spi_board_info corgi_spi_devices[] = {
609616
static void __init corgi_init_spi(void)
610617
{
611618
pxa2xx_set_spi_info(1, &corgi_spi_info);
619+
gpiod_add_lookup_table(&corgi_lcdcon_gpio_table);
612620
spi_register_board_info(ARRAY_AND_SIZE(corgi_spi_devices));
613621
}
614622
#else

arch/arm/mach-pxa/ezx.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ static struct pwm_lookup ezx_pwm_lookup[] __maybe_unused = {
5555
static struct platform_pwm_backlight_data ezx_backlight_data = {
5656
.max_brightness = 1023,
5757
.dft_brightness = 1023,
58-
.enable_gpio = -1,
5958
};
6059

6160
static struct platform_device ezx_backlight_device = {

arch/arm/mach-pxa/hx4700.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,6 @@ static struct platform_device hx4700_lcd = {
556556
static struct platform_pwm_backlight_data backlight_data = {
557557
.max_brightness = 200,
558558
.dft_brightness = 100,
559-
.enable_gpio = -1,
560559
};
561560

562561
static struct platform_device backlight = {

arch/arm/mach-pxa/lpd270.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,6 @@ static struct pwm_lookup lpd270_pwm_lookup[] = {
277277
static struct platform_pwm_backlight_data lpd270_backlight_data = {
278278
.max_brightness = 1,
279279
.dft_brightness = 1,
280-
.enable_gpio = -1,
281280
};
282281

283282
static struct platform_device lpd270_backlight_device = {

arch/arm/mach-pxa/magician.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,6 @@ static void magician_backlight_exit(struct device *dev)
401401
static struct platform_pwm_backlight_data backlight_data = {
402402
.max_brightness = 272,
403403
.dft_brightness = 100,
404-
.enable_gpio = -1,
405404
.init = magician_backlight_init,
406405
.notify = magician_backlight_notify,
407406
.exit = magician_backlight_exit,

arch/arm/mach-pxa/mainstone.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,6 @@ static struct pwm_lookup mainstone_pwm_lookup[] = {
256256
static struct platform_pwm_backlight_data mainstone_backlight_data = {
257257
.max_brightness = 1023,
258258
.dft_brightness = 1023,
259-
.enable_gpio = -1,
260259
};
261260

262261
static struct platform_device mainstone_backlight_device = {

arch/arm/mach-pxa/mioa701.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,6 @@ static struct pwm_lookup mioa701_pwm_lookup[] = {
176176
static struct platform_pwm_backlight_data mioa701_backlight_data = {
177177
.max_brightness = 100,
178178
.dft_brightness = 50,
179-
.enable_gpio = -1,
180179
};
181180

182181
/*

arch/arm/mach-pxa/palm27x.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,6 @@ static void palm27x_backlight_exit(struct device *dev)
318318
static struct platform_pwm_backlight_data palm27x_backlight_data = {
319319
.max_brightness = 0xfe,
320320
.dft_brightness = 0x7e,
321-
.enable_gpio = -1,
322321
.init = palm27x_backlight_init,
323322
.notify = palm27x_backlight_notify,
324323
.exit = palm27x_backlight_exit,

0 commit comments

Comments
 (0)