mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
power: goldfish_battery: add devicetree bindings
Add device tree bindings to the Goldfish virtual platform battery drivers. Signed-off-by: Greg Hackmann <[email protected]> Signed-off-by: Jin Qian <[email protected]> Signed-off-by: Alan Cox <[email protected]> Signed-off-by: Sebastian Reichel <[email protected]>
This commit is contained in:
parent
5c0e09e03f
commit
65d687a7b7
2 changed files with 25 additions and 1 deletions
|
|
@ -227,11 +227,18 @@ static int goldfish_battery_remove(struct platform_device *pdev)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static const struct of_device_id goldfish_battery_of_match[] = {
|
||||
{ .compatible = "google,goldfish-battery", },
|
||||
{},
|
||||
};
|
||||
MODULE_DEVICE_TABLE(of, goldfish_battery_of_match);
|
||||
|
||||
static struct platform_driver goldfish_battery_device = {
|
||||
.probe = goldfish_battery_probe,
|
||||
.remove = goldfish_battery_remove,
|
||||
.driver = {
|
||||
.name = "goldfish-battery"
|
||||
.name = "goldfish-battery",
|
||||
.of_match_table = goldfish_battery_of_match,
|
||||
}
|
||||
};
|
||||
module_platform_driver(goldfish_battery_device);
|
||||
|
|
|
|||
Loading…
Reference in a new issue