Re: [PATCH] iio: potentiometer: tpl0102: change i2c functionality return code

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

 



Bit embarrassing that I missed my new driver in the original cleanup :)

On Fri, Mar 4, 2016 at 10:55 PM, Matt Ranostay <mranostay@xxxxxxxxx> wrote:
> Change i2c_check_functionality condition check return from ENOTSUPP to
> EOPNOTSUPP which is now the standard return code.
>
> Signed-off-by: Matt Ranostay <mranostay@xxxxxxxxx>
> ---
>  drivers/iio/potentiometer/tpl0102.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/iio/potentiometer/tpl0102.c b/drivers/iio/potentiometer/tpl0102.c
> index 313124b..5c304d4 100644
> --- a/drivers/iio/potentiometer/tpl0102.c
> +++ b/drivers/iio/potentiometer/tpl0102.c
> @@ -118,7 +118,7 @@ static int tpl0102_probe(struct i2c_client *client,
>
>         if (!i2c_check_functionality(client->adapter,
>                                      I2C_FUNC_SMBUS_WORD_DATA))
> -               return -ENOTSUPP;
> +               return -EOPNOTSUPP;
>
>         indio_dev = devm_iio_device_alloc(dev, sizeof(*data));
>         if (!indio_dev)
> --
> 2.7.0
>
--
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