]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf06516c25a22acb65a779389f1bcbd95250e4eec
tree5db4a22e71a37382806d5ddfc1a142c364477e27
parentc1b93704c1539f4ac24bea6d21a3d34abac28290
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