aboutsummaryrefslogtreecommitdiff
path: root/drivers/iio
diff options
context:
space:
mode:
authorGravatar Gustavo Rodrigues <ogustavo@usp.br> 2024-04-28 16:43:24 -0300
committerGravatar Jonathan Cameron <Jonathan.Cameron@huawei.com> 2024-04-29 20:57:56 +0100
commitda8cf0d7327f148d2847f58ae17a4dd6aac6b5bf (patch)
treebbcdacc5542e01556abd83990b97dba009f5e6b6 /drivers/iio
parentiio: adc: mcp3564: Use device_for_each_child_node_scoped() (diff)
downloadlinux-da8cf0d7327f148d2847f58ae17a4dd6aac6b5bf.tar.gz
linux-da8cf0d7327f148d2847f58ae17a4dd6aac6b5bf.tar.bz2
linux-da8cf0d7327f148d2847f58ae17a4dd6aac6b5bf.zip
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>
Diffstat (limited to 'drivers/iio')
-rw-r--r--drivers/iio/adc/ad799x.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/iio/adc/ad799x.c b/drivers/iio/adc/ad799x.c
index b757cc45c4de..3040575793a2 100644
--- a/drivers/iio/adc/ad799x.c
+++ b/drivers/iio/adc/ad799x.c
@@ -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;