|
@@ -1053,8 +1053,9 @@ static struct regulator *create_regulator(struct regulator_dev *rdev,
|
|
|
|
|
|
if (dev) {
|
|
|
/* create a 'requested_microamps_name' sysfs entry */
|
|
|
- size = scnprintf(buf, REG_STR_SIZE, "microamps_requested_%s",
|
|
|
- supply_name);
|
|
|
+ size = scnprintf(buf, REG_STR_SIZE,
|
|
|
+ "microamps_requested_%s-%s",
|
|
|
+ dev_name(dev), supply_name);
|
|
|
if (size >= REG_STR_SIZE)
|
|
|
goto overflow_err;
|
|
|
|