Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

iio: adc: ad_sigma_delta: Use `unsigned int` instead of plain `unsigned`

This fixes a checkpatch warning:

WARNING: Prefer 'unsigned int' to bare use of 'unsigned'
#70: FILE: drivers/iio/adc/ad_sigma_delta.c:253:
+ unsigned status_reg;

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Link: https://patch.msgid.link/20241218114809.1378063-2-u.kleine-koenig@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Uwe Kleine-König and committed by
Jonathan Cameron
e439c724 4358b764

+1 -1
+1 -1
drivers/iio/adc/ad_sigma_delta.c
··· 250 250 if (sigma_delta->rdy_gpiod) { 251 251 pending_event = gpiod_get_value(sigma_delta->rdy_gpiod); 252 252 } else { 253 - unsigned status_reg; 253 + unsigned int status_reg; 254 254 255 255 ret = ad_sd_read_reg(sigma_delta, AD_SD_REG_STATUS, 1, &status_reg); 256 256 if (ret)