Skip to contentSkip to conversation

thermal/drivers/qcom-spmi-temp-alarm: drop unused driver data

PATCH Applied Johan Hovold 4 participants 4 messages Feb 28, 2025 – Mar 12, 2025

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 thermal/drivers/qcom-spmi-temp-alarm: drop unused driver data

The platform device driver data has not been used since commit 7a4ca51b7040 ("thermal/drivers/qcom-spmi: Use devm_iio_channel_get") so drop the unnecessary assignment.

---

I noticed this when doing some rework for pm8008 last year that I have yet to finish.

This can go in meanwhile.

Johan

 drivers/thermal/qcom/qcom-spmi-temp-alarm.c | 1 -
 1 file changed, 1 deletion(-)
drivers/thermal/qcom/qcom-spmi-temp-alarm.c +0 -1
index c2d59cbfaea9..a81e7d6e865f 100644
@@ -360,7 +360,6 @@ static int qpnp_tm_probe(struct platform_device *pdev)
 	if (!chip)
 		return -ENOMEM;
 
-	dev_set_drvdata(&pdev->dev, chip);
 	chip->dev = &pdev->dev;
 
 	mutex_init(&chip->lock);
Signature · 1 line
2.45.3
Reviewed-by on v1 1/1
#1 lore raw
Quoted 23 lines · Johan Hovold

The platform device driver data has not been used since commit 7a4ca51b7040 ("thermal/drivers/qcom-spmi: Use devm_iio_channel_get") so drop the unnecessary assignment.

---

I noticed this when doing some rework for pm8008 last year that I have yet to finish.

This can go in meanwhile.

Johan

  drivers/thermal/qcom/qcom-spmi-temp-alarm.c | 1 -
  1 file changed, 1 deletion(-)
drivers/thermal/qcom/qcom-spmi-temp-alarm.c +0 -0
index c2d59cbfaea9..a81e7d6e865f 100644

drivers/thermal/qcom/qcom-spmi-temp-alarm.c static int qpnp_tm_probe(struct platform_device *pdev) · line 365

Quoted 7 lines
drivers/thermal/qcom/qcom-spmi-temp-alarm.c +0 -1
@@ -360,7 +360,6 @@ static int qpnp_tm_probe(struct platform_device *pdev)
  	if (!chip)
  		return -ENOMEM;
 
-	dev_set_drvdata(&pdev->dev, chip);
  	chip->dev = &pdev->dev;
 
  	mutex_init(&chip->lock);
Reviewed-by on v1 1/1
#2 lore raw
In reply to Johan Hovold
Quoted 5 lines · Johan Hovold

The platform device driver data has not been used since commit 7a4ca51b7040 ("thermal/drivers/qcom-spmi: Use devm_iio_channel_get") so drop the unnecessary assignment.

Quoted 10 lines

---

I noticed this when doing some rework for pm8008 last year that I have yet to finish.

This can go in meanwhile.

Johan

Signature · 2 lines
With best wishes
Dmitry
#3 lore raw
In reply to Johan Hovold
Quoted 9 lines · Johan Hovold

The platform device driver data has not been used since commit 7a4ca51b7040 ("thermal/drivers/qcom-spmi: Use devm_iio_channel_get") so drop the unnecessary assignment.

---

I noticed this when doing some rework for pm8008 last year that I have yet to finish.

Applied, thanks

Signature · 5 lines
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs

Follow Linaro:  <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog