* [PATCH] mfd: palmas: Constify strings with regulator names
@ 2024-09-09 13:49 Krzysztof Kozlowski
2024-10-02 13:59 ` (subset) " Lee Jones
0 siblings, 1 reply; 2+ messages in thread
From: Krzysztof Kozlowski @ 2024-09-09 13:49 UTC (permalink / raw)
To: Lee Jones, linux-kernel; +Cc: Krzysztof Kozlowski
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>
---
include/linux/mfd/palmas.h | 4 ++--
1 file 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;
--
2.43.0
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: (subset) [PATCH] mfd: palmas: Constify strings with regulator names
2024-09-09 13:49 [PATCH] mfd: palmas: Constify strings with regulator names Krzysztof Kozlowski
@ 2024-10-02 13:59 ` Lee Jones
0 siblings, 0 replies; 2+ messages in thread
From: Lee Jones @ 2024-10-02 13:59 UTC (permalink / raw)
To: Lee Jones, linux-kernel, Krzysztof Kozlowski
On Mon, 09 Sep 2024 15:49:41 +0200, Krzysztof Kozlowski wrote:
> The names of regulators are static const strings, so pointers can be made
> as pointers to const for code safety.
>
>
Applied, thanks!
[1/1] mfd: palmas: Constify strings with regulator names
commit: 1b0ed9d381dd77a566efa846f7ba5df73efbb956
--
Lee Jones [李琼斯]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-10-02 13:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-09-09 13:49 [PATCH] mfd: palmas: Constify strings with regulator names Krzysztof Kozlowski
2024-10-02 13:59 ` (subset) " Lee Jones
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®