diff options
author | Sebastian Reichel <sebastian.reichel@collabora.com> | 2018-09-27 16:46:03 +0300 |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2018-12-13 02:15:06 +0300 |
commit | cef8fe6a382cb556b590269e9d1dfc0241014903 (patch) | |
tree | 0f96102a6fe960af19ee8b5d0b15b44ab23e1d56 /include/linux/power_supply.h | |
parent | 4a040e7c72e6bd2ffc023ecca31e336aec9dbb87 (diff) | |
download | linux-cef8fe6a382cb556b590269e9d1dfc0241014903.tar.xz |
power: supply: core: add support for custom sysfs attributes
Add functionality to setup device specific sysfs attributes
in a race condition free manner
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'include/linux/power_supply.h')
-rw-r--r-- | include/linux/power_supply.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/power_supply.h b/include/linux/power_supply.h index 84fe93f674a0..57b2ab82b951 100644 --- a/include/linux/power_supply.h +++ b/include/linux/power_supply.h @@ -204,6 +204,9 @@ struct power_supply_config { /* Driver private data */ void *drv_data; + /* Device specific sysfs attributes */ + const struct attribute_group **attr_grp; + char **supplied_to; size_t num_supplicants; }; |