power: supply: Static data for Samsung batteries
authorLinus Walleij <linus.walleij@linaro.org>
Fri, 25 Feb 2022 23:28:00 +0000 (00:28 +0100)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Mon, 28 Feb 2022 10:34:32 +0000 (11:34 +0100)
commitffb983d315197a623acf23b41526372534395fd6
tree6897c0d82bf426b81f213a62cf5b69deec25baed
parentbc5d4a24eca3bc0c6ab5dd81026265a20cabcd48
power: supply: Static data for Samsung batteries

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>
drivers/power/supply/Kconfig
drivers/power/supply/Makefile
drivers/power/supply/power_supply_core.c
drivers/power/supply/samsung-sdi-battery.c [new file with mode: 0644]
drivers/power/supply/samsung-sdi-battery.h [new file with mode: 0644]