Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7fa6790c authored by Miguel Robles's avatar Miguel Robles Committed by Jonathan Cameron
Browse files

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: default avatarMiguel Robles <miguel.robles@farole.net>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent 099c4cef
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -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 @@ static void bma250_chip_disable(struct bma180_data *data)
	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;