Re: [PATCH] staging: greybus: Parenthesis alignment
From: Greg Kroah-Hartman
Date: Tue Nov 20 2018 - 04:44:03 EST
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@xxxxxxxxx>
> ---
> 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