Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754506AbZAELNu (ORCPT ); Mon, 5 Jan 2009 06:13:50 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752073AbZAELNl (ORCPT ); Mon, 5 Jan 2009 06:13:41 -0500 Received: from earthlight.etchedpixels.co.uk ([81.2.110.250]:53902 "EHLO lxorguk.ukuu.org.uk" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752843AbZAELNk (ORCPT ); Mon, 5 Jan 2009 06:13:40 -0500 Date: Mon, 5 Jan 2009 11:13:21 +0000 From: Alan Cox To: Heikki Orsila Cc: unsik Kim , linux-kernel@vger.kernel.org, akpm@linux-foundation.org Subject: Re: [PATCH] mflash linux support Message-ID: <20090105111321.7d210c01@lxorguk.ukuu.org.uk> In-Reply-To: <20090105023346.GE6115@zakalwe.fi> References: <57afda040901041718g1415e210hfd0991270dfdd72d@mail.gmail.com> <20090105023346.GE6115@zakalwe.fi> X-Mailer: Claws Mail 3.5.0 (GTK+ 2.12.12; x86_64-redhat-linux-gnu) Organization: Red Hat UK Cyf., Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SL4 1TE, Y Deyrnas Gyfunol. Cofrestrwyd yng Nghymru a Lloegr o'r rhif cofrestru 3798903 Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 846 Lines: 26 On Mon, 5 Jan 2009 04:33:46 +0200 Heikki Orsila wrote: > A few style issues: How about starting by worrying about the code not pointless style complaints ? >> > + switch (cmd) { > > + case HDIO_GETGEO: > > if (cmd == HDIO_GETGEO) { Especially when you are making pointless complaints about things that are generally done the way the original code is - and for good reason. It makes it far cleaner to add new ioctl support. It would be interesting to see what mflash looked like as a libata driver but I think for embedded systems the driver as submitted shows great promise. -- 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/