Skip to content

Commit

Permalink
i2c: i2c-stm32f7: make structure stm32f7_setup static const
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Colin Ian King authored and Wolfram Sang committed Oct 5, 2017
1 parent a91aee5 commit 25f2f44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/i2c/busses/i2c-stm32f7.c
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ static struct stm32f7_i2c_spec i2c_specs[] = {
},
};

struct stm32f7_i2c_setup stm32f7_setup = {
static const struct stm32f7_i2c_setup stm32f7_setup = {
.rise_time = STM32F7_I2C_RISE_TIME_DEFAULT,
.fall_time = STM32F7_I2C_FALL_TIME_DEFAULT,
.dnf = STM32F7_I2C_DNF_DEFAULT,
Expand Down

0 comments on commit 25f2f44

Please sign in to comment.