summaryrefslogtreecommitdiffstats
path: root/drivers/platform/olpc/olpc-xo175-ec.c
Commit message (Collapse)AuthorAgeFilesLines
* Platform: OLPC: add SPI MODULE_DEVICE_TABLELubomir Rintel2019-07-251-0/+6
| | | | | | | | | The SPI bus creates a device with the modalias of "xo1.75-ec". This fixes XO-1.75 EC driver autoloading Fixes: 0c3d931b3ab9 ("Platform: OLPC: Add XO-1.75 EC driver") Signed-off-by: Lubomir Rintel <lkundrak@v3.sk> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
* Platform: OLPC: Fix olpc_xo175_ec_cmd() return valueLubomir Rintel2019-06-121-0/+1
| | | | | | | | | Reset the ret variable to make sure it olpc_xo175_ec_cmd() ends up returning zero on success. Fixes: 0c3d931b3ab9 ("Platform: OLPC: Add XO-1.75 EC driver") Signed-off-by: Lubomir Rintel <lkundrak@v3.sk> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
* Platform: OLPC: Add XO-1.75 EC driverLubomir Rintel2019-05-201-0/+752
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>
OpenPOWER on IntegriCloud