From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752229AbcBUVIK (ORCPT ); Sun, 21 Feb 2016 16:08:10 -0500 Received: from saturn.retrosnub.co.uk ([178.18.118.26]:60758 "EHLO saturn.retrosnub.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751766AbcBUVIG (ORCPT ); Sun, 21 Feb 2016 16:08:06 -0500 Subject: Re: [RFC PATCH 7/9] iio: imu: inv_mpu6050: Fix alignment with open parenthesis To: Joe Perches , Daniel Baluta References: <1455810794-3188-1-git-send-email-daniel.baluta@intel.com> <1455810794-3188-8-git-send-email-daniel.baluta@intel.com> <56CA2101.8050805@kernel.org> <1456088384.31061.2.camel@perches.com> Cc: knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, wsa@the-dreams.de, linux-i2c@vger.kernel.org, lucas.demarchi@intel.com, srinivas.pandruvada@linux.intel.com, ggao@invensense.com, adi.reus@gmail.com, cmo@melexis.com, mwelling@ieee.org From: Jonathan Cameron Message-ID: <56CA2733.8050303@kernel.org> Date: Sun, 21 Feb 2016 21:08:03 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <1456088384.31061.2.camel@perches.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 21/02/16 20:59, Joe Perches wrote: > On Sun, 2016-02-21 at 20:41 +0000, Jonathan Cameron wrote: >> On 18/02/16 15:53, Daniel Baluta wrote: >>> This makes code consistent around inv_mpu6050 driver and >>> fixes the following checkpatch.pl warning: >>> CHECK: Alignment should match open parenthesis >>> >>> Note that there were few cases were it was not possible to >>> fix this due to making the line too long, but we can live with that. >>> >>> Signed-off-by: Daniel Baluta >> Applied > [] >>> diff --git a/drivers/iio/imu/inv_mpu6050/inv_mpu_core.c b/drivers/iio/imu/inv_mpu6050/inv_mpu_core.c > [] >>> @@ -217,11 +217,10 @@ static int inv_mpu6050_sensor_show(struct inv_mpu6050_state *st, int reg, >>> return IIO_VAL_INT; >>> } >>> >>> -static int inv_mpu6050_read_raw(struct iio_dev *indio_dev, >>> - struct iio_chan_spec const *chan, >>> - int *val, >>> - int *val2, >>> - long mask) { >>> +static int >>> +inv_mpu6050_read_raw(struct iio_dev *indio_dev, >>> + struct iio_chan_spec const *chan, >>> + int *val, int *val2, long mask) { > > Ideally, you'd also convert this form to use > the open brace on a new line like: > > static int > inv_mpu6050_read_raw(struct iio_dev *indio_dev, > struct iio_chan_spec const *chan, > int *val, int *val2, long mask) > { > Good point - as it fitted nicely in with Daniel's patch I applied a quick fixup doing this one and the write_raw. Thanks Joe, Jonathan