iio: magnetometer: ak8974: mark INT_CLEAR as precious
authorMichał Mirosław <mirq-linux@rere.qmqm.pl>
Thu, 17 Aug 2017 13:56:11 +0000 (15:56 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 20 Aug 2017 14:17:39 +0000 (15:17 +0100)
commit9991f99eed49047c237e08471ce010cae02052fe
tree5db4a22e71a37382806d5ddfc1a142c364477e27
parent408cc6eb1e3adc43a434d5d584708c2a1d2c6c32
iio: magnetometer: ak8974: mark INT_CLEAR as precious

Reading INT_CLEAR has side effects - disallow reading it via debugfs.

Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/magnetometer/ak8974.c