iio: accel: mma8452: Rename read/write event value callbacks to generic function...
authorHarinath Nampally <harinath922@gmail.com>
Mon, 25 Sep 2017 10:40:08 +0000 (06:40 -0400)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 9 Oct 2017 19:49:49 +0000 (20:49 +0100)
commit4febd9f184961031a42a65163d7cd049c563530f
tree8b61a7bbd38b955e1826c7eabaaa229f19355379
parent3b455cdc49e8d91e84184e60e01a390c7eb23134
iio: accel: mma8452: Rename read/write event value callbacks to generic function name.

'mma8452_read_thresh' and 'mma8452_write_thresh' functions
does more than just read/write threshold values.
They also handle  IIO_EV_INFO_HIGH_PASS_FILTER_3DB and
IIO_EV_INFO_PERIOD therefore renaming to generic names.

Improves code readability, no impact on functionality.

Signed-off-by: Harinath Nampally <harinath922@gmail.com>
Acked-by: Martin Kepplinger <martink@posteo.de>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/accel/mma8452.c