diff options
author | Miguel Robles <miguel.robles@farole.net> | 2017-03-17 00:35:45 +0100 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2017-03-19 10:37:21 +0000 |
commit | 7fa6790c22350442073610ebbb036e2951c99c0e (patch) | |
tree | 3e202d6894a697f03b4ab278f509a9a744059e7d | |
parent | 099c4cef24a6cb77e2c03e9e66199d460ed4a5a1 (diff) |
iio: accel: Prefer unsigned int to bare use of unsigned
Fix checkpatch warnings:
WARNING: Prefer 'unsigned int' to bare use of 'unsigned'
Signed-off-by: Miguel Robles <miguel.robles@farole.net>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
-rw-r--r-- | drivers/iio/accel/bma180.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/iio/accel/bma180.c b/drivers/iio/accel/bma180.c index 0890934ef66f..dd84e87052e1 100644 --- a/drivers/iio/accel/bma180.c +++ b/drivers/iio/accel/bma180.c @@ -41,11 +41,11 @@ struct bma180_data; struct bma180_part_info { const struct iio_chan_spec *channels; - unsigned num_channels; + unsigned int num_channels; const int *scale_table; - unsigned num_scales; + unsigned int num_scales; const int *bw_table; - unsigned num_bw; + unsigned int num_bw; u8 int_reset_reg, int_reset_mask; u8 sleep_reg, sleep_mask; @@ -408,7 +408,7 @@ err: dev_err(&data->client->dev, "failed to disable the chip\n"); } -static ssize_t bma180_show_avail(char *buf, const int *vals, unsigned n, +static ssize_t bma180_show_avail(char *buf, const int *vals, unsigned int n, bool micros) { size_t len = 0; |