mirror of
https://github.com/torvalds/linux.git
synced 2024-12-05 02:23:16 +00:00
c8aee3f41c
If we detect a Samsung SDI battery, we return a static struct power_supply_battery_info and avoid looking further. Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
14 lines
390 B
C
14 lines
390 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#if IS_ENABLED(CONFIG_BATTERY_SAMSUNG_SDI)
|
|
extern int samsung_sdi_battery_get_info(struct device *dev,
|
|
const char *compatible,
|
|
struct power_supply_battery_info **info);
|
|
#else
|
|
static inline int samsung_sdi_battery_get_info(struct device *dev,
|
|
const char *compatible,
|
|
struct power_supply_battery_info **info)
|
|
{
|
|
return -ENODEV;
|
|
}
|
|
#endif
|