summaryrefslogtreecommitdiffstats
path: root/drivers/video/backlight/tosa_bl.h
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2019-10-18 17:41:53 +0200
committerLee Jones <lee.jones@linaro.org>2019-11-11 09:29:56 +0000
commit0b0cb52bd80eda76c4b9921f5cf9c1b709d44e83 (patch)
treecb5751a07c22aa9f15626a92d2d17820feef3772 /drivers/video/backlight/tosa_bl.h
parent8663c188beeacf35d4865185a6713d6e8ded4fea (diff)
downloadlinux-stable-0b0cb52bd80eda76c4b9921f5cf9c1b709d44e83.tar.gz
linux-stable-0b0cb52bd80eda76c4b9921f5cf9c1b709d44e83.tar.bz2
linux-stable-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.h8
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