lkml.org 
[lkml]   [2020]   [Jan]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH v3 4/8] power: supply: axp20x_usb_power: Remove unused device_node
Date
This member of struct axp20x_usb_power is not used anywhere.
Remove it.

Reviewed-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Samuel Holland <samuel@sholland.org>
---
drivers/power/supply/axp20x_usb_power.c | 2 --
1 file changed, 2 deletions(-)

diff --git a/drivers/power/supply/axp20x_usb_power.c b/drivers/power/supply/axp20x_usb_power.c
index dc4c316eff81..2573de2a0adc 100644
--- a/drivers/power/supply/axp20x_usb_power.c
+++ b/drivers/power/supply/axp20x_usb_power.c
@@ -55,7 +55,6 @@
#define DEBOUNCE_TIME msecs_to_jiffies(50)

struct axp20x_usb_power {
- struct device_node *np;
struct regmap *regmap;
struct power_supply *supply;
enum axp20x_variants axp20x_id;
@@ -463,7 +462,6 @@ static int axp20x_usb_power_probe(struct platform_device *pdev)
power->axp20x_id = (enum axp20x_variants)of_device_get_match_data(
&pdev->dev);

- power->np = pdev->dev.of_node;
power->regmap = axp20x->regmap;

if (power->axp20x_id == AXP202_ID) {
--
2.23.0
\
 
 \ /
  Last update: 2020-01-13 04:53    [W:0.075 / U:0.044 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site