projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
63808bb
)
pwm: ntxec: Drop a write-only variable from driver data
author
Uwe Kleine-König
<u.kleine-koenig@pengutronix.de>
Tue, 18 Jul 2023 15:23:27 +0000
(17:23 +0200)
committer
Thierry 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
patch
|
blob
|
history
diff --git
a/drivers/pwm/pwm-ntxec.c
b/drivers/pwm/pwm-ntxec.c
index
ab63b08
..
baf912c
100644
(file)
--- 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;