diff options
author | Christian Kujau <lists@nerdbynature.de> | 2008-05-02 16:41:56 -0400 |
---|---|---|
committer | Anton Vorontsov <cbouatmailru@gmail.com> | 2008-05-02 19:40:42 -0400 |
commit | 35bf559145b6332f5465c15a4e5cd7a363985382 (patch) | |
tree | bab0feb9883337ea9eb054ca69a18673dbfea191 /drivers/power | |
parent | f6b6b180b4614e57af217045f71caedd94821fc7 (diff) |
PMU battery: filenames in sysfs with spaces
By changing drivers/power/pmu_battery.c I now have '_' instead of
' ' (spaces) in /sys:
/sys/devices/platform/pmu-battery.0/power_supply/PMU_battery_0
/sys/class/power_supply/PMU_battery_0
I'm still not sure if some userspace tool out there uses the old paths and
will break now.
Signed-off-by: Christian Kujau <lists@nerdbynature.de>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
Diffstat (limited to 'drivers/power')
-rw-r--r-- | drivers/power/pmu_battery.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/pmu_battery.c b/drivers/power/pmu_battery.c index 60a8cf3a043..9346a862f1f 100644 --- a/drivers/power/pmu_battery.c +++ b/drivers/power/pmu_battery.c | |||
@@ -159,7 +159,7 @@ static int __init pmu_bat_init(void) | |||
159 | if (!pbat) | 159 | if (!pbat) |
160 | break; | 160 | break; |
161 | 161 | ||
162 | sprintf(pbat->name, "PMU battery %d", i); | 162 | sprintf(pbat->name, "PMU_battery_%d", i); |
163 | pbat->bat.name = pbat->name; | 163 | pbat->bat.name = pbat->name; |
164 | pbat->bat.properties = pmu_bat_props; | 164 | pbat->bat.properties = pmu_bat_props; |
165 | pbat->bat.num_properties = ARRAY_SIZE(pmu_bat_props); | 165 | pbat->bat.num_properties = ARRAY_SIZE(pmu_bat_props); |