From: Christian Kujau Date: Fri, 2 May 2008 20:41:56 +0000 (-0700) Subject: PMU battery: filenames in sysfs with spaces X-Git-Tag: v2.6.26-rc1~1^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=35bf559145b6332f5465c15a4e5cd7a363985382;p=platform%2Fupstream%2Fkernel-adaptation-pc.git 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 Signed-off-by: David Woodhouse Signed-off-by: Andrew Morton Signed-off-by: Anton Vorontsov --- diff --git a/drivers/power/pmu_battery.c b/drivers/power/pmu_battery.c index 60a8cf3..9346a86 100644 --- a/drivers/power/pmu_battery.c +++ b/drivers/power/pmu_battery.c @@ -159,7 +159,7 @@ static int __init pmu_bat_init(void) if (!pbat) break; - sprintf(pbat->name, "PMU battery %d", i); + sprintf(pbat->name, "PMU_battery_%d", i); pbat->bat.name = pbat->name; pbat->bat.properties = pmu_bat_props; pbat->bat.num_properties = ARRAY_SIZE(pmu_bat_props);