* [PATCH] regulator: tps65132: Add of_match table
@ 2024-03-25 18:05 André Apitzsch via B4 Relay
2024-03-26 12:39 ` Mark Brown
0 siblings, 1 reply; 2+ messages in thread
From: André Apitzsch via B4 Relay @ 2024-03-25 18:05 UTC (permalink / raw
To: Liam Girdwood, Mark Brown
Cc: linux-kernel, ~postmarketos/upstreaming, André Apitzsch
From: André Apitzsch <git@apitzsch.eu>
Add of_match table for "ti,tps65132" compatible string.
This fixes automatic driver loading when using device-tree,
and if built as a module like major linux distributions do.
Signed-off-by: André Apitzsch <git@apitzsch.eu>
---
drivers/regulator/tps65132-regulator.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/drivers/regulator/tps65132-regulator.c b/drivers/regulator/tps65132-regulator.c
index a06f5f2d7932..9c2f0dd42613 100644
--- a/drivers/regulator/tps65132-regulator.c
+++ b/drivers/regulator/tps65132-regulator.c
@@ -267,10 +267,17 @@ static const struct i2c_device_id tps65132_id[] = {
};
MODULE_DEVICE_TABLE(i2c, tps65132_id);
+static const struct of_device_id __maybe_unused tps65132_of_match[] = {
+ { .compatible = "ti,tps65132" },
+ {},
+};
+MODULE_DEVICE_TABLE(of, tps65132_of_match);
+
static struct i2c_driver tps65132_i2c_driver = {
.driver = {
.name = "tps65132",
.probe_type = PROBE_PREFER_ASYNCHRONOUS,
+ .of_match_table = of_match_ptr(tps65132_of_match),
},
.probe = tps65132_probe,
.id_table = tps65132_id,
---
base-commit: 1fdad13606e104ff103ca19d2d660830cb36d43e
change-id: 20240324-of_tps65132-68397a5a9c72
Best regards,
--
André Apitzsch <git@apitzsch.eu>
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] regulator: tps65132: Add of_match table
2024-03-25 18:05 [PATCH] regulator: tps65132: Add of_match table André Apitzsch via B4 Relay
@ 2024-03-26 12:39 ` Mark Brown
0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2024-03-26 12:39 UTC (permalink / raw
To: Liam Girdwood, André Apitzsch
Cc: linux-kernel, ~postmarketos/upstreaming
On Mon, 25 Mar 2024 19:05:09 +0100, André Apitzsch wrote:
> Add of_match table for "ti,tps65132" compatible string.
> This fixes automatic driver loading when using device-tree,
> and if built as a module like major linux distributions do.
>
>
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git for-next
Thanks!
[1/1] regulator: tps65132: Add of_match table
commit: a469158eaf8f4b10263b417856d923dfa38ae96d
All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying
to this mail.
Thanks,
Mark
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-03-26 12:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-25 18:05 [PATCH] regulator: tps65132: Add of_match table André Apitzsch via B4 Relay
2024-03-26 12:39 ` Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).