diff options
author | Arnd Bergmann <arnd@arndb.de> | 2019-10-18 17:41:53 +0200 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2019-11-11 10:29:56 +0100 |
commit | 0b0cb52bd80eda76c4b9921f5cf9c1b709d44e83 (patch) | |
tree | cb5751a07c22aa9f15626a92d2d17820feef3772 /drivers/video/backlight/tosa_bl.h | |
parent | backlight: qcom-wled: Add auto string detection logic (diff) | |
download | linux-0b0cb52bd80eda76c4b9921f5cf9c1b709d44e83.tar.xz linux-0b0cb52bd80eda76c4b9921f5cf9c1b709d44e83.zip |
video: backlight: tosa: Use GPIO lookup table
The driver should not require a machine specific header. Change
it to pass the GPIO line through a lookup table, and move the
timing generator definitions into the drivers itself.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Robert Jarzmik <robert.jarzmik@free.fr>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/video/backlight/tosa_bl.h')
-rw-r--r-- | drivers/video/backlight/tosa_bl.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/video/backlight/tosa_bl.h b/drivers/video/backlight/tosa_bl.h new file mode 100644 index 000000000000..589e17e6fdb2 --- /dev/null +++ b/drivers/video/backlight/tosa_bl.h @@ -0,0 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ +#ifndef _TOSA_BL_H +#define _TOSA_BL_H + +struct spi_device; +extern int tosa_bl_enable(struct spi_device *spi, int enable); + +#endif |