* [PATCH] Input: sun4i-lradc-keys - Use devm_platform_ioremap_resource()
@ 2023-02-17 2:36 ye.xingchen
2023-02-21 18:25 ` Jernej Škrabec
2023-02-21 19:34 ` Dmitry Torokhov
0 siblings, 2 replies; 3+ messages in thread
From: ye.xingchen @ 2023-02-17 2:36 UTC (permalink / raw)
To: dmitry.torokhov
Cc: hdegoede, wens, jernej.skrabec, samuel, linux-input,
linux-arm-kernel, linux-sunxi, linux-kernel
From: Ye Xingchen <ye.xingchen@zte.com.cn>
Convert platform_get_resource(), devm_ioremap_resource() to a single
call to Use devm_platform_ioremap_resource(), as this is exactly
what this function does.
Signed-off-by: Ye Xingchen <ye.xingchen@zte.com.cn>
---
drivers/input/keyboard/sun4i-lradc-keys.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/input/keyboard/sun4i-lradc-keys.c b/drivers/input/keyboard/sun4i-lradc-keys.c
index 15c15c0958b0..95d927cc8b7e 100644
--- a/drivers/input/keyboard/sun4i-lradc-keys.c
+++ b/drivers/input/keyboard/sun4i-lradc-keys.c
@@ -307,8 +307,7 @@ static int sun4i_lradc_probe(struct platform_device *pdev)
input_set_drvdata(lradc->input, lradc);
- lradc->base = devm_ioremap_resource(dev,
- platform_get_resource(pdev, IORESOURCE_MEM, 0));
+ lradc->base = devm_platform_ioremap_resource(pdev, 0);
if (IS_ERR(lradc->base))
return PTR_ERR(lradc->base);
--
2.25.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] Input: sun4i-lradc-keys - Use devm_platform_ioremap_resource()
2023-02-17 2:36 [PATCH] Input: sun4i-lradc-keys - Use devm_platform_ioremap_resource() ye.xingchen
@ 2023-02-21 18:25 ` Jernej Škrabec
2023-02-21 19:34 ` Dmitry Torokhov
1 sibling, 0 replies; 3+ messages in thread
From: Jernej Škrabec @ 2023-02-21 18:25 UTC (permalink / raw)
To: dmitry.torokhov, ye.xingchen
Cc: hdegoede, wens, samuel, linux-input, linux-arm-kernel,
linux-sunxi, linux-kernel
Dne petek, 17. februar 2023 ob 03:36:37 CET je ye.xingchen@zte.com.cn
napisal(a):
> From: Ye Xingchen <ye.xingchen@zte.com.cn>
>
> Convert platform_get_resource(), devm_ioremap_resource() to a single
> call to Use devm_platform_ioremap_resource(), as this is exactly
> what this function does.
>
> Signed-off-by: Ye Xingchen <ye.xingchen@zte.com.cn>
Acked-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Best regards,
Jernej
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] Input: sun4i-lradc-keys - Use devm_platform_ioremap_resource()
2023-02-17 2:36 [PATCH] Input: sun4i-lradc-keys - Use devm_platform_ioremap_resource() ye.xingchen
2023-02-21 18:25 ` Jernej Škrabec
@ 2023-02-21 19:34 ` Dmitry Torokhov
1 sibling, 0 replies; 3+ messages in thread
From: Dmitry Torokhov @ 2023-02-21 19:34 UTC (permalink / raw)
To: ye.xingchen
Cc: hdegoede, wens, jernej.skrabec, samuel, linux-input,
linux-arm-kernel, linux-sunxi, linux-kernel
On Fri, Feb 17, 2023 at 10:36:37AM +0800, ye.xingchen@zte.com.cn wrote:
> From: Ye Xingchen <ye.xingchen@zte.com.cn>
>
> Convert platform_get_resource(), devm_ioremap_resource() to a single
> call to Use devm_platform_ioremap_resource(), as this is exactly
> what this function does.
>
> Signed-off-by: Ye Xingchen <ye.xingchen@zte.com.cn>
Applied, thank you.
--
Dmitry
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-02-21 19:34 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-17 2:36 [PATCH] Input: sun4i-lradc-keys - Use devm_platform_ioremap_resource() ye.xingchen
2023-02-21 18:25 ` Jernej Škrabec
2023-02-21 19:34 ` Dmitry Torokhov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).