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

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.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent e21ac64e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 = {};