OSDN Git Service

regulator: raa215300: Add const definition
authorBiju Das <biju.das.jz@bp.renesas.com>
Wed, 16 Aug 2023 13:55:50 +0000 (14:55 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 16 Aug 2023 14:02:42 +0000 (15:02 +0100)
commit727d7c1c3695657873d62030b968ba97c8698c54
tree611f1ce4ffd51658404bded860b87bc54d50c984
parente21ac64e669e960688e79bf5babeed63132dac8a
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>
drivers/regulator/raa215300.c