From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from nblzone-211-213.nblnetworks.fi ([83.145.211.213]:38590 "EHLO hillosipuli.retiisi.org.uk" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751182AbeCGL2E (ORCPT ); Wed, 7 Mar 2018 06:28:04 -0500 Date: Wed, 7 Mar 2018 13:28:01 +0200 From: Sakari Ailus To: Fabio Estevam Cc: Hugues Fruchet , Steve Longerbeam , Hans Verkuil , Mauro Carvalho Chehab , linux-media , Benjamin Gaignard , Maxime Ripard Subject: Re: [PATCH] media: ov5640: fix get_/set_fmt colorspace related fields Message-ID: <20180307112800.o3yhldl2xx75punp@valkosipuli.retiisi.org.uk> References: <1520355879-20291-1-git-send-email-hugues.fruchet@st.com> <20180307081302.h47mjhlkeq72shw7@valkosipuli.retiisi.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-media-owner@vger.kernel.org List-ID: Hi Fabio, On Wed, Mar 07, 2018 at 06:51:26AM -0300, Fabio Estevam wrote: > Hi Sakari, > > On Wed, Mar 7, 2018 at 5:13 AM, Sakari Ailus wrote: > > >> @@ -2497,16 +2504,22 @@ static int ov5640_probe(struct i2c_client *client, > >> struct fwnode_handle *endpoint; > >> struct ov5640_dev *sensor; > >> int ret; > >> + struct v4l2_mbus_framefmt *fmt; > > > > This one I'd arrange before ret. The local variable declarations should > > generally look like a Christmas tree but upside down. > > It seems Mauro is not happy with reverse Christmas tree ordering: > https://www.mail-archive.com/linux-media@vger.kernel.org/msg127221.html There are other arguments supporting the change such as: - alignment with the rest of the driver and - putting similar definitions together (return value vs. pointers somewhere else). -- Regards, Sakari Ailus e-mail: sakari.ailus@iki.fi