47 lines
1.6 KiB
Diff
47 lines
1.6 KiB
Diff
|
From: Ondrej Jirman <megous@megous.com>
|
||
|
Date: Sun, 7 Nov 2021 19:30:07 +0100
|
||
|
Subject: [PATCH 13/36] power: supply: rk818-battery: Use a more propper
|
||
|
compatible string
|
||
|
|
||
|
Prefix with vendor name.
|
||
|
|
||
|
Signed-off-by: Ondrej Jirman <megous@megous.com>
|
||
|
---
|
||
|
drivers/mfd/rk808.c | 2 +-
|
||
|
drivers/power/supply/rk818_battery.c | 4 ++--
|
||
|
2 files changed, 3 insertions(+), 3 deletions(-)
|
||
|
|
||
|
diff --git a/drivers/mfd/rk808.c b/drivers/mfd/rk808.c
|
||
|
index 7d1f000..a99fec0 100644
|
||
|
--- a/drivers/mfd/rk808.c
|
||
|
+++ b/drivers/mfd/rk808.c
|
||
|
@@ -205,7 +205,7 @@ static const struct mfd_cell rk817s[] = {
|
||
|
static const struct mfd_cell rk818s[] = {
|
||
|
{ .name = "rk808-clkout", },
|
||
|
{ .name = "rk808-regulator", },
|
||
|
- { .name = "rk818-battery", .of_compatible = "rk818-battery", },
|
||
|
+ { .name = "rk818-battery", .of_compatible = "rockchip,rk818-battery", },
|
||
|
{
|
||
|
.name = "rk808-rtc",
|
||
|
.num_resources = ARRAY_SIZE(rtc_resources),
|
||
|
diff --git a/drivers/power/supply/rk818_battery.c b/drivers/power/supply/rk818_battery.c
|
||
|
index f09f456..665f043 100644
|
||
|
--- a/drivers/power/supply/rk818_battery.c
|
||
|
+++ b/drivers/power/supply/rk818_battery.c
|
||
|
@@ -3339,7 +3339,7 @@ static int rk818_bat_parse_dt(struct rk818_battery *di)
|
||
|
#endif
|
||
|
|
||
|
static const struct of_device_id rk818_battery_of_match[] = {
|
||
|
- {.compatible = "rk818-battery",},
|
||
|
+ { .compatible = "rockchip,rk818-battery", },
|
||
|
{ },
|
||
|
};
|
||
|
|
||
|
@@ -3565,4 +3565,4 @@ module_exit(battery_exit);
|
||
|
|
||
|
MODULE_LICENSE("GPL");
|
||
|
MODULE_ALIAS("platform:rk818-battery");
|
||
|
-MODULE_AUTHOR("chenjh<chenjh@rock-chips.com>");
|
||
|
\ No newline at end of file
|
||
|
+MODULE_AUTHOR("chenjh<chenjh@rock-chips.com>");
|