[PATCH] Staging: comedi: made range.c checkpatch.pl compliant

Ian Abbott abbotti at mev.co.uk
Thu Jan 31 11:02:42 UTC 2013


On 2013-01-31 10:56, Sebastiaan de Haan wrote:
> Change made to range.c to make it checkpatch.pl compliant
>
> Signed-off-by: Sebastiaan de Haan <sebastiaan at sebastiaandehaan.nl>
> ---
>   drivers/staging/comedi/range.c |    2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/staging/comedi/range.c b/drivers/staging/comedi/range.c
> index 59ff0cf..b87fb4e 100644
> --- a/drivers/staging/comedi/range.c
> +++ b/drivers/staging/comedi/range.c
> @@ -35,7 +35,7 @@ const struct comedi_lrange range_unipolar10 = { 1, {UNI_RANGE(10)} };
>   EXPORT_SYMBOL(range_unipolar10);
>   const struct comedi_lrange range_unipolar5 = { 1, {UNI_RANGE(5)} };
>   EXPORT_SYMBOL(range_unipolar5);
> -const struct comedi_lrange range_unknown = { 1, {{0, 1000000, UNIT_none} } };
> +const struct comedi_lrange range_unknown = { 1, {{0, 1000000, UNIT_NONE} } };
>   EXPORT_SYMBOL(range_unknown);

No, no, no.  It doesn't compile and UNIT_none is used by user space.

-- 
-=( Ian Abbott @ MEV Ltd.    E-mail: <abbotti at mev.co.uk>        )=-
-=( Tel: +44 (0)161 477 1898   FAX: +44 (0)161 718 3587         )=-



More information about the devel mailing list