Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

regulator: tps65132: Add of_match table

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>

authored by

André Apitzsch and committed by
Mark Brown
a469158e 4cece764

+7
+7
drivers/regulator/tps65132-regulator.c
··· 267 267 }; 268 268 MODULE_DEVICE_TABLE(i2c, tps65132_id); 269 269 270 + static const struct of_device_id __maybe_unused tps65132_of_match[] = { 271 + { .compatible = "ti,tps65132" }, 272 + {}, 273 + }; 274 + MODULE_DEVICE_TABLE(of, tps65132_of_match); 275 + 270 276 static struct i2c_driver tps65132_i2c_driver = { 271 277 .driver = { 272 278 .name = "tps65132", 273 279 .probe_type = PROBE_PREFER_ASYNCHRONOUS, 280 + .of_match_table = of_match_ptr(tps65132_of_match), 274 281 }, 275 282 .probe = tps65132_probe, 276 283 .id_table = tps65132_id,