51 lines
1.7 KiB
Diff
51 lines
1.7 KiB
Diff
From 2b57b630f96a3e87904e9ba9dce155cb83297403 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Ond=C5=99ej=20Jirman?= <megi@xff.cz>
|
|
Date: Sun, 7 Nov 2021 19:30:07 +0100
|
|
Subject: [PATCH 331/469] power: supply: rk818-battery: Use a more propper
|
|
compatible string
|
|
|
|
Prefix with vendor name.
|
|
|
|
Signed-off-by: Ondrej Jirman <megi@xff.cz>
|
|
---
|
|
drivers/mfd/rk8xx-core.c | 2 +-
|
|
drivers/power/supply/rk818_battery.c | 4 ++--
|
|
2 files changed, 3 insertions(+), 3 deletions(-)
|
|
|
|
diff --git a/drivers/mfd/rk8xx-core.c b/drivers/mfd/rk8xx-core.c
|
|
index 3634ce162668..052042d4d004 100644
|
|
--- a/drivers/mfd/rk8xx-core.c
|
|
+++ b/drivers/mfd/rk8xx-core.c
|
|
@@ -119,7 +119,7 @@ static const struct mfd_cell rk818s[] = {
|
|
{ .name = "rk808-clkout", .id = PLATFORM_DEVID_NONE, },
|
|
{ .name = "rk808-regulator", .id = PLATFORM_DEVID_NONE, },
|
|
{ .name = "rk808-clkout", },
|
|
- { .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 f09f45605a8b..665f043377c6 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>");
|
|
--
|
|
2.34.1
|
|
|