Skip to contentSkip to conversation

regulator: max20411: Directly include bitfield.h

PATCH In review [email protected] 2 participants 2 messages Jan 26, 2023 – Jan 30, 2023 Voltage and current regulator framework

lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

PATCH 1/1 regulator: max20411: Directly include bitfield.h

From: Mark Brown <[email protected]>

The max20411 driver uses bitfield.h but does not directly include it, add an inclusion to avoid build errors in configurations which do not result in an implicit inclusion.

---
 drivers/regulator/max20411-regulator.c | 1 +
 1 file changed, 1 insertion(+)
drivers/regulator/max20411-regulator.c +1 -0
index 69f04cbe69f1..b4faad54c458 100644
@@ -4,6 +4,7 @@
  * Copyright (c) 2022, Linaro Ltd.
  */
 
+#include <linux/bitfield.h>
 #include <linux/gpio/consumer.h>
 #include <linux/i2c.h>
 #include <linux/module.h>
Signature · 1 line
2.34.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 7 lines · On Thu, Jan 26, 2023 at 10:54:03PM +0000, [email protected] wrote:

From: Mark Brown <[email protected]>

The max20411 driver uses bitfield.h but does not directly include it, add an inclusion to avoid build errors in configurations which do not result in an implicit inclusion.

Quoted 19 lines
---
 drivers/regulator/max20411-regulator.c | 1 +
 1 file changed, 1 insertion(+)
drivers/regulator/max20411-regulator.c +1 -0
index 69f04cbe69f1..b4faad54c458 100644
@@ -4,6 +4,7 @@
  * Copyright (c) 2022, Linaro Ltd.
  */
 
+#include <linux/bitfield.h>
 #include <linux/gpio/consumer.h>
 #include <linux/i2c.h>
 #include <linux/module.h>
Signature · 1 line
2.34.1