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>
This commit is contained in:

committed by
Andy Shevchenko

parent
8097548f3a
commit
0c3d931b3a
@@ -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 */
|
||||
|
Reference in New Issue
Block a user