Skip to content

Commit cd3ea5d

Browse files
nathanchanceJarlPenguin
authored andcommitted
i2c-msm-v2: Fix location of second const qualifier for i2c_msm_adapter_name
Clang warns: ../drivers/i2c/busses/i2c-msm-v2.c:2859:19: warning: duplicate 'const' declaration specifier [-Wduplicate-decl-specifier] static const char const *i2c_msm_adapter_name = "MSM-I2C-v2-adapter"; ^~~~~~ 1 warning generated. Fixes: 2e0f1d8 ("i2c: qcom: Add Qualcomm I2C drivers") Signed-off-by: Nathan Chancellor <[email protected]>
1 parent 4d2a946 commit cd3ea5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/i2c/busses/i2c-msm-v2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2929,7 +2929,7 @@ static const struct i2c_algorithm i2c_msm_frmwrk_algrtm = {
29292929
.functionality = i2c_msm_frmwrk_func,
29302930
};
29312931

2932-
static const char const *i2c_msm_adapter_name = "MSM-I2C-v2-adapter";
2932+
static const char * const i2c_msm_adapter_name = "MSM-I2C-v2-adapter";
29332933

29342934
static int i2c_msm_frmwrk_reg(struct platform_device *pdev,
29352935
struct i2c_msm_ctrl *ctrl)

0 commit comments

Comments
 (0)