Skip to content

Commit 6dbd3e0

Browse files
amiclausgroeck
authored andcommitted
hwmon: (max31827) handle vref regulator
Add missing implementation for the max31827 supply regulator. This is a hardware required property that is not handled. Signed-off-by: Antoniu Miclaus <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Guenter Roeck <[email protected]>
1 parent 7b64906 commit 6dbd3e0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/hwmon/max31827.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,10 @@ static int max31827_probe(struct i2c_client *client)
412412
return dev_err_probe(dev, PTR_ERR(st->regmap),
413413
"Failed to allocate regmap.\n");
414414

415+
err = devm_regulator_get_enable(dev, "vref");
416+
if (err)
417+
return dev_err_probe(dev, err, "failed to enable regulator\n");
418+
415419
err = max31827_init_client(st);
416420
if (err)
417421
return err;

0 commit comments

Comments
 (0)