mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
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 <[email protected]>
This commit is contained in:
parent
ce6f749605
commit
6ba129974a
2 changed files with 8 additions and 25 deletions
|
|
@ -1,7 +1,5 @@
|
|||
/*
|
||||
* drivers/extcon/extcon_gpio.c
|
||||
*
|
||||
* Single-state GPIO extcon driver based on extcon class
|
||||
* extcon_gpio.c - Single-state GPIO extcon driver based on extcon class
|
||||
*
|
||||
* Copyright (C) 2008 Google, Inc.
|
||||
* Author: Mike Lockwood <lockwood@android.com>
|
||||
|
|
@ -17,8 +15,7 @@
|
|||
* 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 <linux/extcon.h>
|
||||
#include <linux/extcon/extcon-gpio.h>
|
||||
|
|
@ -37,7 +34,7 @@ struct gpio_extcon_data {
|
|||
struct delayed_work work;
|
||||
unsigned long debounce_jiffies;
|
||||
|
||||
struct gpio_extcon_platform_data *pdata;
|
||||
struct gpio_extcon_pdata *pdata;
|
||||
};
|
||||
|
||||
static void gpio_extcon_work(struct work_struct *work)
|
||||
|
|
@ -64,7 +61,7 @@ static irqreturn_t gpio_irq_handler(int irq, void *dev_id)
|
|||
|
||||
static int gpio_extcon_probe(struct platform_device *pdev)
|
||||
{
|
||||
struct gpio_extcon_platform_data *pdata = dev_get_platdata(&pdev->dev);
|
||||
struct gpio_extcon_pdata *pdata = dev_get_platdata(&pdev->dev);
|
||||
struct gpio_extcon_data *data;
|
||||
int ret;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue