Skip to content

Commit da8cf0d

Browse files
Gustavo Rodriguesjic23
authored andcommitted
iio: adc: ad799x: change 'unsigned' to 'unsigned int' declaration
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>
1 parent 6a28a72 commit da8cf0d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/iio/adc/ad799x.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ struct ad799x_state {
128128
struct regulator *vref;
129129
/* lock to protect against multiple access to the device */
130130
struct mutex lock;
131-
unsigned id;
131+
unsigned int id;
132132
u16 config;
133133

134134
u8 *rx_buf;
@@ -253,7 +253,7 @@ static int ad799x_update_scan_mode(struct iio_dev *indio_dev,
253253
}
254254
}
255255

256-
static int ad799x_scan_direct(struct ad799x_state *st, unsigned ch)
256+
static int ad799x_scan_direct(struct ad799x_state *st, unsigned int ch)
257257
{
258258
u8 cmd;
259259

0 commit comments

Comments
 (0)