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

power: supply: max77650: add of_match table

We need the of_match table if we want to use the compatible string in
the pmic's child node and get the charger driver loaded automatically.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>

authored by

Bartosz Golaszewski and committed by
Sebastian Reichel
5de17801 bc90705b

+7
+7
drivers/power/supply/max77650-charger.c
··· 354 354 return max77650_charger_disable(chg); 355 355 } 356 356 357 + static const struct of_device_id max77650_charger_of_match[] = { 358 + { .compatible = "maxim,max77650-charger" }, 359 + { } 360 + }; 361 + MODULE_DEVICE_TABLE(of, max77650_charger_of_match); 362 + 357 363 static struct platform_driver max77650_charger_driver = { 358 364 .driver = { 359 365 .name = "max77650-charger", 366 + .of_match_table = max77650_charger_of_match, 360 367 }, 361 368 .probe = max77650_charger_probe, 362 369 .remove = max77650_charger_remove,