mfd: palmas: Constify strings with regulator names

The names of regulators are static const strings, so pointers can be made
as pointers to const for code safety.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20240909134941.121847-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Lee Jones <lee@kernel.org>
This commit is contained in:
Krzysztof Kozlowski
2024-10-16 09:04:09 +01:00
committed by Lee Jones
parent b7cb398d7b
commit 719258c55f
+2 -2
View File
@@ -98,8 +98,8 @@ struct palmas_sleep_requestor_info {
};
struct palmas_regs_info {
char *name;
char *sname;
const char *name;
const char *sname;
u8 vsel_addr;
u8 ctrl_addr;
u8 tstep_addr;