i2c: st: use pm_sleep_ptr to avoid ifdef CONFIG_PM_SLEEP
authorAlain Volmat <avolmat@me.com>
Mon, 6 Feb 2023 21:03:23 +0000 (22:03 +0100)
committerWolfram Sang <wsa@kernel.org>
Sun, 12 Feb 2023 21:06:49 +0000 (22:06 +0100)
commitfce55da31d091187555a7af9c055de85f0cea6c4
treeff629456403f6eba6f62ee6ec4e25998ef5ecced
parent001e944fc16b1ba520e5ec74e3af4c16d3f6acc3
i2c: st: use pm_sleep_ptr to avoid ifdef CONFIG_PM_SLEEP

Rely on pm_sleep_ptr when setting the pm ops and get rid
of the ifdef CONFIG_PM_SLEEP around suspend/resume functions.

Signed-off-by: Alain Volmat <avolmat@me.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-st.c