Commit 6dbd3e04 authored by Antoniu Miclaus's avatar Antoniu Miclaus Committed by Guenter Roeck

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: default avatarAntoniu Miclaus <antoniu.miclaus@analog.com>
Link: https://lore.kernel.org/r/20230925122929.10610-1-antoniu.miclaus@analog.comSigned-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent 7b64906c
......@@ -412,6 +412,10 @@ static int max31827_probe(struct i2c_client *client)
return dev_err_probe(dev, PTR_ERR(st->regmap),
"Failed to allocate regmap.\n");
err = devm_regulator_get_enable(dev, "vref");
if (err)
return dev_err_probe(dev, err, "failed to enable regulator\n");
err = max31827_init_client(st);
if (err)
return err;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment