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>
This commit is contained in:
Uwe Kleine-König 2023-07-18 17:23:27 +02:00 committed by Thierry Reding
parent 63808bbb3e
commit 250b4ca0c9

View 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;