]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
power_supply: Fix regression for 'type' property
authorDaniel Mack <daniel@caiaq.de>
Tue, 25 May 2010 00:39:45 +0000 (02:39 +0200)
committerAnton Vorontsov <cbouatmailru@gmail.com>
Tue, 25 May 2010 09:52:58 +0000 (13:52 +0400)
commitbbabb158f0e9d41174ae5c2183a8e4f981daf6ce
tree257637b9c8bad8a95e32d3a857bb0268ae9822b2
parent24af3202459d9a25643009b1ab8ab5ff04d94b49
power_supply: Fix regression for 'type' property

Commit 5f487cd34f4337f9bc27ca19da72a39d1b0a0ab4 (power_supply: Use
attribute groups) causes a regression the power supply core does not
export the 'type' attribute anymore.

POWER_SUPPLY_PROP_TYPE is handled by the power supply core without the
low-level driver, so power_supply_attr_is_visible() must always return
the entry as readable.

Reported-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Daniel Mack <daniel@caiaq.de>
Tested-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
drivers/power/power_supply_sysfs.c