Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

iio: imu: st_lsm6dsx: modify st_lsm6dsx_flush_fifo and st_lsm6dsx_set_fifo_mode scope

Remove static qualifier from st_lsm6dsx_flush_fifo() and
st_lsm6dsx_set_fifo_mode() in order to use them in system sleep pm support

Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@st.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>

authored by

Lorenzo Bianconi and committed by
Jonathan Cameron
535de397 e530cc84

+6 -3
+3
drivers/iio/imu/st_lsm6dsx/st_lsm6dsx.h
··· 144 144 u8 val); 145 145 int st_lsm6dsx_update_watermark(struct st_lsm6dsx_sensor *sensor, 146 146 u16 watermark); 147 + int st_lsm6dsx_flush_fifo(struct st_lsm6dsx_hw *hw); 148 + int st_lsm6dsx_set_fifo_mode(struct st_lsm6dsx_hw *hw, 149 + enum st_lsm6dsx_fifo_mode fifo_mode); 147 150 148 151 #endif /* ST_LSM6DSX_H */
+3 -3
drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_buffer.c
··· 130 130 return 0; 131 131 } 132 132 133 - static int st_lsm6dsx_set_fifo_mode(struct st_lsm6dsx_hw *hw, 134 - enum st_lsm6dsx_fifo_mode fifo_mode) 133 + int st_lsm6dsx_set_fifo_mode(struct st_lsm6dsx_hw *hw, 134 + enum st_lsm6dsx_fifo_mode fifo_mode) 135 135 { 136 136 u8 data; 137 137 int err; ··· 303 303 return read_len; 304 304 } 305 305 306 - static int st_lsm6dsx_flush_fifo(struct st_lsm6dsx_hw *hw) 306 + int st_lsm6dsx_flush_fifo(struct st_lsm6dsx_hw *hw) 307 307 { 308 308 int err; 309 309