From: Lennert Buytenhek <buytenh@wantstofly.org>
To: Jeff Garzik <jeff@garzik.org>
Cc: LKML <linux-kernel@vger.kernel.org>,
akpm@linux-foundation.org, rmk@arm.linux.org.uk,
kernel@wantstofly.org
Subject: Re: [PATCH] ARM: Misc minor interrupt handler cleanups
Date: Fri, 26 Oct 2007 23:56:39 +0200 [thread overview]
Message-ID: <20071026215639.GC32372@xi.wantstofly.org> (raw)
In-Reply-To: <74217bef3667bfd60b9cee6d9bcaf4d69617eb38.1193390974.git.jeff@garzik.org>
On Fri, Oct 26, 2007 at 05:40:25AM -0400, Jeff Garzik wrote:
> mach-integrator/pci_v3.c: no need to reference 'irq' arg, its constant
>
> mach-omap1/pm.c: remove extra whitespace
>
> arch/arm/mach-sa1100/ssp.c: remove braces around single C stmt
>
> arch/arm/plat-omap/mcbsp.c:
> - remove pointless casts from void*
> - make longer lines more readable
>
> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
FWIW
Acked-by: Lennert Buytenhek <buytenh@wantstofly.org>
> ---
> arch/arm/mach-integrator/pci_v3.c | 8 +++++---
> arch/arm/mach-omap1/pm.c | 2 +-
> arch/arm/mach-sa1100/ssp.c | 3 +--
> arch/arm/plat-omap/mcbsp.c | 20 ++++++++++++--------
> 4 files changed, 19 insertions(+), 14 deletions(-)
>
> diff --git a/arch/arm/mach-integrator/pci_v3.c b/arch/arm/mach-integrator/pci_v3.c
> index d4d8134..d55fa4e 100644
> --- a/arch/arm/mach-integrator/pci_v3.c
> +++ b/arch/arm/mach-integrator/pci_v3.c
> @@ -440,7 +440,7 @@ v3_pci_fault(unsigned long addr, unsigned int fsr, struct pt_regs *regs)
> return 1;
> }
>
> -static irqreturn_t v3_irq(int irq, void *devid)
> +static irqreturn_t v3_irq(int dummy, void *devid)
> {
> #ifdef CONFIG_DEBUG_LL
> struct pt_regs *regs = get_irq_regs();
> @@ -448,8 +448,10 @@ static irqreturn_t v3_irq(int irq, void *devid)
> unsigned long instr = *(unsigned long *)pc;
> char buf[128];
>
> - sprintf(buf, "V3 int %d: pc=0x%08lx [%08lx] LBFADDR=%08x LBFCODE=%02x ISTAT=%02x\n", irq,
> - pc, instr, __raw_readl(SC_LBFADDR), __raw_readl(SC_LBFCODE) & 255,
> + sprintf(buf, "V3 int %d: pc=0x%08lx [%08lx] LBFADDR=%08x LBFCODE=%02x "
> + "ISTAT=%02x\n", IRQ_AP_V3INT, pc, instr,
> + __raw_readl(SC_LBFADDR),
> + __raw_readl(SC_LBFCODE) & 255,
> v3_readb(V3_LB_ISTAT));
> printascii(buf);
> #endif
> diff --git a/arch/arm/mach-omap1/pm.c b/arch/arm/mach-omap1/pm.c
> index 3bf01e2..94c299b 100644
> --- a/arch/arm/mach-omap1/pm.c
> +++ b/arch/arm/mach-omap1/pm.c
> @@ -646,7 +646,7 @@ static void omap_pm_finish(void)
> }
>
>
> -static irqreturn_t omap_wakeup_interrupt(int irq, void *dev)
> +static irqreturn_t omap_wakeup_interrupt(int irq, void *dev)
> {
> return IRQ_HANDLED;
> }
> diff --git a/arch/arm/mach-sa1100/ssp.c b/arch/arm/mach-sa1100/ssp.c
> index 59703c6..06206ce 100644
> --- a/arch/arm/mach-sa1100/ssp.c
> +++ b/arch/arm/mach-sa1100/ssp.c
> @@ -29,9 +29,8 @@ static irqreturn_t ssp_interrupt(int irq, void *dev_id)
> {
> unsigned int status = Ser4SSSR;
>
> - if (status & SSSR_ROR) {
> + if (status & SSSR_ROR)
> printk(KERN_WARNING "SSP: receiver overrun\n");
> - }
>
> Ser4SSSR = SSSR_ROR;
>
> diff --git a/arch/arm/plat-omap/mcbsp.c b/arch/arm/plat-omap/mcbsp.c
> index f7b9ccd..2af5bd5 100644
> --- a/arch/arm/plat-omap/mcbsp.c
> +++ b/arch/arm/plat-omap/mcbsp.c
> @@ -98,9 +98,10 @@ static void omap_mcbsp_dump_reg(u8 id)
>
> static irqreturn_t omap_mcbsp_tx_irq_handler(int irq, void *dev_id)
> {
> - struct omap_mcbsp * mcbsp_tx = (struct omap_mcbsp *)(dev_id);
> + struct omap_mcbsp *mcbsp_tx = dev_id;
>
> - DBG("TX IRQ callback : 0x%x\n", OMAP_MCBSP_READ(mcbsp_tx->io_base, SPCR2));
> + DBG("TX IRQ callback : 0x%x\n",
> + OMAP_MCBSP_READ(mcbsp_tx->io_base, SPCR2));
>
> complete(&mcbsp_tx->tx_irq_completion);
> return IRQ_HANDLED;
> @@ -108,9 +109,10 @@ static irqreturn_t omap_mcbsp_tx_irq_handler(int irq, void *dev_id)
>
> static irqreturn_t omap_mcbsp_rx_irq_handler(int irq, void *dev_id)
> {
> - struct omap_mcbsp * mcbsp_rx = (struct omap_mcbsp *)(dev_id);
> + struct omap_mcbsp *mcbsp_rx = dev_id;
>
> - DBG("RX IRQ callback : 0x%x\n", OMAP_MCBSP_READ(mcbsp_rx->io_base, SPCR2));
> + DBG("RX IRQ callback : 0x%x\n",
> + OMAP_MCBSP_READ(mcbsp_rx->io_base, SPCR2));
>
> complete(&mcbsp_rx->rx_irq_completion);
> return IRQ_HANDLED;
> @@ -118,9 +120,10 @@ static irqreturn_t omap_mcbsp_rx_irq_handler(int irq, void *dev_id)
>
> static void omap_mcbsp_tx_dma_callback(int lch, u16 ch_status, void *data)
> {
> - struct omap_mcbsp * mcbsp_dma_tx = (struct omap_mcbsp *)(data);
> + struct omap_mcbsp *mcbsp_dma_tx = data;
>
> - DBG("TX DMA callback : 0x%x\n", OMAP_MCBSP_READ(mcbsp_dma_tx->io_base, SPCR2));
> + DBG("TX DMA callback : 0x%x\n",
> + OMAP_MCBSP_READ(mcbsp_dma_tx->io_base, SPCR2));
>
> /* We can free the channels */
> omap_free_dma(mcbsp_dma_tx->dma_tx_lch);
> @@ -131,9 +134,10 @@ static void omap_mcbsp_tx_dma_callback(int lch, u16 ch_status, void *data)
>
> static void omap_mcbsp_rx_dma_callback(int lch, u16 ch_status, void *data)
> {
> - struct omap_mcbsp * mcbsp_dma_rx = (struct omap_mcbsp *)(data);
> + struct omap_mcbsp *mcbsp_dma_rx = data;
>
> - DBG("RX DMA callback : 0x%x\n", OMAP_MCBSP_READ(mcbsp_dma_rx->io_base, SPCR2));
> + DBG("RX DMA callback : 0x%x\n",
> + OMAP_MCBSP_READ(mcbsp_dma_rx->io_base, SPCR2));
>
> /* We can free the channels */
> omap_free_dma(mcbsp_dma_rx->dma_rx_lch);
> --
> 1.5.2.4
next prev parent reply other threads:[~2007-10-26 21:56 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-26 9:40 [PATCH] Remove pointless casts from void pointers, Jeff Garzik
2007-10-26 9:40 ` [PATCH] Remove always-true tests in irq handlers Jeff Garzik
2007-10-26 12:02 ` Ralf Baechle
2007-10-26 9:40 ` [PATCH] ARM: Misc minor interrupt handler cleanups Jeff Garzik
2007-10-26 21:56 ` Lennert Buytenhek [this message]
2007-10-26 9:40 ` [PATCH] IA64, PPC, SPARC: minor irq " Jeff Garzik
2007-10-26 9:44 ` Kumar Gala
2007-10-26 9:49 ` Jeff Garzik
2007-10-26 14:55 ` Kumar Gala
2007-10-26 9:40 ` [PATCH] media/video/planb: fix obvious interrupt handling bugs Jeff Garzik
2007-10-26 9:40 ` [PATCH] drivers/net/irda/au1k_ir: fix obvious irq handler bugs Jeff Garzik
2007-10-26 9:40 ` [PATCH] SCSI/gdth: kill unneeded 'irq' argument Jeff Garzik
2007-10-29 9:22 ` Boaz Harrosh
2007-10-26 9:40 ` [PATCH] SCSI/sym53c416: kill pointless irq handler loop and test Jeff Garzik
2007-10-26 9:40 ` [PATCH] NETDRVR, USB: declance, lp486e, s3c2410_udc: minor irq handler cleanups Jeff Garzik
2007-10-26 12:24 ` [PATCH] Remove pointless casts from void pointers, John W. Linville
2007-10-26 13:38 ` Dmitry Torokhov
2007-10-26 14:46 ` Josh Boyer
2007-10-26 14:55 ` Holger Schurig
2007-10-26 21:58 ` Lennert Buytenhek
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20071026215639.GC32372@xi.wantstofly.org \
--to=buytenh@wantstofly.org \
--cc=akpm@linux-foundation.org \
--cc=jeff@garzik.org \
--cc=kernel@wantstofly.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rmk@arm.linux.org.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®