linux-hardened/drivers/power
David Lechner 105df60f20 power: supply: sysfs: parse string as enum when writing property
This fixes the TODO to parse strings and convert them to enum values
when writing to a power_supply class property sysfs attribute.

There is at least one driver that has a writable enum property that
previously could only be written as an integer, so a fallback to writing
enums as integers instead of strings is provided so we don't break existing
userspace programs.

Signed-off-by: David Lechner <david@lechnology.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
2017-06-08 13:05:27 +02:00
..
avs PM / AVS: rockchip-io: add io selectors and supplies for rk3328 2017-03-12 23:09:10 +01:00
reset power: reset: Add a driver for the Gemini poweroff 2017-04-14 01:41:33 +02:00
supply power: supply: sysfs: parse string as enum when writing property 2017-06-08 13:05:27 +02:00
Kconfig power: move power supply drivers to power/supply 2016-08-11 01:11:03 +02:00
Makefile power: move power supply drivers to power/supply 2016-08-11 01:11:03 +02:00