Re: [PATCH] Staging: nvec: fix coding style issues

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Adnan,

On Monday 28 May 2012 10:41:24 Adnan Ali wrote:
> This commit fixes coding style issues that includes
> long lines.

I included your and some more style fixes to V2 of the "nvec cleanup" series.

Thanks

Marc

> 
> Signed-off-by: Adnan Ali <adnan.ali@xxxxxxxxxxxxxxx>
> ---
>  drivers/staging/nvec/nvec.c |    6 ++++--
>  1 files changed, 4 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/staging/nvec/nvec.c b/drivers/staging/nvec/nvec.c
> index 3c60088..a060e0f 100644
> --- a/drivers/staging/nvec/nvec.c
> +++ b/drivers/staging/nvec/nvec.c
> @@ -734,12 +734,14 @@ static int __devinit tegra_nvec_probe(struct
> platform_device *pdev) nvec->gpio = pdata->gpio;
>  		nvec->i2c_addr = pdata->i2c_addr;
>  	} else if (nvec->dev->of_node) {
> -		nvec->gpio = of_get_named_gpio(nvec->dev->of_node, "request-gpios", 
0);
> +		nvec->gpio = of_get_named_gpio(nvec->dev->of_node,
> +						"request-gpios", 0);
>  		if (nvec->gpio < 0) {
>  			dev_err(&pdev->dev, "no gpio specified");
>  			goto failed;
>  		}
> -		if (of_property_read_u32(nvec->dev->of_node, "slave-addr",
> &nvec->i2c_addr)) { +		if (of_property_read_u32(nvec->dev->of_node,
> +					"slave-addr", &nvec->i2c_addr)) {
>  			dev_err(&pdev->dev, "no i2c address specified");
>  			goto failed;
>  		}
_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel


[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux