iio: accel: Prefer unsigned int to bare use of unsigned
authorMiguel Robles <miguel.robles@farole.net>
Thu, 16 Mar 2017 23:35:45 +0000 (00:35 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sun, 19 Mar 2017 10:37:21 +0000 (10:37 +0000)
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>
drivers/iio/accel/bma180.c

index 0890934ef66f66bca02521ffe71192591afe3aa5..dd84e87052e15f0c01883cbf6c73da8fee8a4806 100644 (file)
@@ -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;