mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 20:07:46 +09:00
power: rk818-battery/charger: Support building as module
Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: I39bbf5d0d4ea9c296a39267500cb0d46acd5e386
This commit is contained in:
@@ -680,7 +680,7 @@ config CHARGER_RK817
|
||||
This driver can give support for Rk817 Charger Interface.
|
||||
|
||||
config BATTERY_RK818
|
||||
bool "RK818 Battery driver"
|
||||
tristate "RK818 Battery driver"
|
||||
depends on MFD_RK808
|
||||
default n
|
||||
help
|
||||
@@ -688,7 +688,7 @@ config BATTERY_RK818
|
||||
This driver can give support for Rk818 Battery Charge Interface.
|
||||
|
||||
config CHARGER_RK818
|
||||
bool "RK818 Charger driver"
|
||||
tristate "RK818 Charger driver"
|
||||
depends on MFD_RK808
|
||||
default n
|
||||
help
|
||||
|
||||
@@ -2758,11 +2758,13 @@ int rk818_bat_temp_notifier_register(struct notifier_block *nb)
|
||||
{
|
||||
return blocking_notifier_chain_register(&rk818_bat_notifier_chain, nb);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(rk818_bat_temp_notifier_register);
|
||||
|
||||
int rk818_bat_temp_notifier_unregister(struct notifier_block *nb)
|
||||
{
|
||||
return blocking_notifier_chain_unregister(&rk818_bat_notifier_chain, nb);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(rk818_bat_temp_notifier_unregister);
|
||||
|
||||
static void rk818_bat_temp_notifier_callback(int temp)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user