Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757987AbYGILNS (ORCPT ); Wed, 9 Jul 2008 07:13:18 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756534AbYGILM6 (ORCPT ); Wed, 9 Jul 2008 07:12:58 -0400 Received: from trinity.fluff.org ([89.145.97.151]:59777 "EHLO trinity.fluff.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754318AbYGILM5 (ORCPT ); Wed, 9 Jul 2008 07:12:57 -0400 Date: Wed, 9 Jul 2008 12:12:56 +0100 From: Ben Dooks To: Dmitry Cc: Ben Dooks , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.arm.linux.org.uk, sameo@openedhand.com Subject: Re: [patch 2/4] MFD: Coding style fixes Message-ID: <20080709111256.GM8489@trinity.fluff.org> References: <20080709104916.200210922@fluff.org> <20080709104932.706237040@fluff.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Disclaimer: These are my views alone. X-URL: http://www.fluff.org/ User-Agent: Mutt/1.5.9i X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: ben@trinity.fluff.org X-SA-Exim-Scanned: No (on trinity.fluff.org); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3761 Lines: 111 On Wed, Jul 09, 2008 at 03:11:21PM +0400, Dmitry wrote: > 2008/7/9 Ben Dooks : > > Fix some coding style fixes in the mfd core driver. > > > > Signed-off-by: Ben Dooks > > I don't have a strong feeling about this. As it's pretty much only > whitespace changes, > my feelings are closer to NAK. Leaving decision to Samuel or Ian. The coding style is all over the place, this makes it far more readable. > > > > Index: linux-2.6.26-rc9-next20080709/drivers/mfd/mfd-core.c > > =================================================================== > > --- linux-2.6.26-rc9-next20080709.orig/drivers/mfd/mfd-core.c 2008-07-09 10:43:54.000000000 +0100 > > +++ linux-2.6.26-rc9-next20080709/drivers/mfd/mfd-core.c 2008-07-09 10:44:45.000000000 +0100 > > @@ -16,9 +16,9 @@ > > #include > > > > static int mfd_add_device(struct platform_device *parent, > > - const struct mfd_cell *cell, > > - struct resource *mem_base, > > - int irq_base) > > + const struct mfd_cell *cell, > > + struct resource *mem_base, > > + int irq_base) > > { > > struct resource res[cell->num_resources]; > > struct platform_device *pdev; > > @@ -75,11 +75,10 @@ fail_alloc: > > return ret; > > } > > > > -int mfd_add_devices( > > - struct platform_device *parent, > > - const struct mfd_cell *cells, int n_devs, > > - struct resource *mem_base, > > - int irq_base) > > +int mfd_add_devices(struct platform_device *parent, > > + const struct mfd_cell *cells, int n_devs, > > + struct resource *mem_base, > > + int irq_base) > > { > > int i; > > int ret = 0; > > Index: linux-2.6.26-rc9-next20080709/include/linux/mfd/core.h > > =================================================================== > > --- linux-2.6.26-rc9-next20080709.orig/include/linux/mfd/core.h 2008-07-09 10:43:54.000000000 +0100 > > +++ linux-2.6.26-rc9-next20080709/include/linux/mfd/core.h 2008-07-09 10:44:45.000000000 +0100 > > @@ -1,5 +1,3 @@ > > -#ifndef MFD_CORE_H > > -#define MFD_CORE_H > > /* > > * drivers/mfd/mfd-core.h > > * > > @@ -13,6 +11,9 @@ > > * > > */ > > > > +#ifndef MFD_CORE_H > > +#define MFD_CORE_H > > + > > #include > > > > /* > > @@ -38,17 +39,15 @@ struct mfd_cell { > > const struct resource *resources; > > }; > > > > -static inline struct mfd_cell * > > -mfd_get_cell(struct platform_device *pdev) > > +static inline struct mfd_cell *mfd_get_cell(struct platform_device *pdev) > > { > > return (struct mfd_cell *)pdev->dev.platform_data; > > } > > > > -extern int mfd_add_devices( > > - struct platform_device *parent, > > - const struct mfd_cell *cells, int n_devs, > > - struct resource *mem_base, > > - int irq_base); > > +extern int mfd_add_devices(struct platform_device *parent, > > + const struct mfd_cell *cells, int n_devs, > > + struct resource *mem_base, > > + int irq_base); > > > > extern void mfd_remove_devices(struct platform_device *parent); > > > > > > -- > > > > > > -- > With best wishes > Dmitry -- -- Ben Q: What's a light-year? A: One-third less calories than a regular year. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/