iio: humidity: hts221: avoid useless ODR reconfiguration
authorLorenzo Bianconi <lorenzo.bianconi83@gmail.com>
Mon, 17 Jul 2017 17:38:59 +0000 (19:38 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 22 Jul 2017 20:18:37 +0000 (21:18 +0100)
commitffebe74b7c95a41d2d0ac70a44d410e0efa37ad8
tree8c6206dec288d84edd5588caa1feb03426115ab0
parentf6f58d9d93fdb53f24b0086ce1c51d3388aa6e53
iio: humidity: hts221: avoid useless ODR reconfiguration

Configure sensor ODR just in hts221_write_raw() in order to avoid
to set device sample rate multiple times.

Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@st.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/humidity/hts221_core.c