All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] iio: dac: ad7303: fix channel description
@ 2017-04-13 21:54 plroskin
  2017-04-14  8:25 ` Lars-Peter Clausen
  0 siblings, 1 reply; 3+ messages in thread
From: plroskin @ 2017-04-13 21:54 UTC (permalink / raw)
  To: linux-iio; +Cc: Pavel Roskin

From: Pavel Roskin <plroskin@gmail.com>

realbits, storagebits and shift should be numbers, not ASCII characters.

Signed-off-by: Pavel Roskin <plroskin@gmail.com>
---
 drivers/iio/dac/ad7303.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/iio/dac/ad7303.c b/drivers/iio/dac/ad7303.c
index e690dd11e99f..4b0f942b8914 100644
--- a/drivers/iio/dac/ad7303.c
+++ b/drivers/iio/dac/ad7303.c
@@ -184,9 +184,9 @@ static const struct iio_chan_spec_ext_info ad7303_ext_info[] = {
 	.address = (chan),					\
 	.scan_type = {						\
 		.sign = 'u',					\
-		.realbits = '8',				\
-		.storagebits = '8',				\
-		.shift = '0',					\
+		.realbits = 8,					\
+		.storagebits = 8,				\
+		.shift = 0,					\
 	},							\
 	.ext_info = ad7303_ext_info,				\
 }
-- 
2.12.2


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] iio: dac: ad7303: fix channel description
  2017-04-13 21:54 [PATCH] iio: dac: ad7303: fix channel description plroskin
@ 2017-04-14  8:25 ` Lars-Peter Clausen
  2017-04-14 13:46   ` Jonathan Cameron
  0 siblings, 1 reply; 3+ messages in thread
From: Lars-Peter Clausen @ 2017-04-14  8:25 UTC (permalink / raw)
  To: plroskin, linux-iio

On 04/13/2017 11:54 PM, plroskin@gmail.com wrote:
> From: Pavel Roskin <plroskin@gmail.com>
> 
> realbits, storagebits and shift should be numbers, not ASCII characters.
> 
> Signed-off-by: Pavel Roskin <plroskin@gmail.com>

Thanks for the fix.

Reviewed-by: Lars-Peter Clausen <lars@metafoo.de>

You really have to wonder how somebody would be able to get that wrong
in the first place... ;)


> ---
>  drivers/iio/dac/ad7303.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/iio/dac/ad7303.c b/drivers/iio/dac/ad7303.c
> index e690dd11e99f..4b0f942b8914 100644
> --- a/drivers/iio/dac/ad7303.c
> +++ b/drivers/iio/dac/ad7303.c
> @@ -184,9 +184,9 @@ static const struct iio_chan_spec_ext_info ad7303_ext_info[] = {
>  	.address = (chan),					\
>  	.scan_type = {						\
>  		.sign = 'u',					\
> -		.realbits = '8',				\
> -		.storagebits = '8',				\
> -		.shift = '0',					\
> +		.realbits = 8,					\
> +		.storagebits = 8,				\
> +		.shift = 0,					\
>  	},							\
>  	.ext_info = ad7303_ext_info,				\
>  }
> 


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] iio: dac: ad7303: fix channel description
  2017-04-14  8:25 ` Lars-Peter Clausen
@ 2017-04-14 13:46   ` Jonathan Cameron
  0 siblings, 0 replies; 3+ messages in thread
From: Jonathan Cameron @ 2017-04-14 13:46 UTC (permalink / raw)
  To: Lars-Peter Clausen, plroskin, linux-iio

On 14/04/17 09:25, Lars-Peter Clausen wrote:
> On 04/13/2017 11:54 PM, plroskin@gmail.com wrote:
>> From: Pavel Roskin <plroskin@gmail.com>
>>
>> realbits, storagebits and shift should be numbers, not ASCII characters.
>>
>> Signed-off-by: Pavel Roskin <plroskin@gmail.com>
> 
> Thanks for the fix.
> 
> Reviewed-by: Lars-Peter Clausen <lars@metafoo.de>
> 
> You really have to wonder how somebody would be able to get that wrong
> in the first place... ;)
Applied and marked for stable. Big oops on this one.

Jonathan
> 
> 
>> ---
>>  drivers/iio/dac/ad7303.c | 6 +++---
>>  1 file changed, 3 insertions(+), 3 deletions(-)
>>
>> diff --git a/drivers/iio/dac/ad7303.c b/drivers/iio/dac/ad7303.c
>> index e690dd11e99f..4b0f942b8914 100644
>> --- a/drivers/iio/dac/ad7303.c
>> +++ b/drivers/iio/dac/ad7303.c
>> @@ -184,9 +184,9 @@ static const struct iio_chan_spec_ext_info ad7303_ext_info[] = {
>>  	.address = (chan),					\
>>  	.scan_type = {						\
>>  		.sign = 'u',					\
>> -		.realbits = '8',				\
>> -		.storagebits = '8',				\
>> -		.shift = '0',					\
>> +		.realbits = 8,					\
>> +		.storagebits = 8,				\
>> +		.shift = 0,					\
>>  	},							\
>>  	.ext_info = ad7303_ext_info,				\
>>  }
>>
> 
> --
> 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:[~2017-04-14 13:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-13 21:54 [PATCH] iio: dac: ad7303: fix channel description plroskin
2017-04-14  8:25 ` Lars-Peter Clausen
2017-04-14 13:46   ` Jonathan Cameron

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.