From: Russell King - ARM Linux Subject: Re: [PATCH 06/21] ARM: OMAP: DMA: Clean-up code Date: Sat, 14 Jun 2008 09:13:24 +0100 Message-ID: <20080614081324.GJ32122@flint.arm.linux.org.uk> References: <1212802253-17797-1-git-send-email-tony@atomide.com> <1212802253-17797-2-git-send-email-tony@atomide.com> <1212802253-17797-3-git-send-email-tony@atomide.com> <1212802253-17797-4-git-send-email-tony@atomide.com> <1212802253-17797-5-git-send-email-tony@atomide.com> <1212802253-17797-6-git-send-email-tony@atomide.com> <1212802253-17797-7-git-send-email-tony@atomide.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from caramon.arm.linux.org.uk ([78.32.30.218]:44942 "EHLO caramon.arm.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753452AbYFNINf (ORCPT ); Sat, 14 Jun 2008 04:13:35 -0400 Content-Disposition: inline In-Reply-To: <1212802253-17797-7-git-send-email-tony@atomide.com> Sender: linux-omap-owner@vger.kernel.org List-Id: linux-omap@vger.kernel.org To: Tony Lindgren Cc: linux-arm-kernel@lists.arm.linux.org.uk, linux-omap@vger.kernel.org On Fri, Jun 06, 2008 at 06:30:38PM -0700, Tony Lindgren wrote: > @@ -431,8 +474,8 @@ struct omap_dma_channel_params { > > extern void omap_set_dma_priority(int lch, int dst_port, int priority); > extern int omap_request_dma(int dev_id, const char *dev_name, > - void (* callback)(int lch, u16 ch_status, void *data), > - void *data, int *dma_ch); > + void (*callback)(int lch, u16 ch_status, > + void *data), void *data, int *dma_ch); This is an example where checkpatch is not entirely correct - wrapping the 'callback' type makes it less readable. Just let it flow over column 80, or maybe use: void (*callback)(int, u16, void *), since all we actually need there is the type of the callback.