Skip to content

Commit 25f2f44

Browse files
Colin Ian KingWolfram Sang
authored andcommitted
i2c: i2c-stm32f7: make structure stm32f7_setup static const
The structure stm32f7_setup is local to the source and does not need to be in global scope, make it static const. Cleans up sparse warning: symbol 'stm32f7_setup' was not declared. Should it be static? Signed-off-by: Colin Ian King <colin.king@canonical.com> Acked-by: Pierre-Yves MORDRET <pierre-yves.mordret@st.com> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
1 parent a91aee5 commit 25f2f44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/i2c/busses/i2c-stm32f7.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ static struct stm32f7_i2c_spec i2c_specs[] = {
265265
},
266266
};
267267

268-
struct stm32f7_i2c_setup stm32f7_setup = {
268+
static const struct stm32f7_i2c_setup stm32f7_setup = {
269269
.rise_time = STM32F7_I2C_RISE_TIME_DEFAULT,
270270
.fall_time = STM32F7_I2C_FALL_TIME_DEFAULT,
271271
.dnf = STM32F7_I2C_DNF_DEFAULT,

0 commit comments

Comments
 (0)