Skip to content

Commit 727d7c1

Browse files
bijudasbroonie
authored andcommitted
regulator: raa215300: Add const definition
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>
1 parent e21ac64 commit 727d7c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/regulator/raa215300.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ static int raa215300_i2c_probe(struct i2c_client *client)
119119
}
120120

121121
if (clk_name) {
122-
char *name = pmic_version >= 0x12 ? "isl1208" : "raa215300_a0";
122+
const char *name = pmic_version >= 0x12 ? "isl1208" : "raa215300_a0";
123123
struct device_node *np = client->dev.of_node;
124124
u32 addr = RAA215300_RTC_DEFAULT_ADDR;
125125
struct i2c_board_info info = {};

0 commit comments

Comments
 (0)