From: Uwe Kleine-König Date: Tue, 18 Jul 2023 15:23:27 +0000 (+0200) Subject: pwm: ntxec: Drop a write-only variable from driver data X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=250b4ca0c9d611c61e12a8eb2d24e69f9058de2b;p=linux.git 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 Signed-off-by: Thierry Reding --- diff --git a/drivers/pwm/pwm-ntxec.c b/drivers/pwm/pwm-ntxec.c index ab63b081df531..baf912c5bf0f0 100644 --- a/drivers/pwm/pwm-ntxec.c +++ b/drivers/pwm/pwm-ntxec.c @@ -24,7 +24,6 @@ #include 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;