On 02/08/15 21:43, Hartmut Knaack wrote: > 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(). > > Fixes: 1e79841a00e46 ("iio: mma8452: Add highpass filter configuration.") > > Signed-off-by: Hartmut Knaack <knaack.h@xxxxxx> Applied to the togreg branch of iio.git - initially pushed out as testing etc. > --- > drivers/iio/accel/mma8452.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/iio/accel/mma8452.c b/drivers/iio/accel/mma8452.c > index e8e2077c7244..245b95fc22be 100644 > --- a/drivers/iio/accel/mma8452.c > +++ b/drivers/iio/accel/mma8452.c > @@ -229,7 +229,7 @@ static int mma8452_get_hp_filter_index(struct mma8452_data *data, > int 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) > -- To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html