All of lore.kernel.org
 help / color / mirror / Atom feed
From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: Cristian Sicilia <sicilia.cristian@gmail.com>
Cc: Vaibhav Hiremath <hvaibhav.linux@gmail.com>,
	Johan Hovold <johan@kernel.org>, Alex Elder <elder@kernel.org>,
	Vaibhav Agarwal <vaibhav.sr@gmail.com>,
	Mark Greer <mgreer@animalcreek.com>,
	Rui Miguel Silva <rmfrfs@gmail.com>, David Lin <dtwlin@gmail.com>,
	Viresh Kumar <vireshk@kernel.org>,
	Bryan O'Donoghue <pure.logic@nexus-software.ie>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] staging: greybus: Parenthesis alignment
Date: Tue, 20 Nov 2018 10:43:58 +0100	[thread overview]
Message-ID: <20181120094358.GA8089@kroah.com> (raw)
In-Reply-To: <1542569289-19899-1-git-send-email-sicilia.cristian@gmail.com>

On Sun, Nov 18, 2018 at 08:28:07PM +0100, Cristian Sicilia wrote:
> Some parameters are aligned with parentheses.
> Some parentheses are opened at end of line.
> 
> Signed-off-by: Cristian Sicilia <sicilia.cristian@gmail.com>
> ---
>  drivers/staging/greybus/arche-platform.c       |   6 +-
>  drivers/staging/greybus/audio_codec.c          |   8 +-
>  drivers/staging/greybus/audio_manager_module.c |  55 +++++----
>  drivers/staging/greybus/audio_manager_sysfs.c  |  22 ++--
>  drivers/staging/greybus/audio_module.c         |  34 +++---
>  drivers/staging/greybus/audio_topology.c       |  70 ++++++------
>  drivers/staging/greybus/bootrom.c              |  25 +++--
>  drivers/staging/greybus/camera.c               |  20 ++--
>  drivers/staging/greybus/connection.c           |  82 +++++++-------
>  drivers/staging/greybus/control.c              |  54 ++++-----
>  drivers/staging/greybus/es2.c                  |  71 ++++++------
>  drivers/staging/greybus/gpio.c                 |  40 +++----
>  drivers/staging/greybus/hid.c                  |  26 +++--
>  drivers/staging/greybus/i2c.c                  |  21 ++--
>  drivers/staging/greybus/module.c               |  19 ++--
>  drivers/staging/greybus/operation.c            | 149 +++++++++++++------------
>  drivers/staging/greybus/svc.c                  | 100 ++++++++---------
>  17 files changed, 413 insertions(+), 389 deletions(-)
> 
> diff --git a/drivers/staging/greybus/arche-platform.c b/drivers/staging/greybus/arche-platform.c
> index 4c36e88..9e2fe3d 100644
> --- a/drivers/staging/greybus/arche-platform.c
> +++ b/drivers/staging/greybus/arche-platform.c
> @@ -78,9 +78,9 @@ static void arche_platform_set_state(struct arche_platform_drvdata *arche_pdata,
>  }
>  
>  /* Requires arche_pdata->wake_lock is held by calling context */
> -static void arche_platform_set_wake_detect_state(
> -				struct arche_platform_drvdata *arche_pdata,
> -				enum svc_wakedetect_state state)
> +static void
> +arche_platform_set_wake_detect_state(struct arche_platform_drvdata *arche_pdata,
> +				     enum svc_wakedetect_state state)

Don't change the format "signature" this way please, the whole name and
return type looks better on the same line.

>  {
>  	arche_pdata->wake_detect_state = state;
>  }
> diff --git a/drivers/staging/greybus/audio_codec.c b/drivers/staging/greybus/audio_codec.c
> index 08746c8..d62f91f 100644
> --- a/drivers/staging/greybus/audio_codec.c
> +++ b/drivers/staging/greybus/audio_codec.c
> @@ -70,7 +70,7 @@ static int gbaudio_module_enable_tx(struct gbaudio_codec_info *codec,
>  		i2s_port = 0;	/* fixed for now */
>  		cportid = data->connection->hd_cport_id;
>  		ret = gb_audio_apbridgea_register_cport(data->connection,
> -						i2s_port, cportid,
> +							i2s_port, cportid,
>  						AUDIO_APBRIDGEA_DIRECTION_TX);

This patch doesn't make sense at all, sorry.  Look at how the lines
align now, it's a mix of both styles.  Stick with one or the other, but
never both at the same time.

I would recommend just leaving this all alone, it's good enough as-is.

sorry,

greg k-h

  parent reply	other threads:[~2018-11-20  9:44 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-18 19:28 [PATCH] staging: greybus: Parenthesis alignment Cristian Sicilia
2018-11-18 19:42 ` Joe Perches
2018-11-21  4:58   ` NeilBrown
2018-11-21 10:11     ` Joe Perches
2018-11-20  9:43 ` Greg Kroah-Hartman [this message]
     [not found]   ` <CACU=YuXesdrT2keMHe33fHRiq0PPKwcQMnp6fGCXgCTbz-kmQw@mail.gmail.com>
2018-11-21  6:09     ` Greg Kroah-Hartman
  -- strict thread matches above, loose matches on Subject: below --
2018-11-25 16:58 Cristian Sicilia

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20181120094358.GA8089@kroah.com \
    --to=gregkh@linuxfoundation.org \
    --cc=dtwlin@gmail.com \
    --cc=elder@kernel.org \
    --cc=hvaibhav.linux@gmail.com \
    --cc=johan@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mgreer@animalcreek.com \
    --cc=pure.logic@nexus-software.ie \
    --cc=rmfrfs@gmail.com \
    --cc=sicilia.cristian@gmail.com \
    --cc=vaibhav.sr@gmail.com \
    --cc=vireshk@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.