mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-04 04:04:19 +00:00
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:
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
Block a user