Skip to content

Commit db9cc84

Browse files
lumagsre
authored andcommitted
power: supply: lenovo_yoga_c630_battery: add Lenovo C630 driver
On the Lenovo Yoga C630 WOS laptop the EC provides access to the adapter and battery status. Add the driver to read power supply status on the laptop. Reviewed-by: Ilpo Järvinen <[email protected]> Signed-off-by: Dmitry Baryshkov <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Sebastian Reichel <[email protected]>
1 parent 427eb78 commit db9cc84

File tree

3 files changed

+511
-0
lines changed

3 files changed

+511
-0
lines changed

drivers/power/supply/Kconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,15 @@ config BATTERY_LEGO_EV3
167167
help
168168
Say Y here to enable support for the LEGO MINDSTORMS EV3 battery.
169169

170+
config BATTERY_LENOVO_YOGA_C630
171+
tristate "Lenovo Yoga C630 battery"
172+
depends on EC_LENOVO_YOGA_C630
173+
help
174+
This driver enables battery support on the Lenovo Yoga C630 laptop.
175+
176+
To compile the driver as a module, choose M here: the module will be
177+
called lenovo_yoga_c630_battery.
178+
170179
config BATTERY_PMU
171180
tristate "Apple PMU battery"
172181
depends on PPC32 && ADB_PMU

drivers/power/supply/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ obj-$(CONFIG_BATTERY_DS2782) += ds2782_battery.o
3232
obj-$(CONFIG_BATTERY_GAUGE_LTC2941) += ltc2941-battery-gauge.o
3333
obj-$(CONFIG_BATTERY_GOLDFISH) += goldfish_battery.o
3434
obj-$(CONFIG_BATTERY_LEGO_EV3) += lego_ev3_battery.o
35+
obj-$(CONFIG_BATTERY_LENOVO_YOGA_C630) += lenovo_yoga_c630_battery.o
3536
obj-$(CONFIG_BATTERY_PMU) += pmu_battery.o
3637
obj-$(CONFIG_BATTERY_QCOM_BATTMGR) += qcom_battmgr.o
3738
obj-$(CONFIG_BATTERY_OLPC) += olpc_battery.o

0 commit comments

Comments
 (0)