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>pull/1085/head
parent
b7cb398d7b
commit
719258c55f
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue