OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e21ac64
)
regulator: raa215300: Add const definition
author
Biju Das
<biju.das.jz@bp.renesas.com>
Wed, 16 Aug 2023 13:55:50 +0000
(14:55 +0100)
committer
Mark Brown
<broonie@kernel.org>
Wed, 16 Aug 2023 14:02:42 +0000
(15:02 +0100)
Add const definition to the initialized local variable name to avoid
overriding. Also the second parameter in strscpy is const char * instead of
char *.
Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Link:
https://lore.kernel.org/r/20230816135550.146657-3-biju.das.jz@bp.renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/raa215300.c
patch
|
blob
|
history
diff --git
a/drivers/regulator/raa215300.c
b/drivers/regulator/raa215300.c
index
898f53c
..
bdbf1e4
100644
(file)
--- a/
drivers/regulator/raa215300.c
+++ b/
drivers/regulator/raa215300.c
@@
-119,7
+119,7
@@
static int raa215300_i2c_probe(struct i2c_client *client)
}
if (clk_name) {
- char *name = pmic_version >= 0x12 ? "isl1208" : "raa215300_a0";
+ c
onst c
har *name = pmic_version >= 0x12 ? "isl1208" : "raa215300_a0";
struct device_node *np = client->dev.of_node;
u32 addr = RAA215300_RTC_DEFAULT_ADDR;
struct i2c_board_info info = {};