[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20131118135639.GD16735@n2100.arm.linux.org.uk>
Date: Mon, 18 Nov 2013 13:56:39 +0000
From: Russell King - ARM Linux <linux@....linux.org.uk>
To: Linus Walleij <linus.walleij@...aro.org>
Cc: Prabhakar Lad <prabhakar.csengg@...il.com>,
Mark Rutland <mark.rutland@....com>,
"devicetree@...r.kernel.org" <devicetree@...r.kernel.org>,
DLOS <davinci-linux-open-source@...ux.davincidsp.com>,
Grygorii Strashko <grygorii.strashko@...com>,
Pawel Moll <pawel.moll@....com>,
"linux-doc@...r.kernel.org" <linux-doc@...r.kernel.org>,
Stephen Warren <swarren@...dotorg.org>,
Sekhar Nori <nsekhar@...com>,
LKML <linux-kernel@...r.kernel.org>,
Rob Herring <rob.herring@...xeda.com>,
"linux-gpio@...r.kernel.org" <linux-gpio@...r.kernel.org>,
Rob Landley <rob@...dley.net>,
Grant Likely <grant.likely@...aro.org>,
Ian Campbell <ijc+devicetree@...lion.org.uk>,
LAK <linux-arm-kernel@...ts.infradead.org>
Subject: Re: [PATCH v5 3/7] gpio: davinci: use irqdomain
On Mon, Nov 18, 2013 at 02:11:32PM +0100, Linus Walleij wrote:
> On Fri, Nov 8, 2013 at 11:11 AM, Prabhakar Lad
> <prabhakar.csengg@...il.com> wrote:
>
> > From: "Lad, Prabhakar" <prabhakar.csengg@...il.com>
> >
> > This patch converts the davinci gpio driver to use irqdomain
> > support.
> >
> > Signed-off-by: Lad, Prabhakar <prabhakar.csengg@...il.com>
>
> (...)
> > @@ -282,8 +283,7 @@ gpio_irq_handler(unsigned irq, struct irq_desc *desc)
> > desc->irq_data.chip->irq_ack(&desc->irq_data);
> > while (1) {
> > u32 status;
> > - int n;
> > - int res;
> > + int bit;
>
> Why is this an int? I think u8 would suffice.
For local variables, it's better to use "int" or even "unsigned" here
rather than u8. u8 tells the compiler that you want the variable to be
8-bit, which seems fine, except the compiler is then at liberty to keep
on masking the register back down to 8-bit.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists