summaryrefslogtreecommitdiff
path: root/drivers/pwm
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2023-07-18 18:23:27 +0300
committerThierry Reding <thierry.reding@gmail.com>2023-07-28 10:38:29 +0300
commit250b4ca0c9d611c61e12a8eb2d24e69f9058de2b (patch)
tree1dd911ad3f6afac5d20cf3889df471e4e44954b9 /drivers/pwm
parent63808bbb3e226b0160f61723614e612fbf51541c (diff)
downloadlinux-250b4ca0c9d611c61e12a8eb2d24e69f9058de2b.tar.xz
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.c2
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;