i2c: stm32f7: avoid ifdef CONFIG_PM_SLEEP for pm callbacks
authorAlain Volmat <alain.volmat@foss.st.com>
Fri, 12 Mar 2021 11:53:27 +0000 (12:53 +0100)
committerWolfram Sang <wsa@kernel.org>
Tue, 6 Apr 2021 20:40:02 +0000 (22:40 +0200)
commit010e32ab205bfee3a3e860d0366c1516c3e298f9
tree8f2706baa8a5e1342684f0f0088f583eb1f32b69
parent40357058f859563149c976fe90728436d6795227
i2c: stm32f7: avoid ifdef CONFIG_PM_SLEEP for pm callbacks

Avoid CONFIG_PM preprocessor check for pm suspend/resume
callbacks and identify the functions with __maybe_unused.

Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
Reviewed-by: Pierre-Yves MORDRET <pierre-yves.mordret@foss.st.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-stm32f7.c