mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-09 23:39:18 +00:00
ee0c8e494c
The code in the Corgi backlight driver can be considerably simplified by moving to GPIO descriptors and lookup tables from the board files instead of passing GPIO numbers using the old API. Make sure to encode inversion semantics for the Akita and Spitz platforms inside the GPIO lookup table and drop the custom inversion semantics from the driver. All in-tree users are converted in this patch. Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Acked-by: Robert Jarzmik <robert.jarzmik@free.fr> Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org> Signed-off-by: Lee Jones <lee.jones@linaro.org>
19 lines
377 B
C
19 lines
377 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef __LINUX_SPI_CORGI_LCD_H
|
|
#define __LINUX_SPI_CORGI_LCD_H
|
|
|
|
#define CORGI_LCD_MODE_QVGA 1
|
|
#define CORGI_LCD_MODE_VGA 2
|
|
|
|
struct corgi_lcd_platform_data {
|
|
int init_mode;
|
|
int max_intensity;
|
|
int default_intensity;
|
|
int limit_mask;
|
|
|
|
void (*notify)(int intensity);
|
|
void (*kick_battery)(void);
|
|
};
|
|
|
|
#endif /* __LINUX_SPI_CORGI_LCD_H */
|