|
@@ -234,7 +234,6 @@ static int mxs_lradc_read_raw(struct iio_dev *iio_dev,
|
|
|
{
|
|
|
struct mxs_lradc *lradc = iio_priv(iio_dev);
|
|
|
int ret;
|
|
|
- unsigned long mask;
|
|
|
|
|
|
if (m != IIO_CHAN_INFO_RAW)
|
|
|
return -EINVAL;
|
|
@@ -243,12 +242,6 @@ static int mxs_lradc_read_raw(struct iio_dev *iio_dev,
|
|
|
if (chan->channel > LRADC_MAX_TOTAL_CHANS)
|
|
|
return -EINVAL;
|
|
|
|
|
|
- /* Validate the channel if it doesn't intersect with reserved chans. */
|
|
|
- bitmap_set(&mask, chan->channel, 1);
|
|
|
- ret = iio_validate_scan_mask_onehot(iio_dev, &mask);
|
|
|
- if (ret)
|
|
|
- return -EINVAL;
|
|
|
-
|
|
|
/*
|
|
|
* See if there is no buffered operation in progess. If there is, simply
|
|
|
* bail out. This can be improved to support both buffered and raw IO at
|