* [PATCH] iio: potentiometer: tpl0102: change i2c functionality return code
@ 2016-03-05 6:55 Matt Ranostay
2016-03-05 7:05 ` Matt Ranostay
0 siblings, 1 reply; 3+ messages in thread
From: Matt Ranostay @ 2016-03-05 6:55 UTC (permalink / raw)
To: jic23; +Cc: linux-iio, Matt Ranostay
Change i2c_check_functionality condition check return from ENOTSUPP to
EOPNOTSUPP which is now the standard return code.
Signed-off-by: Matt Ranostay <mranostay@gmail.com>
---
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
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] iio: potentiometer: tpl0102: change i2c functionality return code
2016-03-05 6:55 [PATCH] iio: potentiometer: tpl0102: change i2c functionality return code Matt Ranostay
@ 2016-03-05 7:05 ` Matt Ranostay
2016-03-05 14:01 ` Jonathan Cameron
0 siblings, 1 reply; 3+ messages in thread
From: Matt Ranostay @ 2016-03-05 7:05 UTC (permalink / raw)
To: Jonathan Cameron; +Cc: linux-iio@vger.kernel.org, Matt Ranostay
Bit embarrassing that I missed my new driver in the original cleanup :)
On Fri, Mar 4, 2016 at 10:55 PM, Matt Ranostay <mranostay@gmail.com> 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@gmail.com>
> ---
> 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
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] iio: potentiometer: tpl0102: change i2c functionality return code
2016-03-05 7:05 ` Matt Ranostay
@ 2016-03-05 14:01 ` Jonathan Cameron
0 siblings, 0 replies; 3+ messages in thread
From: Jonathan Cameron @ 2016-03-05 14:01 UTC (permalink / raw)
To: Matt Ranostay; +Cc: linux-iio@vger.kernel.org
On 05/03/16 07:05, Matt Ranostay wrote:
> Bit embarrassing that I missed my new driver in the original cleanup :)
>
> On Fri, Mar 4, 2016 at 10:55 PM, Matt Ranostay <mranostay@gmail.com> 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@gmail.com>
Applied to the togreg branch of iio.git - probably will have to wait for the next cycle
now unless there is a big delay in the merge window for some reason.
Jonathan
>> ---
>> 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@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-03-05 14:01 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-05 6:55 [PATCH] iio: potentiometer: tpl0102: change i2c functionality return code Matt Ranostay
2016-03-05 7:05 ` Matt Ranostay
2016-03-05 14:01 ` Jonathan Cameron
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).