power: supply: Provide stubs for charge_behaviour helpers
authorThomas Weißschuh <linux@weissschuh.net>
Sat, 8 Jan 2022 15:31:58 +0000 (16:31 +0100)
committerHans de Goede <hdegoede@redhat.com>
Sat, 8 Jan 2022 15:56:01 +0000 (16:56 +0100)
commit3367d1bd738c01b2737eaab7d922bfe5f1a41f38
treeaf61a90a39adb3232a722d231e93991ec22834ea
parent02fb09459435add44bb00191ce9b040c6b4f3aae
power: supply: Provide stubs for charge_behaviour helpers

When CONFIG_SYSFS is not enabled provide stubs for the helper functions
to not break their callers.

Fixes: 539b9c94ac83 ("power: supply: add helpers for charge_behaviour sysfs")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Link: https://lore.kernel.org/r/20220108153158.189489-1-linux@weissschuh.net
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
include/linux/power_supply.h