Skip to content
Commit 5f487cd3 authored by Anton Vorontsov's avatar Anton Vorontsov
Browse files

power_supply: Use attribute groups



This fixes a race between power supply device and initial
attributes creation, plus makes it possible to implement
writable properties.

[Daniel Mack - removed superflous return statement
 and dropped .mode attribute from POWER_SUPPLY_ATTR]

Suggested-by: default avatarGreg KH <gregkh@suse.de>
Suggested-by: default avatarKay Sievers <kay.sievers@vrfy.org>
Signed-off-by: default avatarAnton Vorontsov <cbouatmailru@gmail.com>
Tested-by: default avatarDaniel Mack <daniel@caiaq.de>
parent a1e50fd4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment