[PATCH] hwmon: max31827: include regulator header

Antoniu Miclaus posted 1 patch 2 years, 1 month ago
drivers/hwmon/max31827.c | 1 +
1 file changed, 1 insertion(+)
[PATCH] hwmon: max31827: include regulator header
Posted by Antoniu Miclaus 2 years, 1 month ago
Include `linux/regulator/consumer.h` since the driver is using
`devm_regulator_get_enable` function.

Signed-off-by: Antoniu Miclaus <antoniu.miclaus@analog.com>
---
 drivers/hwmon/max31827.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/hwmon/max31827.c b/drivers/hwmon/max31827.c
index 0508b020a408..b29f25321dc4 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
-- 
2.42.0
Re: [PATCH] hwmon: max31827: include regulator header
Posted by Guenter Roeck 2 years, 1 month ago
On Tue, Oct 31, 2023 at 11:13:24AM +0200, Antoniu Miclaus wrote:
> Include `linux/regulator/consumer.h` since the driver is using
> `devm_regulator_get_enable` function.
> 
> Signed-off-by: Antoniu Miclaus <antoniu.miclaus@analog.com>

Applied.

Thanks,
Guenter

> ---
>  drivers/hwmon/max31827.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/hwmon/max31827.c b/drivers/hwmon/max31827.c
> index 0508b020a408..b29f25321dc4 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