]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: i2c-stm32f7: make structure stm32f7_setup static const
authorColin Ian King <colin.king@canonical.com>
Mon, 18 Sep 2017 08:15:39 +0000 (09:15 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Thu, 5 Oct 2017 12:44:57 +0000 (14:44 +0200)
commitefe61d86874faf071f3d9f36e298b27810d5ef4a
treee9808c459ea7b722787ee30e46999f7fd86fb94e
parent22a70a3ce5b458870b38019a7ab5c17e0bb7a65f
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>
drivers/i2c/busses/i2c-stm32f7.c