Skip to content

Commit

Permalink
hwmon: max31827: include regulator header
Browse files Browse the repository at this point in the history
Include `linux/regulator/consumer.h` since the driver is using
`devm_regulator_get_enable` function.

Link: https://lore.kernel.org/all/[email protected]/
Signed-off-by: Antoniu Miclaus <[email protected]>
  • Loading branch information
amiclaus authored and nunojsa committed Nov 3, 2023
1 parent 208ba5d commit 16b5c2e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/hwmon/max31827.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 16b5c2e

Please sign in to comment.