From: Daniel Baluta Date: Fri, 10 Oct 2014 14:53:00 +0000 (+0100) Subject: io: accel: kxcjk-1013: Fix iio_event_spec direction X-Git-Tag: omap-for-v3.19/fixes-for-merge-window~142^2^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=25afffe16d07909197f99163ca7cd1f80fb5cbdd;p=pandora-kernel.git 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 Cc: Signed-off-by: Jonathan Cameron --- Reading git-diff-tree failed