Commit 727d7c1c authored by Biju Das's avatar Biju Das Committed by Mark Brown

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: default avatarBiju Das <biju.das.jz@bp.renesas.com>
Link: https://lore.kernel.org/r/20230816135550.146657-3-biju.das.jz@bp.renesas.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent e21ac64e
......@@ -119,7 +119,7 @@ static int raa215300_i2c_probe(struct i2c_client *client)
}
if (clk_name) {
char *name = pmic_version >= 0x12 ? "isl1208" : "raa215300_a0";
const char *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 = {};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment