[PATCH v1 9/9] extcon: extcon-ptn5150: Remove unused variable and extra space
From: Ramuthevar,Vadivel MuruganX
Date: Tue Aug 18 2020 - 02:58:09 EST
From: Ramuthevar Vadivel Murugan <vadivel.muruganx.ramuthevar@xxxxxxxxxxxxxxx>
Remove the unused variable and extra space.
Signed-off-by: Ramuthevar Vadivel Murugan <vadivel.muruganx.ramuthevar@xxxxxxxxxxxxxxx>
---
drivers/extcon/extcon-ptn5150.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/drivers/extcon/extcon-ptn5150.c b/drivers/extcon/extcon-ptn5150.c
index 140994ac43ed..a7544ab058c0 100644
--- a/drivers/extcon/extcon-ptn5150.c
+++ b/drivers/extcon/extcon-ptn5150.c
@@ -50,7 +50,6 @@ enum ptn5150_reg {
struct ptn5150_info {
struct device *dev;
struct extcon_dev *edev;
- struct i2c_client *i2c;
struct regmap *regmap;
struct gpio_desc *int_gpiod;
struct gpio_desc *vbus_gpiod;
@@ -201,7 +200,6 @@ static void ptn5150_irq_work(struct work_struct *work)
mutex_unlock(&info->mutex);
}
-
static irqreturn_t ptn5150_irq_handler(int irq, void *data)
{
struct ptn5150_info *info = data;
@@ -264,7 +262,6 @@ static int ptn5150_i2c_probe(struct i2c_client *i2c,
i2c_set_clientdata(i2c, info);
info->dev = &i2c->dev;
- info->i2c = i2c;
info->int_gpiod = devm_gpiod_get(&i2c->dev, "int", GPIOD_IN);
if (IS_ERR(info->int_gpiod)) {
dev_err(dev, "failed to get INT GPIO\n");
--
2.11.0