Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755741AbbBLNDs (ORCPT ); Thu, 12 Feb 2015 08:03:48 -0500 Received: from mail-wg0-f52.google.com ([74.125.82.52]:37631 "EHLO mail-wg0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755496AbbBLNDq (ORCPT ); Thu, 12 Feb 2015 08:03:46 -0500 MIME-Version: 1.0 In-Reply-To: <1423744938.15343.29.camel@perches.com> References: <1423742848-15369-1-git-send-email-a.bouin@gmail.com> <1423742848-15369-2-git-send-email-a.bouin@gmail.com> <1423744938.15343.29.camel@perches.com> Date: Thu, 12 Feb 2015 14:03:45 +0100 Message-ID: Subject: Re: [PATCH 2/4] spi: imx: checkpatch cleanup From: =?UTF-8?Q?aur=C3=A9lien_bouin?= To: Joe Perches Cc: broonie , Fabio Estevam , linux-spi , linux-kernel@vger.kernel.org Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1181 Lines: 38 Hello, It does not change readability ... Often breaks are in functions parameters ... Up to you 2015-02-12 13:42 GMT+01:00 Joe Perches : > > On Thu, 2015-02-12 at 13:07 +0100, Aurelien BOUIN wrote: > > This patch solve various issue detected by checkpatch.pl > > trivia: > > > diff --git a/drivers/spi/spi-imx.c b/drivers/spi/spi-imx.c > [] > > @@ -282,7 +282,8 @@ static unsigned int mx51_ecspi_clkdiv(unsigned int fin, unsigned int fspi, > > (post << MX51_ECSPI_CTRL_POSTDIV_OFFSET); > > } > > > > -static void __maybe_unused mx51_ecspi_intctrl(struct spi_imx_data *spi_imx, int enable) > > +static void __maybe_unused mx51_ecspi_intctrl(struct spi_imx_data *spi_imx, > > + int enable) > > Perhaps it'd be better to use this style: > > __maybe_unused > static void foo(...) > > ie: > > __maybe_unused > static void mx51_ecspi_intctrl(struct spi_imx_data *spi_imx, int enable) > > etc.. > -- 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/