[U-Boot] [PATCH 02/13] board/evb64260/i2c.c: Coding Style cleanup

Heiko Schocher hs at denx.de
Thu Nov 10 07:32:20 CET 2011


Hello Wolfgang,

Wolfgang Denk wrote:
> Make checkpatch-clean
> 
> Signed-off-by: Wolfgang Denk <wd at denx.de>
> Cc: Eran Man <eran at nbase.co.il>
> ---
>  board/evb64260/i2c.c |   48 ++++++++++++++++++++++--------------------------
>  1 files changed, 22 insertions(+), 26 deletions(-)
> 
> diff --git a/board/evb64260/i2c.c b/board/evb64260/i2c.c
> index 88d0dac..573f31f 100644
> --- a/board/evb64260/i2c.c
> +++ b/board/evb64260/i2c.c
> @@ -20,25 +20,22 @@ static void
>  i2c_init(int speed, int slaveaddr)
>  {
>  	unsigned int n, m, freq, margin, power;
> -	unsigned int actualFreq, actualN=0, actualM=0;
> +	unsigned int actualFreq, actualN = 0, actualM = 0;

Hmm.. we don't use Upper and Lower case mixed for variable names.
This should be cleanuped too.

bye,
Heiko
-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany


More information about the U-Boot mailing list