Thread (41 messages) 41 messages, 3 authors, 2022-06-16

Re: [PATCH 16/16] iio: adc: at91-sama5d2_adc: use pm_ptr()

From: Jonathan Cameron <jic23@kernel.org>
Date: 2022-06-11 16:31:45
Also in: linux-devicetree, linux-iio, lkml

On Thu, 9 Jun 2022 11:32:13 +0300
Claudiu Beznea [off-list ref] wrote:
Use pm_ptr() on the assignment of at91_adc_pm_ops to
at91_adc_driver.driver.pm.
Squash this into the previous patch.
quoted hunk ↗ jump to hunk
Signed-off-by: Claudiu Beznea <redacted>
---
 drivers/iio/adc/at91-sama5d2_adc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/iio/adc/at91-sama5d2_adc.c b/drivers/iio/adc/at91-sama5d2_adc.c
index 5d9ad51d0920..221c09532b38 100644
--- a/drivers/iio/adc/at91-sama5d2_adc.c
+++ b/drivers/iio/adc/at91-sama5d2_adc.c
@@ -2647,7 +2647,7 @@ static struct platform_driver at91_adc_driver = {
 	.driver = {
 		.name = "at91-sama5d2_adc",
 		.of_match_table = at91_adc_dt_match,
-		.pm = &at91_adc_pm_ops,
+		.pm = pm_ptr(&at91_adc_pm_ops),
 	},
 };
 module_platform_driver(at91_adc_driver)

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help