Re: [PATCH] iio: adc: xilinx-ams: add missing break in AMS_SUPPLY[78] cases

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue,  6 Jun 2017 15:21:21 -0400
Jean-Francois Dagenais <jeff.dagenais@xxxxxxxxx> wrote:

> This would otherwise lead supply 7 and 8 to scale to 3V instead of
> 6V
> 
> Signed-off-by: Jean-Francois Dagenais <jeff.dagenais@xxxxxxxxx>
Interesting... Driver isn't in mainline though and as far as I know
hasn't been submitted.

Jonathan
> ---
>  drivers/iio/adc/xilinx-ams.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/iio/adc/xilinx-ams.c b/drivers/iio/adc/xilinx-ams.c
> index fd4eb6d..6b3ab56 100644
> --- a/drivers/iio/adc/xilinx-ams.c
> +++ b/drivers/iio/adc/xilinx-ams.c
> @@ -255,6 +255,7 @@ static int ams_read_raw(struct iio_dev *indio_dev,
>  			case AMS_SUPPLY7:
>  			case AMS_SUPPLY8:
>  				*val = AMS_SUPPLY_SCALE_6VOLT;
> +				break;
>  			case AMS_SUPPLY9:
>  			case AMS_SUPPLY10:
>  				if (chan->scan_index < PS_SEQ_MAX)

--
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



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux