aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/olpc-ec.h
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2019-05-13 09:56:37 +0200
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>2019-05-20 17:27:08 +0300
commit0c3d931b3ab9efeea4948b5373c62095449d0101 (patch)
tree58c0832bb5891d24359edaba99d8b97990edf9aa /include/linux/olpc-ec.h
parentPlatform: OLPC: Use BIT() and GENMASK() for event masks (diff)
downloadlinux-dev-0c3d931b3ab9efeea4948b5373c62095449d0101.tar.xz
linux-dev-0c3d931b3ab9efeea4948b5373c62095449d0101.zip
Platform: OLPC: Add XO-1.75 EC driver
It's based off the driver from the OLPC kernel sources. Somewhat modernized and cleaned up, for better or worse. Modified to plug into the olpc-ec driver infrastructure (so that battery interface and debugfs could be reused) and the SPI slave framework. Signed-off-by: Lubomir Rintel <lkundrak@v3.sk> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Diffstat (limited to 'include/linux/olpc-ec.h')
-rw-r--r--include/linux/olpc-ec.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/olpc-ec.h b/include/linux/olpc-ec.h
index f7b6a7eda232..c4602364e909 100644
--- a/include/linux/olpc-ec.h
+++ b/include/linux/olpc-ec.h
@@ -41,7 +41,7 @@ struct olpc_ec_driver {
bool wakeup_available;
};
-#ifdef CONFIG_OLPC
+#ifdef CONFIG_OLPC_EC
extern void olpc_ec_driver_register(struct olpc_ec_driver *drv, void *arg);
@@ -69,6 +69,6 @@ static inline bool olpc_ec_wakeup_available(void)
return false;
}
-#endif /* CONFIG_OLPC */
+#endif /* CONFIG_OLPC_EC */
#endif /* _LINUX_OLPC_EC_H */