mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] iio: accel: Prefer unsigned int to bare use of unsigned
@ 2017-03-16 23:35 Miguel Robles
  2017-03-19 10:37 ` Jonathan Cameron
  0 siblings, 1 reply; 2+ messages in thread
From: Miguel Robles @ 2017-03-16 23:35 UTC (permalink / raw)
  To: jic23, lars, knaack.h; +Cc: linux-iio, linux-kernel, Miguel Robles

Fix checkpatch warnings:
WARNING: Prefer 'unsigned int' to bare use of 'unsigned'

Signed-off-by: Miguel Robles <miguel.robles@farole.net>
---
 drivers/iio/accel/bma180.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/iio/accel/bma180.c b/drivers/iio/accel/bma180.c
index 0890934..dd84e87 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 @@ 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;
-- 
2.7.4

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] iio: accel: Prefer unsigned int to bare use of unsigned
  2017-03-16 23:35 [PATCH] iio: accel: Prefer unsigned int to bare use of unsigned Miguel Robles
@ 2017-03-19 10:37 ` Jonathan Cameron
  0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Cameron @ 2017-03-19 10:37 UTC (permalink / raw)
  To: Miguel Robles, lars, knaack.h; +Cc: linux-iio, linux-kernel

On 16/03/17 23:35, Miguel Robles wrote:
> Fix checkpatch warnings:
> WARNING: Prefer 'unsigned int' to bare use of 'unsigned'
> 
> Signed-off-by: Miguel Robles <miguel.robles@farole.net>
Applied to the togreg branch of iio.git and pushed out as testing
for the autobuilders to play with it.

Thanks,

Jonathan
> ---
>  drivers/iio/accel/bma180.c | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/drivers/iio/accel/bma180.c b/drivers/iio/accel/bma180.c
> index 0890934..dd84e87 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 @@ 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;
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-03-19 10:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-16 23:35 [PATCH] iio: accel: Prefer unsigned int to bare use of unsigned Miguel Robles
2017-03-19 10:37 ` Jonathan Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®