Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Krzysztof Kozlowski and committed by
Lee Jones
719258c5 b7cb398d

+2 -2
+2 -2
include/linux/mfd/palmas.h
··· 98 98 }; 99 99 100 100 struct palmas_regs_info { 101 - char *name; 102 - char *sname; 101 + const char *name; 102 + const char *sname; 103 103 u8 vsel_addr; 104 104 u8 ctrl_addr; 105 105 u8 tstep_addr;