summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorAntoniu Miclaus <antoniu.miclaus@analog.com>2023-10-31 12:13:24 +0300
committerGuenter Roeck <linux@roeck-us.net>2023-11-14 16:32:47 +0300
commit58ebe7fb6eb2deed0fd05cf57911fea3f36124eb (patch)
tree2d2c6bf3f55810fc67da45e7c77669b859e2c2c1 /drivers
parentd9995cd96928fa72963293fa5ca87350fed16930 (diff)
downloadlinux-58ebe7fb6eb2deed0fd05cf57911fea3f36124eb.tar.xz
hwmon: max31827: include regulator header
Include `linux/regulator/consumer.h` since the driver is using `devm_regulator_get_enable` function. Signed-off-by: Antoniu Miclaus <antoniu.miclaus@analog.com> Link: https://lore.kernel.org/r/20231031091324.23991-1-antoniu.miclaus@analog.com Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/hwmon/max31827.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/hwmon/max31827.c b/drivers/hwmon/max31827.c
index fd1fed1a797c..a1ce65145669 100644
--- a/drivers/hwmon/max31827.c
+++ b/drivers/hwmon/max31827.c
@@ -12,6 +12,7 @@
#include <linux/i2c.h>
#include <linux/mutex.h>
#include <linux/regmap.h>
+#include <linux/regulator/consumer.h>
#define MAX31827_T_REG 0x0
#define MAX31827_CONFIGURATION_REG 0x2