From: Krzysztof Kozlowski Date: Mon, 9 Sep 2024 13:49:41 +0000 (+0200) Subject: mfd: palmas: Constify strings with regulator names X-Git-Tag: v6.13-rc1~113^2~58 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=719258c55f7e9c123ef2a0941c6730b6d43c1bc2;p=thirdparty%2Flinux.git 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 Link: https://lore.kernel.org/r/20240909134941.121847-1-krzysztof.kozlowski@linaro.org Signed-off-by: Lee Jones --- diff --git a/include/linux/mfd/palmas.h b/include/linux/mfd/palmas.h index eda1ffd99c1a4..dabcc0dea8021 100644 --- a/include/linux/mfd/palmas.h +++ b/include/linux/mfd/palmas.h @@ -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;