mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 20:07:46 +09:00
Merge e3bb2f4f96 ("Merge tag 'regulator-fix-v5.12-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator") into android-mainline
Steps on the way to 5.12-rc7 Signed-off-by: Greg Kroah-Hartman <gregkh@google.com> Change-Id: I660b6221f2c87cad8487a2fa14db52fc7784f05f
This commit is contained in:
@@ -125,7 +125,7 @@ static const struct regulator_ops vid_ops = {
|
||||
|
||||
static const struct regulator_desc regulators[] = {
|
||||
BD9571MWV_REG("VD09", "vd09", VD09, avs_ops, 0, 0x7f,
|
||||
0x80, 600000, 10000, 0x3c),
|
||||
0x6f, 600000, 10000, 0x3c),
|
||||
BD9571MWV_REG("VD18", "vd18", VD18, vid_ops, BD9571MWV_VD18_VID, 0xf,
|
||||
16, 1625000, 25000, 0),
|
||||
BD9571MWV_REG("VD25", "vd25", VD25, vid_ops, BD9571MWV_VD25_VID, 0xf,
|
||||
@@ -134,7 +134,7 @@ static const struct regulator_desc regulators[] = {
|
||||
11, 2800000, 100000, 0),
|
||||
BD9571MWV_REG("DVFS", "dvfs", DVFS, reg_ops,
|
||||
BD9571MWV_DVFS_MONIVDAC, 0x7f,
|
||||
0x80, 600000, 10000, 0x3c),
|
||||
0x6f, 600000, 10000, 0x3c),
|
||||
};
|
||||
|
||||
#ifdef CONFIG_PM_SLEEP
|
||||
@@ -174,7 +174,7 @@ static ssize_t backup_mode_show(struct device *dev,
|
||||
{
|
||||
struct bd9571mwv_reg *bdreg = dev_get_drvdata(dev);
|
||||
|
||||
return sprintf(buf, "%s\n", bdreg->bkup_mode_enabled ? "on" : "off");
|
||||
return sysfs_emit(buf, "%s\n", bdreg->bkup_mode_enabled ? "on" : "off");
|
||||
}
|
||||
|
||||
static ssize_t backup_mode_store(struct device *dev,
|
||||
@@ -301,7 +301,7 @@ static int bd9571mwv_regulator_probe(struct platform_device *pdev)
|
||||
&config);
|
||||
if (IS_ERR(rdev)) {
|
||||
dev_err(&pdev->dev, "failed to register %s regulator\n",
|
||||
pdev->name);
|
||||
regulators[i].name);
|
||||
return PTR_ERR(rdev);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user