xref: /linux/drivers/power/supply/samsung-sdi-battery.h (revision e7d759f31ca295d589f7420719c311870bb3166f)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #if IS_ENABLED(CONFIG_BATTERY_SAMSUNG_SDI)
3 extern int samsung_sdi_battery_get_info(struct device *dev,
4 				const char *compatible,
5 				struct power_supply_battery_info **info);
6 #else
7 static inline int samsung_sdi_battery_get_info(struct device *dev,
8 				const char *compatible,
9 				struct power_supply_battery_info **info)
10 {
11 	return -ENODEV;
12 }
13 #endif
14