mfd: palmas: Constify strings with regulator names
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Mon, 9 Sep 2024 13:49:41 +0000 (15:49 +0200)
committerLee Jones <lee@kernel.org>
Wed, 16 Oct 2024 08:04:09 +0000 (09:04 +0100)
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>
include/linux/mfd/palmas.h

index eda1ffd..dabcc0d 100644 (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;