diff options
| author | Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> | 2024-09-09 15:49:41 +0200 |
|---|---|---|
| committer | Lee Jones <lee@kernel.org> | 2024-10-16 09:04:09 +0100 |
| commit | 719258c55f7e9c123ef2a0941c6730b6d43c1bc2 (patch) | |
| tree | d7d6c924706b42361b1499f3e1fafd030596d864 /include/linux/mfd | |
| parent | b7cb398d7b9a643ba86e1a51f3b8d9571d17747f (diff) | |
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>
Diffstat (limited to 'include/linux/mfd')
| -rw-r--r-- | include/linux/mfd/palmas.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/mfd/palmas.h b/include/linux/mfd/palmas.h index eda1ffd99c1a..dabcc0dea802 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; |
