pwm: ntxec: Drop a write-only variable from driver data
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Tue, 18 Jul 2023 15:23:27 +0000 (17:23 +0200)
committerThierry Reding <thierry.reding@gmail.com>
Fri, 28 Jul 2023 07:38:29 +0000 (09:38 +0200)
.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>
drivers/pwm/pwm-ntxec.c

index ab63b08..baf912c 100644 (file)
@@ -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;