projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b7cb398
)
mfd: palmas: Constify strings with regulator names
author
Krzysztof Kozlowski
<krzysztof.kozlowski@linaro.org>
Mon, 9 Sep 2024 13:49:41 +0000
(15:49 +0200)
committer
Lee 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
patch
|
blob
|
history
diff --git
a/include/linux/mfd/palmas.h
b/include/linux/mfd/palmas.h
index
eda1ffd
..
dabcc0d
100644
(file)
--- 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 {
- c
har
*name;
- c
har
*sname;
+ c
onst char
*name;
+ c
onst char
*sname;
u8 vsel_addr;
u8 ctrl_addr;
u8 tstep_addr;