From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from smtp37.i.mail.ru ([94.100.177.97]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UTPGg-0001yU-UY for barebox@lists.infradead.org; Sat, 20 Apr 2013 04:19:23 +0000 From: Alexander Shiyan Date: Sat, 20 Apr 2013 08:18:51 +0400 Message-Id: <1366431532-29121-5-git-send-email-shc_work@mail.ru> In-Reply-To: <1366431532-29121-1-git-send-email-shc_work@mail.ru> References: <1366431532-29121-1-git-send-email-shc_work@mail.ru> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 4/5] GPIO: i.MX: Cleanup driver code To: barebox@lists.infradead.org This patch provides only cleanup for i.MX GPIO driver. Indentation, reduced licence text etc. Signed-off-by: Alexander Shiyan --- 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 @@ -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@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox