iio: adc: ad799x: change 'unsigned' to 'unsigned int' declaration
authorGustavo Rodrigues <ogustavo@usp.br>
Sun, 28 Apr 2024 19:43:24 +0000 (16:43 -0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 29 Apr 2024 19:57:56 +0000 (20:57 +0100)
Prefer 'unsigned int' instead of bare use of 'unsigned' declarations to
to improve code readbility. This ceases one of the warning messages
pointed by checkpatch.

Co-developed-by: Bruna Lopes <brunaafl@usp.br>
Signed-off-by: Bruna Lopes <brunaafl@usp.br>
Signed-off-by: Gustavo Rodrigues <ogustavo@usp.br>
Reviewed-by: Nuno Sa <nuno.sa@analog.com>
Link: https://lore.kernel.org/r/20240428194326.2836387-2-ogustavo@usp.br
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ad799x.c

index b757cc45c4decf8420a85a4615b6f2e2465ceef1..3040575793a2b2e8631869af0c298e5daa1ba3c2 100644 (file)
@@ -128,7 +128,7 @@ struct ad799x_state {
        struct regulator                *vref;
        /* lock to protect against multiple access to the device */
        struct mutex                    lock;
-       unsigned                        id;
+       unsigned int                    id;
        u16                             config;
 
        u8                              *rx_buf;
@@ -253,7 +253,7 @@ static int ad799x_update_scan_mode(struct iio_dev *indio_dev,
        }
 }
 
-static int ad799x_scan_direct(struct ad799x_state *st, unsigned ch)
+static int ad799x_scan_direct(struct ad799x_state *st, unsigned int ch)
 {
        u8 cmd;