From patchwork Mon Aug 24 18:56:29 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vaibhav Hiremath X-Patchwork-Id: 52645 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f197.google.com (mail-lb0-f197.google.com [209.85.217.197]) by patches.linaro.org (Postfix) with ESMTPS id 2D7FA22DD4 for ; Mon, 24 Aug 2015 18:59:08 +0000 (UTC) Received: by lbcue2 with SMTP id ue2sf43566746lbc.1 for ; Mon, 24 Aug 2015 11:59:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=5X+nVTmK8yEjb5VFgDuxduD55EBqkGt8T11K2RPKcck=; b=A7IPvTqDCY8QOWAuXej+e6fo8Uymx5hUMMJ0cKv22KoceYK+s1rBkez830RgjIqJTY 7ePG48AqkL1rtnJXu/n2u2VF1auNqX3MUXVMbTOTOiWFryva+xXIrDjsUQCsdtUGyOE/ suux1B41kIaD7yHfko/w4BWNoiauzhgvpDCGOcQseFlOLbMCuYM/rzrwcUbmWTX/qeXS qwaDjFqtiKGtS3GUnjiEDOKMU8t3Q7auNXOyfHOMblwvqaF7PaiOYvWRLzl5ur7pq8l8 blynnwm4QlIX3whtwRUiWxuQ8+s5rfbigghuZgqUvpE4c7xaf8PXJFvHN5VExor0k3Dx P1hQ== X-Gm-Message-State: ALoCoQmO1moYHhX7byTYWqrclc3Bv0BbL5RFphoPKDcPXzRZD6AVCdv5RRuPbackqXJq6ONFIC+S X-Received: by 10.112.167.201 with SMTP id zq9mr7257921lbb.2.1440442747147; Mon, 24 Aug 2015 11:59:07 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.198.236 with SMTP id jf12ls105271lac.89.gmail; Mon, 24 Aug 2015 11:59:06 -0700 (PDT) X-Received: by 10.152.5.69 with SMTP id q5mr5350091laq.92.1440442746968; Mon, 24 Aug 2015 11:59:06 -0700 (PDT) Received: from mail-lb0-f180.google.com (mail-lb0-f180.google.com. [209.85.217.180]) by mx.google.com with ESMTPS id ap4si13995138lac.21.2015.08.24.11.59.06 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 24 Aug 2015 11:59:06 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.180 as permitted sender) client-ip=209.85.217.180; Received: by lbbsx3 with SMTP id sx3so85877002lbb.0 for ; Mon, 24 Aug 2015 11:59:06 -0700 (PDT) X-Received: by 10.112.166.106 with SMTP id zf10mr21902407lbb.36.1440442746862; Mon, 24 Aug 2015 11:59:06 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.162.200 with SMTP id yc8csp2669187lbb; Mon, 24 Aug 2015 11:59:05 -0700 (PDT) X-Received: by 10.66.217.138 with SMTP id oy10mr49007845pac.83.1440442744748; Mon, 24 Aug 2015 11:59:04 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id fm4si28887532pab.148.2015.08.24.11.59.03; Mon, 24 Aug 2015 11:59:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753895AbbHXS67 (ORCPT + 28 others); Mon, 24 Aug 2015 14:58:59 -0400 Received: from mail-pa0-f46.google.com ([209.85.220.46]:35605 "EHLO mail-pa0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751989AbbHXS6y (ORCPT ); Mon, 24 Aug 2015 14:58:54 -0400 Received: by pacdd16 with SMTP id dd16so103188373pac.2 for ; Mon, 24 Aug 2015 11:58:54 -0700 (PDT) X-Received: by 10.68.218.65 with SMTP id pe1mr47708171pbc.2.1440442734329; Mon, 24 Aug 2015 11:58:54 -0700 (PDT) Received: from localhost.localdomain ([202.62.77.106]) by smtp.gmail.com with ESMTPSA id hh3sm18260418pbc.8.2015.08.24.11.58.50 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 24 Aug 2015 11:58:53 -0700 (PDT) From: Vaibhav Hiremath To: linux-arm-kernel@lists.infradead.org Cc: robh+dt@kernel.org, mturquette@baylibre.com, lee.jones@linaro.org, k.kozlowski@samsung.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, Vaibhav Hiremath Subject: [PATCH-v2 1/5] mfd: 88pm800: Fix tabbing issue Date: Tue, 25 Aug 2015 00:26:29 +0530 Message-Id: <1440442594-3102-2-git-send-email-vaibhav.hiremath@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1440442594-3102-1-git-send-email-vaibhav.hiremath@linaro.org> References: <1440442594-3102-1-git-send-email-vaibhav.hiremath@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: vaibhav.hiremath@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.180 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Driver had coding style issues where spaces were used instead of tabs. This patch fixes them all. Signed-off-by: Vaibhav Hiremath --- drivers/mfd/88pm800.c | 125 ++++++++++++++++++++++++-------------------------- 1 file changed, 61 insertions(+), 64 deletions(-) diff --git a/drivers/mfd/88pm800.c b/drivers/mfd/88pm800.c index f104a32..c4e097d 100644 --- a/drivers/mfd/88pm800.c +++ b/drivers/mfd/88pm800.c @@ -30,55 +30,55 @@ #include /* Interrupt Registers */ -#define PM800_INT_STATUS1 (0x05) +#define PM800_INT_STATUS1 0x05 #define PM800_ONKEY_INT_STS1 (1 << 0) #define PM800_EXTON_INT_STS1 (1 << 1) -#define PM800_CHG_INT_STS1 (1 << 2) -#define PM800_BAT_INT_STS1 (1 << 3) -#define PM800_RTC_INT_STS1 (1 << 4) +#define PM800_CHG_INT_STS1 (1 << 2) +#define PM800_BAT_INT_STS1 (1 << 3) +#define PM800_RTC_INT_STS1 (1 << 4) #define PM800_CLASSD_OC_INT_STS1 (1 << 5) -#define PM800_INT_STATUS2 (0x06) +#define PM800_INT_STATUS2 0x06 #define PM800_VBAT_INT_STS2 (1 << 0) #define PM800_VSYS_INT_STS2 (1 << 1) #define PM800_VCHG_INT_STS2 (1 << 2) #define PM800_TINT_INT_STS2 (1 << 3) -#define PM800_GPADC0_INT_STS2 (1 << 4) +#define PM800_GPADC0_INT_STS2 (1 << 4) #define PM800_TBAT_INT_STS2 (1 << 5) -#define PM800_GPADC2_INT_STS2 (1 << 6) -#define PM800_GPADC3_INT_STS2 (1 << 7) +#define PM800_GPADC2_INT_STS2 (1 << 6) +#define PM800_GPADC3_INT_STS2 (1 << 7) -#define PM800_INT_STATUS3 (0x07) +#define PM800_INT_STATUS3 0x07 -#define PM800_INT_STATUS4 (0x08) +#define PM800_INT_STATUS4 0x08 #define PM800_GPIO0_INT_STS4 (1 << 0) #define PM800_GPIO1_INT_STS4 (1 << 1) #define PM800_GPIO2_INT_STS4 (1 << 2) #define PM800_GPIO3_INT_STS4 (1 << 3) #define PM800_GPIO4_INT_STS4 (1 << 4) -#define PM800_INT_ENA_1 (0x09) +#define PM800_INT_ENA_1 0x09 #define PM800_ONKEY_INT_ENA1 (1 << 0) #define PM800_EXTON_INT_ENA1 (1 << 1) -#define PM800_CHG_INT_ENA1 (1 << 2) -#define PM800_BAT_INT_ENA1 (1 << 3) -#define PM800_RTC_INT_ENA1 (1 << 4) +#define PM800_CHG_INT_ENA1 (1 << 2) +#define PM800_BAT_INT_ENA1 (1 << 3) +#define PM800_RTC_INT_ENA1 (1 << 4) #define PM800_CLASSD_OC_INT_ENA1 (1 << 5) -#define PM800_INT_ENA_2 (0x0A) +#define PM800_INT_ENA_2 0x0A #define PM800_VBAT_INT_ENA2 (1 << 0) #define PM800_VSYS_INT_ENA2 (1 << 1) #define PM800_VCHG_INT_ENA2 (1 << 2) #define PM800_TINT_INT_ENA2 (1 << 3) -#define PM800_INT_ENA_3 (0x0B) +#define PM800_INT_ENA_3 0x0B #define PM800_GPADC0_INT_ENA3 (1 << 0) #define PM800_GPADC1_INT_ENA3 (1 << 1) #define PM800_GPADC2_INT_ENA3 (1 << 2) #define PM800_GPADC3_INT_ENA3 (1 << 3) #define PM800_GPADC4_INT_ENA3 (1 << 4) -#define PM800_INT_ENA_4 (0x0C) +#define PM800_INT_ENA_4 0x0C #define PM800_GPIO0_INT_ENA4 (1 << 0) #define PM800_GPIO1_INT_ENA4 (1 << 1) #define PM800_GPIO2_INT_ENA4 (1 << 2) @@ -86,7 +86,7 @@ #define PM800_GPIO4_INT_ENA4 (1 << 4) /* number of INT_ENA & INT_STATUS regs */ -#define PM800_INT_REG_NUM (4) +#define PM800_INT_REG_NUM 4 /* Interrupt Number in 88PM800 */ enum { @@ -114,7 +114,7 @@ enum { }; /* PM800: generation identification number */ -#define PM800_CHIP_GEN_ID_NUM 0x3 +#define PM800_CHIP_GEN_ID_NUM 0x3 static const struct i2c_device_id pm80x_id_table[] = { {"88PM800", 0}, @@ -129,47 +129,47 @@ static const struct of_device_id pm80x_of_match_table[] = { static struct resource rtc_resources[] = { { - .name = "88pm80x-rtc", - .start = PM800_IRQ_RTC, - .end = PM800_IRQ_RTC, - .flags = IORESOURCE_IRQ, - }, + .name = "88pm80x-rtc", + .start = PM800_IRQ_RTC, + .end = PM800_IRQ_RTC, + .flags = IORESOURCE_IRQ, + }, }; static struct mfd_cell rtc_devs[] = { { - .name = "88pm80x-rtc", - .of_compatible = "marvell,88pm80x-rtc", - .num_resources = ARRAY_SIZE(rtc_resources), - .resources = &rtc_resources[0], - .id = -1, - }, + .name = "88pm80x-rtc", + .of_compatible = "marvell,88pm80x-rtc", + .num_resources = ARRAY_SIZE(rtc_resources), + .resources = &rtc_resources[0], + .id = -1, + }, }; static struct resource onkey_resources[] = { { - .name = "88pm80x-onkey", - .start = PM800_IRQ_ONKEY, - .end = PM800_IRQ_ONKEY, - .flags = IORESOURCE_IRQ, - }, + .name = "88pm80x-onkey", + .start = PM800_IRQ_ONKEY, + .end = PM800_IRQ_ONKEY, + .flags = IORESOURCE_IRQ, + }, }; static const struct mfd_cell onkey_devs[] = { { - .name = "88pm80x-onkey", - .of_compatible = "marvell,88pm80x-onkey", - .num_resources = 1, - .resources = &onkey_resources[0], - .id = -1, - }, + .name = "88pm80x-onkey", + .of_compatible = "marvell,88pm80x-onkey", + .num_resources = 1, + .resources = &onkey_resources[0], + .id = -1, + }, }; static const struct mfd_cell regulator_devs[] = { { - .name = "88pm80x-regulator", - .of_compatible = "marvell,88pm80x-regulator", - .id = -1, + .name = "88pm80x-regulator", + .of_compatible = "marvell,88pm80x-regulator", + .id = -1, }, }; @@ -323,8 +323,8 @@ out: static int device_onkey_init(struct pm80x_chip *chip) { return mfd_add_devices(chip->dev, 0, &onkey_devs[0], - ARRAY_SIZE(onkey_devs), &onkey_resources[0], 0, - NULL); + ARRAY_SIZE(onkey_devs), &onkey_resources[0], 0, + NULL); } static int device_rtc_init(struct pm80x_chip *chip) @@ -335,13 +335,13 @@ static int device_rtc_init(struct pm80x_chip *chip) rtc_devs[0].pdata_size = pdata->rtc ? sizeof(struct pm80x_rtc_pdata) : 0; return mfd_add_devices(chip->dev, 0, &rtc_devs[0], - ARRAY_SIZE(rtc_devs), NULL, 0, NULL); + ARRAY_SIZE(rtc_devs), NULL, 0, NULL); } static int device_regulator_init(struct pm80x_chip *chip) { return mfd_add_devices(chip->dev, 0, ®ulator_devs[0], - ARRAY_SIZE(regulator_devs), NULL, 0, NULL); + ARRAY_SIZE(regulator_devs), NULL, 0, NULL); } static int device_irq_init_800(struct pm80x_chip *chip) @@ -358,11 +358,10 @@ static int device_irq_init_800(struct pm80x_chip *chip) /* * irq_clr_on_wr defines the way of clearing interrupt by - * read/write(0/1). It's read-clear by default. + * read/write(0/1). It's read-clear by default. */ - mask = - PM800_WAKEUP2_INV_INT | PM800_WAKEUP2_INT_CLEAR | - PM800_WAKEUP2_INT_MASK; + mask = PM800_WAKEUP2_INV_INT | PM800_WAKEUP2_INT_CLEAR | + PM800_WAKEUP2_INT_MASK; irq_clr_mode = pdata->irq_clr_method == PM800_IRQ_CLR_ON_WRITE ? PM800_WAKEUP2_INT_WRITE_CLEAR : PM800_WAKEUP2_INT_READ_CLEAR; @@ -371,9 +370,8 @@ static int device_irq_init_800(struct pm80x_chip *chip) if (ret < 0) goto out; - ret = - regmap_add_irq_chip(chip->regmap, chip->irq, flags, -1, - chip->regmap_irq_chip, &chip->irq_data); + ret = regmap_add_irq_chip(chip->regmap, chip->irq, flags, -1, + chip->regmap_irq_chip, &chip->irq_data); out: return ret; @@ -409,18 +407,18 @@ static int pm800_pages_init(struct pm80x_chip *chip) /* PM800 block power page */ subchip->power_page = i2c_new_dummy(client->adapter, - subchip->power_page_addr); + subchip->power_page_addr); if (subchip->power_page == NULL) { ret = -ENODEV; goto out; } subchip->regmap_power = devm_regmap_init_i2c(subchip->power_page, - &pm80x_regmap_config); + &pm80x_regmap_config); if (IS_ERR(subchip->regmap_power)) { ret = PTR_ERR(subchip->regmap_power); dev_err(chip->dev, - "Failed to allocate regmap_power: %d\n", ret); + "Failed to allocate regmap_power: %d\n", ret); goto out; } @@ -428,18 +426,18 @@ static int pm800_pages_init(struct pm80x_chip *chip) /* PM800 block GPADC */ subchip->gpadc_page = i2c_new_dummy(client->adapter, - subchip->gpadc_page_addr); + subchip->gpadc_page_addr); if (subchip->gpadc_page == NULL) { ret = -ENODEV; goto out; } subchip->regmap_gpadc = devm_regmap_init_i2c(subchip->gpadc_page, - &pm80x_regmap_config); + &pm80x_regmap_config); if (IS_ERR(subchip->regmap_gpadc)) { ret = PTR_ERR(subchip->regmap_gpadc); dev_err(chip->dev, - "Failed to allocate regmap_gpadc: %d\n", ret); + "Failed to allocate regmap_gpadc: %d\n", ret); goto out; } i2c_set_clientdata(subchip->gpadc_page, chip); @@ -620,8 +618,7 @@ static int pm800_probe(struct i2c_client *client, chip = i2c_get_clientdata(client); /* init subchip for PM800 */ - subchip = - devm_kzalloc(&client->dev, sizeof(struct pm80x_subchip), + subchip = devm_kzalloc(&client->dev, sizeof(struct pm80x_subchip), GFP_KERNEL); if (!subchip) { ret = -ENOMEM; @@ -684,7 +681,7 @@ static struct i2c_driver pm800_driver = { .owner = THIS_MODULE, .pm = &pm80x_pm_ops, .of_match_table = pm80x_of_match_table, - }, + }, .probe = pm800_probe, .remove = pm800_remove, .id_table = pm80x_id_table,