regulator: mt6370: Use the correct header for platform_device_id
authorChiYuan Huang <cy_huang@richtek.com>
Wed, 29 Jun 2022 01:41:01 +0000 (09:41 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 29 Jun 2022 15:31:42 +0000 (16:31 +0100)
'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>
Link: https://lore.kernel.org/r/1656466861-7737-2-git-send-email-u0084500@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/mt6370-regulator.c

index 949b2c7..e73f5a4 100644 (file)
@@ -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>