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:
Joseph Chen
2020-08-05 11:37:40 +08:00
committed by Tao Huang
parent 2213ba67cc
commit 669923d002
2 changed files with 4 additions and 2 deletions

View File

@@ -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

View File

@@ -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)
{