Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1621452
| From | Sebastian Reichel <sre@kernel.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] power: supply: sysfs: parse string as enum when writing property |
| Date | 2017-04-11 18:20 +0200 |
| Message-ID | <tv6Gn-QX-31@gated-at.bofh.it> (permalink) |
| References | <tsgiS-2PU-19@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
[Multipart message — attachments visible in raw view] - view raw
Hi, On Mon, Apr 03, 2017 at 02:52:57PM -0500, David Lechner wrote: > 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> > > --- > drivers/power/supply/power_supply_sysfs.c | 124 ++++++++++++++++++++---------- > 1 file changed, 85 insertions(+), 39 deletions(-) drivers/power/supply/power_supply_sysfs.c: In function ‘power_supply_store_property’: drivers/power/supply/power_supply_sysfs.c:138:9: error: implicit declaration of function ‘sysfs_match_string’ [-Werror=implicit-function-declaration] -- Sebastian
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
Re: [PATCH] power: supply: sysfs: parse string as enum when writing property Sebastian Reichel <sre@kernel.org> - 2017-04-11 18:20 +0200
Re: [PATCH] power: supply: sysfs: parse string as enum when writing property David Lechner <david@lechnology.com> - 2017-04-11 18:40 +0200
Re: [PATCH] power: supply: sysfs: parse string as enum when writing property Sebastian Reichel <sre@kernel.org> - 2017-04-12 16:50 +0200
csiph-web