Patch "iio:accel:mma8452: fix _get_hp_filter_index" has been added to the 4.2-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
iio:accel:mma8452: fix _get_hp_filter_index
to the 4.2-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
iio-accel-mma8452-fix-_get_hp_filter_index.patch
and it can be found in the queue-4.2 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
001fceb9c64a39aebb85d31134182d39c1628a21Mon Sep 17 00:00:00 2001
From: Hartmut Knaack <[email protected]>
Date: Sun, 2 Aug 2015 22:43:46 +0200
Subject: iio:accel:mma8452: fix _get_hp_filter_index
From: Hartmut Knaack <[email protected]>
commit 001fceb9c64a39aebb85d31134182d39c1628a21 upstream.
To iterate through the available frequencies of mma8452_hp_filter_cutoff[], the array size of a row of that table needs to be provided to _get_int_plus_micros_index().
--- drivers/iio/accel/mma8452.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iio/accel/mma8452.c +1 -1
@@ -229,7 +229,7 @@ static int mma8452_get_hp_filter_index(sint i =mma8452_get_odr_index (data);return mma8452_get_int_plus_micros_index (mma8452_hp_filter_cutoff[i], -ARRAY_SIZE (mma8452_scales[0 ]), val, val2); +ARRAY_SIZE (mma8452_hp_filter_cutoff[0 ]), val, val2); }static int mma8452_read_hp_filter (struct mma8452_data *data,int *hz,int *uHz)
Patches currently in stable-queue which might be from [email protected] are
queue-4.2/iio-accel-mma8452-fix-_get_hp_filter_index.patch