summaryrefslogtreecommitdiffstats
path: root/drivers/iio/proximity/as3935.c
diff options
context:
space:
mode:
authorDaniel Baluta <daniel.baluta@intel.com>2014-10-10 15:53:00 +0100
committerJonathan Cameron <jic23@kernel.org>2014-11-05 18:33:46 +0000
commit25afffe16d07909197f99163ca7cd1f80fb5cbdd (patch)
treea3f439437c80ec340ad36670dcad9c1e4b0a1f59 /drivers/iio/proximity/as3935.c
parent03045bcf312961cc75b2719aad6b4d69907884db (diff)
downloadop-kernel-dev-25afffe16d07909197f99163ca7cd1f80fb5cbdd.zip
op-kernel-dev-25afffe16d07909197f99163ca7cd1f80fb5cbdd.tar.gz
io: accel: kxcjk-1013: Fix iio_event_spec direction
Because IIO_EV_DIR_* are not bitmasks but enums, IIO_EV_DIR_RISING | IIO_EV_DIR_FALLING is not equal with IIO_EV_DIR_EITHER. This could lead to potential misformatted sysfs attributes like: * in_accel_x_thresh_(null)_en * in_accel_x_thresh_(null)_period * in_accel_x_thresh_(null)_value or even memory corruption. Fixes: b4b491c083 (iio: accel: kxcjk-1013: Support threshold) Signed-off-by: Daniel Baluta <daniel.baluta@intel.com> Cc: <Stable@vger.kernel.org> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/proximity/as3935.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud