summaryrefslogtreecommitdiff
path: root/include/linux/platform_data
diff options
context:
space:
mode:
authorAnders Darander <anders@chargestorm.se>2017-04-27 09:37:33 +0300
committerJacek Anaszewski <jacek.anaszewski@gmail.com>2017-05-14 14:01:29 +0300
commitbb29b9cccd95feeb43e11e9b1c2479777082e28a (patch)
treea4d68a91a58dccdd88eae6265ff30a50671d5d12 /include/linux/platform_data
parent2ea659a9ef488125eb46da6eb571de5eae5c43f6 (diff)
downloadlinux-bb29b9cccd95feeb43e11e9b1c2479777082e28a.tar.xz
leds: pca963x: Add bindings to invert polarity
Add a new DT property, nxp,inverted-out, to invert the polarity of the output. Tested on PCA9634. Signed-off-by: Anders Darander <anders@chargestorm.se> Acked-by: Pavel Machek <pavel@ucw.cz> Signed-off-by: Jacek Anaszewski <jacek.anaszewski@gmail.com>
Diffstat (limited to 'include/linux/platform_data')
-rw-r--r--include/linux/platform_data/leds-pca963x.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/platform_data/leds-pca963x.h b/include/linux/platform_data/leds-pca963x.h
index e731f0036329..54e845ffb5ed 100644
--- a/include/linux/platform_data/leds-pca963x.h
+++ b/include/linux/platform_data/leds-pca963x.h
@@ -33,10 +33,16 @@ enum pca963x_blink_type {
PCA963X_HW_BLINK,
};
+enum pca963x_direction {
+ PCA963X_NORMAL,
+ PCA963X_INVERTED,
+};
+
struct pca963x_platform_data {
struct led_platform_data leds;
enum pca963x_outdrv outdrv;
enum pca963x_blink_type blink_type;
+ enum pca963x_direction dir;
};
#endif /* __LINUX_PCA963X_H*/