Skip to content

Commit

Permalink
PMU battery: filenames in sysfs with spaces
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: David Woodhouse <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Anton Vorontsov <[email protected]>
  • Loading branch information
ckujau authored and enomsg committed May 2, 2008
1 parent f6b6b18 commit 35bf559
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/power/pmu_battery.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 35bf559

Please sign in to comment.