mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-01 14:44:12 +00:00
regulator: tps65132: Add of_match table
[ Upstream commit a469158eaf
]
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>
Link: https://msgid.link/r/20240325-of_tps65132-v1-1-86a5f7ef4ede@apitzsch.eu
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
056f7e8ffa
commit
476444b6a7
1 changed files with 7 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue