Re: [PATCH] Fix coding style in drivers/staging/crystalhd/crystalhd_lnx.c
From: Greg Kroah-Hartman
Date: Sun Apr 13 2014 - 11:46:58 EST
On Sun, Apr 13, 2014 at 05:35:46PM +0200, Pascal COMBES wrote:
> From: Pascal COMBES <pascom@xxxxxxxxx>
>
> Fix alignement issues and two or three other coding style problems in
> drivers/staging/crystalhd/crystalhd_lnx.c.
Patches need to do one thing, as you are addressing a number of
different things all in one patch, this needs to be broken up into
smaller pieces, and sent as a series of patches.
>
> NB: -I did this for task 10 of Eudyptula challenge <http://eudyptula-challenge.org/>
> -I did not address camel case related problem because it would have make a big patch.
This doesn't belong here, in the patch changelog body, please remove it.
If you want to include comments like this, they need to be below the
"---" line where git will remove them when the patch is applied.
>
> Signed-off-by: Pascal COMBES <pascom@xxxxxxxxx>
> ---
> diff --git a/drivers/staging/crystalhd/crystalhd_lnx.c b/drivers/staging/crystalhd/crystalhd_lnx.c
> index 20be957..9f6a9d4 100644
> --- a/drivers/staging/crystalhd/crystalhd_lnx.c
> +++ b/drivers/staging/crystalhd/crystalhd_lnx.c
> @@ -28,7 +28,7 @@ static struct crystalhd_adp *g_adp_info;
>
> static irqreturn_t chd_dec_isr(int irq, void *arg)
> {
> - struct crystalhd_adp *adp = (struct crystalhd_adp *) arg;
> + struct crystalhd_adp *adp = (struct crystalhd_adp *)arg;
> int rc = 0;
> if (adp)
> rc = crystalhd_cmd_interrupt(&adp->cmds);
> @@ -112,7 +112,7 @@ static void chd_dec_free_iodata(struct crystalhd_adp *adp,
> }
>
> static inline int crystalhd_user_data(void __user *ud, void *dr,
> - int size, int set)
> + int size, int set)
> {
> int rc;
>
> @@ -135,7 +135,9 @@ static inline int crystalhd_user_data(void __user *ud, void *dr,
> }
>
> static int chd_dec_fetch_cdata(struct crystalhd_adp *adp,
> - struct crystalhd_ioctl_data *io, uint32_t m_sz, unsigned long ua)
> + struct crystalhd_ioctl_data *io,
> + uint32_t m_sz,
> + unsigned long ua)
Why can't these two lines be on the same line?
thanks,
greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/