* pmdomain: rockchip: Use str_on_off() helper in rockchip_do_pmu_set_power_domain()
@ 2025-05-29 2:16 shao.mingyin
2025-05-29 6:41 ` Krzysztof Kozlowski
0 siblings, 1 reply; 2+ messages in thread
From: shao.mingyin @ 2025-05-29 2:16 UTC (permalink / raw)
To: ulf.hansson
Cc: heiko, sebastian.reichel, detlev.casanova, krzysztof.kozlowski,
finley.xiao, shawn.lin, pgwipeout, linux-pm, linux-arm-kernel,
linux-rockchip, linux-kernel, yang.yang29, xu.xin16, yang.tao172,
ye.xingchen
From: Shao Mingyin <shao.mingyin@zte.com.cn>
Remove hard-coded strings by using the str_on_off() helper function.
Signed-off-by: Shao Mingyin <shao.mingyin@zte.com.cn>
---
drivers/pmdomain/rockchip/pm-domains.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/pmdomain/rockchip/pm-domains.c b/drivers/pmdomain/rockchip/pm-domains.c
index 4cce407bb1eb..0681c763f843 100644
--- a/drivers/pmdomain/rockchip/pm-domains.c
+++ b/drivers/pmdomain/rockchip/pm-domains.c
@@ -21,6 +21,7 @@
#include <linux/regmap.h>
#include <linux/regulator/consumer.h>
#include <linux/mfd/syscon.h>
+#include <linux/string_choices.h>
#include <soc/rockchip/pm_domains.h>
#include <soc/rockchip/rockchip_sip.h>
#include <dt-bindings/power/px30-power.h>
@@ -595,7 +596,7 @@ static int rockchip_do_pmu_set_power_domain(struct rockchip_pm_domain *pd,
is_on == on, 0, 10000);
if (ret) {
dev_err(pmu->dev, "failed to set domain '%s' %s, val=%d\n",
- genpd->name, on ? "on" : "off", is_on);
+ genpd->name, str_on_off(on), is_on);
return ret;
}
--
2.25.1
_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: pmdomain: rockchip: Use str_on_off() helper in rockchip_do_pmu_set_power_domain()
2025-05-29 2:16 pmdomain: rockchip: Use str_on_off() helper in rockchip_do_pmu_set_power_domain() shao.mingyin
@ 2025-05-29 6:41 ` Krzysztof Kozlowski
0 siblings, 0 replies; 2+ messages in thread
From: Krzysztof Kozlowski @ 2025-05-29 6:41 UTC (permalink / raw)
To: shao.mingyin, ulf.hansson
Cc: heiko, sebastian.reichel, detlev.casanova, krzysztof.kozlowski,
finley.xiao, shawn.lin, pgwipeout, linux-pm, linux-arm-kernel,
linux-rockchip, linux-kernel, yang.yang29, xu.xin16, yang.tao172,
ye.xingchen
On 29/05/2025 04:16, shao.mingyin@zte.com.cn wrote:
> From: Shao Mingyin <shao.mingyin@zte.com.cn>
>
> Remove hard-coded strings by using the str_on_off() helper function.
>
> Signed-off-by: Shao Mingyin <shao.mingyin@zte.com.cn>
> ---
This was already sent:
https://lore.kernel.org/all/20250114203547.1013010-1-krzysztof.kozlowski@linaro.org/
Also read the feedback there.
Best regards,
Krzysztof
_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-05-29 7:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-29 2:16 pmdomain: rockchip: Use str_on_off() helper in rockchip_do_pmu_set_power_domain() shao.mingyin
2025-05-29 6:41 ` Krzysztof Kozlowski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox