diff mbox series

[v2,2/4] iio: adc: ad7923: Fix checkpatch warning

Message ID 20191210150811.3429-3-djunho@gmail.com (mailing list archive)
State New, archived
Headers show
Series Add support for the ad7908/ad7918/ad7928 | expand

Commit Message

Daniel Junho Dec. 10, 2019, 3:08 p.m. UTC
Fix checkpatch warning:
WARNING: Prefer 'unsigned int' to bare use of 'unsigned'
+static int ad7923_scan_direct(struct ad7923_state *st, unsigned ch)

Signed-off-by: Daniel Junho <djunho@gmail.com>
---
 drivers/iio/adc/ad7923.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Alexandru Ardelean Dec. 11, 2019, 7:26 a.m. UTC | #1
On Tue, 2019-12-10 at 12:08 -0300, Daniel Junho wrote:
> [External]
> 
> Fix checkpatch warning:
> WARNING: Prefer 'unsigned int' to bare use of 'unsigned'
> +static int ad7923_scan_direct(struct ad7923_state *st, unsigned ch)
> 

Reviewed-by: Alexandru Ardelean <alexandru.ardelean@analog.com>

> Signed-off-by: Daniel Junho <djunho@gmail.com>
> ---
>  drivers/iio/adc/ad7923.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/iio/adc/ad7923.c b/drivers/iio/adc/ad7923.c
> index 969c06b7d2b7..e535cec9fc02 100644
> --- a/drivers/iio/adc/ad7923.c
> +++ b/drivers/iio/adc/ad7923.c
> @@ -184,7 +184,7 @@ static irqreturn_t ad7923_trigger_handler(int irq,
> void *p)
>  	return IRQ_HANDLED;
>  }
>  
> -static int ad7923_scan_direct(struct ad7923_state *st, unsigned ch)
> +static int ad7923_scan_direct(struct ad7923_state *st, unsigned int ch)
>  {
>  	int ret, cmd;
>
diff mbox series

Patch

diff --git a/drivers/iio/adc/ad7923.c b/drivers/iio/adc/ad7923.c
index 969c06b7d2b7..e535cec9fc02 100644
--- a/drivers/iio/adc/ad7923.c
+++ b/drivers/iio/adc/ad7923.c
@@ -184,7 +184,7 @@  static irqreturn_t ad7923_trigger_handler(int irq, void *p)
 	return IRQ_HANDLED;
 }
 
-static int ad7923_scan_direct(struct ad7923_state *st, unsigned ch)
+static int ad7923_scan_direct(struct ad7923_state *st, unsigned int ch)
 {
 	int ret, cmd;