[PATCH 4/5] GPIO: i.MX: Cleanup driver code
Jean-Christophe PLAGNIOL-VILLARD
plagnioj at jcrosoft.com
Sat Apr 20 13:04:02 EDT 2013
On 08:18 Sat 20 Apr , Alexander Shiyan wrote:
> This patch provides only cleanup for i.MX GPIO driver.
> Indentation, reduced licence text etc.
no please drop it this is just noise on the history when doing blame
>
> Signed-off-by: Alexander Shiyan <shc_work at mail.ru>
> ---
> drivers/gpio/gpio-imx.c | 34 ++++++++++++----------------------
> 1 file changed, 12 insertions(+), 22 deletions(-)
>
> diff --git a/drivers/gpio/gpio-imx.c b/drivers/gpio/gpio-imx.c
> index 9dcabfc..f56346b 100644
> --- a/drivers/gpio/gpio-imx.c
> +++ b/drivers/gpio/gpio-imx.c
> @@ -1,23 +1,14 @@
> /*
> - * arch/arm/mach-imx/gpio.c
> + * GPIO driver for i.MX machines
> *
> * author: Sascha Hauer
> * Created: april 20th, 2004
> * Copyright: Synertronixx GmbH
> *
> - * Common code for i.MX machines
> - *
> * This program is free software; you can redistribute it and/or modify
> * it under the terms of the GNU General Public License as published by
> * the Free Software Foundation; either version 2 of the License, or
> * (at your option) any later version.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> - *
> */
>
> #include <init.h>
> @@ -33,15 +24,15 @@ struct imx_gpio_regs {
> };
>
> static struct imx_gpio_regs regs_imx1 = {
> - .dr = 0x1c,
> - .gdir = 0x00,
> - .psr = 0x24,
> + .dr = 0x1c,
> + .gdir = 0x00,
> + .psr = 0x24,
> };
>
> static struct imx_gpio_regs regs_imx31 = {
> - .dr = 0x00,
> - .gdir = 0x04,
> - .psr = 0x08,
> + .dr = 0x00,
> + .gdir = 0x04,
> + .psr = 0x08,
> };
>
> static int imx_gpio_probe(struct device_d *dev)
> @@ -128,15 +119,14 @@ static struct platform_device_id imx_gpio_ids[] = {
> };
>
> static struct driver_d imx_gpio_driver = {
> - .name = "imx-gpio",
> - .probe = imx_gpio_probe,
> - .of_compatible = DRV_OF_COMPAT(imx_gpio_dt_ids),
> - .id_table = imx_gpio_ids,
> + .name = "imx-gpio",
> + .probe = imx_gpio_probe,
> + .of_compatible = DRV_OF_COMPAT(imx_gpio_dt_ids),
> + .id_table = imx_gpio_ids,
> };
>
> static int imx_gpio_add(void)
> {
> - platform_driver_register(&imx_gpio_driver);
> - return 0;
> + return platform_driver_register(&imx_gpio_driver);
> }
> coredevice_initcall(imx_gpio_add);
> --
> 1.8.1.5
>
>
> _______________________________________________
> barebox mailing list
> barebox at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
More information about the barebox
mailing list