diff options
author | Chanwoo Choi <cw00.choi@samsung.com> | 2015-09-29 09:59:55 -0400 |
---|---|---|
committer | Chanwoo Choi <cw00.choi@samsung.com> | 2015-09-30 06:22:50 -0400 |
commit | 6ba129974a3d6bcb236cbd96aa1db6001d163678 (patch) | |
tree | 532ebd771c7bb09e7043a41fe9df063acc8f9559 /drivers/extcon | |
parent | ce6f7496050e29108bcefe0413df1789648fb38f (diff) |
extcon: gpio: Fix minor coding style and remove the unused fields.
This patch fixes the minor coding style about indentation and removes the
unused fields from struct gpio_extcon_platform_data.
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Diffstat (limited to 'drivers/extcon')
-rw-r--r-- | drivers/extcon/extcon-gpio.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/drivers/extcon/extcon-gpio.c b/drivers/extcon/extcon-gpio.c index ba927df2fb91..27de6aee890f 100644 --- a/drivers/extcon/extcon-gpio.c +++ b/drivers/extcon/extcon-gpio.c | |||
@@ -1,7 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * drivers/extcon/extcon_gpio.c | 2 | * extcon_gpio.c - Single-state GPIO extcon driver based on extcon class |
3 | * | ||
4 | * Single-state GPIO extcon driver based on extcon class | ||
5 | * | 3 | * |
6 | * Copyright (C) 2008 Google, Inc. | 4 | * Copyright (C) 2008 Google, Inc. |
7 | * Author: Mike Lockwood <lockwood@android.com> | 5 | * Author: Mike Lockwood <lockwood@android.com> |
@@ -17,8 +15,7 @@ | |||
17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
19 | * GNU General Public License for more details. | 17 | * GNU General Public License for more details. |
20 | * | 18 | */ |
21 | */ | ||
22 | 19 | ||
23 | #include <linux/extcon.h> | 20 | #include <linux/extcon.h> |
24 | #include <linux/extcon/extcon-gpio.h> | 21 | #include <linux/extcon/extcon-gpio.h> |
@@ -37,7 +34,7 @@ struct gpio_extcon_data { | |||
37 | struct delayed_work work; | 34 | struct delayed_work work; |
38 | unsigned long debounce_jiffies; | 35 | unsigned long debounce_jiffies; |
39 | 36 | ||
40 | struct gpio_extcon_platform_data *pdata; | 37 | struct gpio_extcon_pdata *pdata; |
41 | }; | 38 | }; |
42 | 39 | ||
43 | static void gpio_extcon_work(struct work_struct *work) | 40 | static void gpio_extcon_work(struct work_struct *work) |
@@ -64,7 +61,7 @@ static irqreturn_t gpio_irq_handler(int irq, void *dev_id) | |||
64 | 61 | ||
65 | static int gpio_extcon_probe(struct platform_device *pdev) | 62 | static int gpio_extcon_probe(struct platform_device *pdev) |
66 | { | 63 | { |
67 | struct gpio_extcon_platform_data *pdata = dev_get_platdata(&pdev->dev); | 64 | struct gpio_extcon_pdata *pdata = dev_get_platdata(&pdev->dev); |
68 | struct gpio_extcon_data *data; | 65 | struct gpio_extcon_data *data; |
69 | int ret; | 66 | int ret; |
70 | 67 | ||