drivers: hwmon: max31827: handle vref regulator
PATCH v4 1/1 drivers: 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]>
---
changes in v4:
- remove "vref" from the dev_err_probe string.
drivers/hwmon/max31827.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/hwmon/max31827.c +4 -0
@@ -427,6 +427,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;
Signature · 1 line
2.42.0
Quoted 5 lines · Antoniu Miclaus
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]>---
Applied.
Thanks,
Guenter