* [PATCH] iio: adis16400: Change unsigned to unsigned int
@ 2017-07-01 21:54 Reno Farnesi
2017-07-02 9:27 ` Jonathan Cameron
0 siblings, 1 reply; 2+ messages in thread
From: Reno Farnesi @ 2017-07-01 21:54 UTC (permalink / raw)
To: jic23; +Cc: linux-iio, Reno Farnesi
This patch fixes the following checkpatch warnings:
Prefer 'unsigned int' to bare use of 'unsigned
Signed-off-by: Reno Farnesi <nfarnesi4@gmail.com>
---
drivers/iio/imu/adis16400_core.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/iio/imu/adis16400_core.c b/drivers/iio/imu/adis16400_core.c
index fb7c0dbed51c..9b697d35dbef 100644
--- a/drivers/iio/imu/adis16400_core.c
+++ b/drivers/iio/imu/adis16400_core.c
@@ -217,7 +217,7 @@ static int adis16400_set_freq(struct adis16400_state *st, unsigned int freq)
return adis_write_reg_8(&st->adis, ADIS16400_SMPL_PRD, val);
}
-static const unsigned adis16400_3db_divisors[] = {
+static const unsigned int adis16400_3db_divisors[] = {
[0] = 2, /* Special case */
[1] = 6,
[2] = 12,
@@ -890,7 +890,7 @@ static const struct adis_data adis16400_data = {
static void adis16400_setup_chan_mask(struct adis16400_state *st)
{
const struct adis16400_chip_info *chip_info = st->variant;
- unsigned i;
+ unsigned int i;
for (i = 0; i < chip_info->num_channels; i++) {
const struct iio_chan_spec *ch = &chip_info->channels[i];
--
2.13.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] iio: adis16400: Change unsigned to unsigned int
2017-07-01 21:54 [PATCH] iio: adis16400: Change unsigned to unsigned int Reno Farnesi
@ 2017-07-02 9:27 ` Jonathan Cameron
0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Cameron @ 2017-07-02 9:27 UTC (permalink / raw)
To: Reno Farnesi; +Cc: linux-iio
On Sat, 1 Jul 2017 17:54:08 -0400
Reno Farnesi <nfarnesi4@gmail.com> wrote:
> This patch fixes the following checkpatch warnings:
>
> Prefer 'unsigned int' to bare use of 'unsigned
>
> Signed-off-by: Reno Farnesi <nfarnesi4@gmail.com>
Applied to the togreg branch of iio.git - initially pushed
out as testing for the autobuilders to play with it.
Thanks,
Jonathan
> ---
> drivers/iio/imu/adis16400_core.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/iio/imu/adis16400_core.c b/drivers/iio/imu/adis16400_core.c
> index fb7c0dbed51c..9b697d35dbef 100644
> --- a/drivers/iio/imu/adis16400_core.c
> +++ b/drivers/iio/imu/adis16400_core.c
> @@ -217,7 +217,7 @@ static int adis16400_set_freq(struct adis16400_state *st, unsigned int freq)
> return adis_write_reg_8(&st->adis, ADIS16400_SMPL_PRD, val);
> }
>
> -static const unsigned adis16400_3db_divisors[] = {
> +static const unsigned int adis16400_3db_divisors[] = {
> [0] = 2, /* Special case */
> [1] = 6,
> [2] = 12,
> @@ -890,7 +890,7 @@ static const struct adis_data adis16400_data = {
> static void adis16400_setup_chan_mask(struct adis16400_state *st)
> {
> const struct adis16400_chip_info *chip_info = st->variant;
> - unsigned i;
> + unsigned int i;
>
> for (i = 0; i < chip_info->num_channels; i++) {
> const struct iio_chan_spec *ch = &chip_info->channels[i];
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-07-02 9:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-01 21:54 [PATCH] iio: adis16400: Change unsigned to unsigned int Reno Farnesi
2017-07-02 9:27 ` Jonathan Cameron
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.