]> git.baikalelectronics.ru Git - kernel.git/commit
iio: stk8312: Use scan_type when processing raw data
authorGwendal Grignou <gwendal@chromium.org>
Thu, 4 Nov 2021 08:24:05 +0000 (01:24 -0700)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Wed, 17 Nov 2021 17:51:41 +0000 (17:51 +0000)
commitacd978b7115014079a0fb9fcc01af2c422486367
treee5083c26e26b6ca6ae9e84c6e2935d8085ef1d9f
parent21236adf5d9fb01c2dff706956ad607825f48f17
iio: stk8312: Use scan_type when processing raw data

Use channel definition as root of trust and replace constant
when reading elements directly using the raw sysfs attributes.

Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Link: https://lore.kernel.org/r/20211104082413.3681212-6-gwendal@chromium.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/accel/stk8312.c