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 <sre@kernel.org>
Fri, 4 Mar 2022 21:20:18 +0000 (22:20 +0100)
commitc8aee3f41cb84a9ac3b6b5ba2e92cda6cf50d0a0
tree9fa6f2f4855f97d6942e385e690da365ef138bcd
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]