summaryrefslogtreecommitdiffstats
path: root/drivers/regulator
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2023-06-12 14:59:08 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2023-06-13 09:13:04 +0200
commit2baa16f2740b4546b1ec16390ec118ecba6be09d (patch)
tree78ff5703fb6d24aa08d6a5d898ed11ebf85d4396 /drivers/regulator
parentcfcd097c843194a6b88b03948afca3c4c547eca6 (diff)
downloadbarebox-2baa16f2740b4546b1ec16390ec118ecba6be09d.tar.gz
barebox-2baa16f2740b4546b1ec16390ec118ecba6be09d.tar.xz
treewide: add MODULE_DEVICE_TABLE markers
Syncing device trees with Linux upstream can lead to breakage, when the device trees are switched to newer bindings, which are not yet supported in barebox. To make it easier to spot such issues, we want to start applying some heuristics to flag possibly problematic DT changes. One step towards being able to do that is to know what nodes barebox actually consumes. Most of the nodes have a compatible entry, which is matched by an array of of_device_id, so let's have MODULE_DEVICE_TABLE point at it for future extraction. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20230612125908.1087340-1-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/regulator')
-rw-r--r--drivers/regulator/anatop-regulator.c1
-rw-r--r--drivers/regulator/fixed.c1
-rw-r--r--drivers/regulator/pfuze.c1
-rw-r--r--drivers/regulator/stm32-pwr.c1
-rw-r--r--drivers/regulator/stm32-vrefbuf.c1
-rw-r--r--drivers/regulator/stpmic1_regulator.c1
6 files changed, 6 insertions, 0 deletions
diff --git a/drivers/regulator/anatop-regulator.c b/drivers/regulator/anatop-regulator.c
index 0bc15d193e..e78b503d4f 100644
--- a/drivers/regulator/anatop-regulator.c
+++ b/drivers/regulator/anatop-regulator.c
@@ -138,6 +138,7 @@ static const struct of_device_id of_anatop_regulator_match_tbl[] = {
{ .compatible = "fsl,anatop-regulator", },
{ /* end */ }
};
+MODULE_DEVICE_TABLE(of, of_anatop_regulator_match_tbl);
static struct driver anatop_regulator_driver = {
.name = "anatop_regulator",
diff --git a/drivers/regulator/fixed.c b/drivers/regulator/fixed.c
index 7f9bb820f7..10428cac7a 100644
--- a/drivers/regulator/fixed.c
+++ b/drivers/regulator/fixed.c
@@ -90,6 +90,7 @@ static struct of_device_id regulator_fixed_of_ids[] = {
{ .compatible = "regulator-fixed", },
{ }
};
+MODULE_DEVICE_TABLE(of, regulator_fixed_of_ids);
static struct driver regulator_fixed_driver = {
.name = "regulator-fixed",
diff --git a/drivers/regulator/pfuze.c b/drivers/regulator/pfuze.c
index 8945ee7c15..8426d6f25b 100644
--- a/drivers/regulator/pfuze.c
+++ b/drivers/regulator/pfuze.c
@@ -186,6 +186,7 @@ static __maybe_unused struct of_device_id pfuze_dt_ids[] = {
{ .compatible = "fsl,pfuze3001" },
{ }
};
+MODULE_DEVICE_TABLE(of, pfuze_dt_ids);
static struct driver pfuze_i2c_driver = {
.name = "pfuze-i2c",
diff --git a/drivers/regulator/stm32-pwr.c b/drivers/regulator/stm32-pwr.c
index a7e8fec0fa..ca03529b7f 100644
--- a/drivers/regulator/stm32-pwr.c
+++ b/drivers/regulator/stm32-pwr.c
@@ -206,6 +206,7 @@ static const struct of_device_id stm32_pwr_of_match[] = {
{ .compatible = "st,stm32mp1,pwr-reg", },
{ /* sentinel */ },
};
+MODULE_DEVICE_TABLE(of, stm32_pwr_of_match);
static struct driver stm32_pwr_driver = {
.probe = stm32_pwr_regulator_probe,
diff --git a/drivers/regulator/stm32-vrefbuf.c b/drivers/regulator/stm32-vrefbuf.c
index 34b48bb2af..18cf53e735 100644
--- a/drivers/regulator/stm32-vrefbuf.c
+++ b/drivers/regulator/stm32-vrefbuf.c
@@ -203,6 +203,7 @@ static const struct of_device_id __maybe_unused stm32_vrefbuf_of_match[] = {
{ .compatible = "st,stm32-vrefbuf", },
{},
};
+MODULE_DEVICE_TABLE(of, stm32_vrefbuf_of_match);
static struct driver stm32_vrefbuf_driver = {
.probe = stm32_vrefbuf_probe,
diff --git a/drivers/regulator/stpmic1_regulator.c b/drivers/regulator/stpmic1_regulator.c
index c39e01f6da..c8b56e3a1a 100644
--- a/drivers/regulator/stpmic1_regulator.c
+++ b/drivers/regulator/stpmic1_regulator.c
@@ -431,6 +431,7 @@ static __maybe_unused const struct of_device_id stpmic1_regulator_of_match[] = {
{ .compatible = "st,stpmic1-regulators" },
{ /* sentinel */ },
};
+MODULE_DEVICE_TABLE(of, stpmic1_regulator_of_match);
static struct driver stpmic1_regulator_driver = {
.name = "stpmic1-regulator",