Patch "staging: iio: ad7606: fix improper setting of oversampling pins" has been added to the 4.4-stable tree
Subsystems (5)
This is a note to let you know that I've just added the patch titled
staging: iio: ad7606: fix improper setting of oversampling pins
to the 4.4-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:
staging-iio-ad7606-fix-improper-setting-of-oversampling-pins.patch
and it can be found in the queue-4.4 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
b321a38d2407c7e425c54bc09be909a34e49f740Mon Sep 17 00:00:00 2001
From: Eva Rachel Retuya <[email protected]>
Date: Sun, 9 Oct 2016 00:05:39 +0800
Subject: staging: iio: ad7606: fix improper setting of oversampling pins
From: Eva Rachel Retuya <[email protected]>
commit b321a38d2407c7e425c54bc09be909a34e49f740 upstream.
The oversampling ratio is controlled using the oversampling pins, OS [2:0] with OS2 being the MSB control bit, and OS0 the LSB control bit.
The gpio connected to the OS2 pin is not being set correctly, only OS0 and OS1 pins are being set. Fix the typo to allow proper control of the oversampling pins.
--- drivers/staging/iio/adc/ad7606_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/iio/adc/ad7606_core.c +1 -1
@@ -189,7 +189,7 @@ static ssize_t ad7606_store_oversamplingmutex_lock (&indio_dev->mlock);gpio_set_value (st->pdata->gpio_os0, (ret >>0 ) &1 );gpio_set_value (st->pdata->gpio_os1, (ret >>1 ) &1 ); -gpio_set_value (st->pdata->gpio_os1, (ret >>2 ) &1 ); +gpio_set_value (st->pdata->gpio_os2, (ret >>2 ) &1 ); st->oversampling = lval;mutex_unlock (&indio_dev->mlock);
Patches currently in stable-queue which might be from [email protected] are
queue-4.4/staging-iio-ad7606-fix-improper-setting-of-oversampling-pins.patch