diff mbox series

[2/2] regulator: mt6370: Use the correct header for platform_device_id

Message ID 1656466861-7737-2-git-send-email-u0084500@gmail.com (mailing list archive)
State New, archived
Headers show
Series [1/2] regulator: mt6370: Use 'fwnode_gpiod_get_index' to fix gpio parsing | expand

Commit Message

ChiYuan Huang June 29, 2022, 1:41 a.m. UTC
From: ChiYuan Huang <cy_huang@richtek.com>

'platform_device_id' struct is defined in 'mod_devicetable.h'.
Even 'of.h' also includes this header usage. The 'of.h' cannot be removed
due to 'of_match_ptr' function.

Signed-off-by: ChiYuan Huang <cy_huang@richtek.com>
---
 drivers/regulator/mt6370-regulator.c | 1 +
 1 file changed, 1 insertion(+)

Comments

AngeloGioacchino Del Regno June 29, 2022, 8:23 a.m. UTC | #1
Il 29/06/22 03:41, cy_huang ha scritto:
> From: ChiYuan Huang <cy_huang@richtek.com>
> 
> 'platform_device_id' struct is defined in 'mod_devicetable.h'.
> Even 'of.h' also includes this header usage. The 'of.h' cannot be removed
> due to 'of_match_ptr' function.
> 
> Signed-off-by: ChiYuan Huang <cy_huang@richtek.com>

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
diff mbox series

Patch

diff --git a/drivers/regulator/mt6370-regulator.c b/drivers/regulator/mt6370-regulator.c
index 949b2c7..e73f5a4 100644
--- a/drivers/regulator/mt6370-regulator.c
+++ b/drivers/regulator/mt6370-regulator.c
@@ -4,6 +4,7 @@ 
 #include <linux/gpio/consumer.h>
 #include <linux/interrupt.h>
 #include <linux/kernel.h>
+#include <linux/mod_devicetable.h>
 #include <linux/module.h>
 #include <linux/of.h>
 #include <linux/platform_device.h>