diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2023-07-18 17:23:27 +0200 |
---|---|---|
committer | Thierry Reding <thierry.reding@gmail.com> | 2023-07-28 09:38:29 +0200 |
commit | 250b4ca0c9d611c61e12a8eb2d24e69f9058de2b (patch) | |
tree | 1dd911ad3f6afac5d20cf3889df471e4e44954b9 /drivers/pwm | |
parent | 63808bbb3e226b0160f61723614e612fbf51541c (diff) | |
download | lwn-250b4ca0c9d611c61e12a8eb2d24e69f9058de2b.tar.gz lwn-250b4ca0c9d611c61e12a8eb2d24e69f9058de2b.zip |
pwm: ntxec: Drop a write-only variable from driver data
.dev is assigned in .probe() and never read. So it serves no purpose and
can be removed.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'drivers/pwm')
-rw-r--r-- | drivers/pwm/pwm-ntxec.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/pwm/pwm-ntxec.c b/drivers/pwm/pwm-ntxec.c index ab63b081df53..baf912c5bf0f 100644 --- a/drivers/pwm/pwm-ntxec.c +++ b/drivers/pwm/pwm-ntxec.c @@ -24,7 +24,6 @@ #include <linux/types.h> struct ntxec_pwm { - struct device *dev; struct ntxec *ec; struct pwm_chip chip; }; @@ -148,7 +147,6 @@ static int ntxec_pwm_probe(struct platform_device *pdev) return -ENOMEM; priv->ec = ec; - priv->dev = &pdev->dev; chip = &priv->chip; chip->dev = &pdev->dev; |