[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20191006190726.GB237538@kroah.com>
Date: Sun, 6 Oct 2019 21:07:26 +0200
From: Greg KH <gregkh@...uxfoundation.org>
To: Jules Irenge <jbi.octave@...il.com>
Cc: outreachy-kernel@...glegroups.com, devel@...verdev.osuosl.org,
linux-kernel@...r.kernel.org, abbotti@....co.uk, olsonse@...ch.edu
Subject: Re: [PATCH] staging: comedi: Capitalize macro name to fix camelcase
checkpatch warning
On Sun, Oct 06, 2019 at 07:49:03PM +0100, Jules Irenge wrote:
> Capitalize RANGE_mA to fix camelcase check warning.
> Issue reported by checkpatch.pl
>
> Signed-off-by: Jules Irenge <jbi.octave@...il.com>
> ---
> drivers/staging/comedi/comedidev.h | 2 +-
> drivers/staging/comedi/drivers/adv_pci1724.c | 4 ++--
> drivers/staging/comedi/drivers/dac02.c | 2 +-
> drivers/staging/comedi/range.c | 6 +++---
> 4 files changed, 7 insertions(+), 7 deletions(-)
>
> diff --git a/drivers/staging/comedi/comedidev.h b/drivers/staging/comedi/comedidev.h
> index 54c091866777..2fc536db203c 100644
> --- a/drivers/staging/comedi/comedidev.h
> +++ b/drivers/staging/comedi/comedidev.h
> @@ -603,7 +603,7 @@ int comedi_check_chanlist(struct comedi_subdevice *s,
>
> #define RANGE(a, b) {(a) * 1e6, (b) * 1e6, 0}
> #define RANGE_ext(a, b) {(a) * 1e6, (b) * 1e6, RF_EXTERNAL}
> -#define RANGE_mA(a, b) {(a) * 1e6, (b) * 1e6, UNIT_MA}
> +#define RANGE_MA(a, b) {(a) * 1e6, (b) * 1e6, UNIT_MA}
Did you send this patch twice?
Anyway, this is the units "mA", which needs to be "mA" for obvious
reasons. Sorry, checkpatch is wrong in thsi case.
thanks,
greg k-h
Powered by blists - more mailing lists