* [PATCH] i2c: brcmstb: use devm_platform_ioremap_resource_byname()
@ 2023-03-21 11:44 ye.xingchen
2023-03-21 16:27 ` Florian Fainelli
2023-03-29 19:20 ` Wolfram Sang
0 siblings, 2 replies; 3+ messages in thread
From: ye.xingchen @ 2023-03-21 11:44 UTC (permalink / raw)
To: kdasu.kdev
Cc: bcm-kernel-feedback-list, f.fainelli, linux-i2c,
linux-arm-kernel, linux-kernel
From: Ye Xingchen <ye.xingchen@zte.com.cn>
Convert platform_get_resource_byname(),devm_ioremap_resource() to a single
call to devm_platform_ioremap_resource_byname(), as this is exactly what
this function does.
Signed-off-by: Ye Xingchen <ye.xingchen@zte.com.cn>
---
drivers/i2c/busses/i2c-brcmstb.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/i2c/busses/i2c-brcmstb.c b/drivers/i2c/busses/i2c-brcmstb.c
index 69383be47905..ef942714642a 100644
--- a/drivers/i2c/busses/i2c-brcmstb.c
+++ b/drivers/i2c/busses/i2c-brcmstb.c
@@ -575,12 +575,10 @@ static void brcmstb_i2c_set_bsc_reg_defaults(struct brcmstb_i2c_dev *dev)
static int bcm2711_release_bsc(struct brcmstb_i2c_dev *dev)
{
struct platform_device *pdev = to_platform_device(dev->device);
- struct resource *iomem;
void __iomem *autoi2c;
/* Map hardware registers */
- iomem = platform_get_resource_byname(pdev, IORESOURCE_MEM, "auto-i2c");
- autoi2c = devm_ioremap_resource(&pdev->dev, iomem);
+ autoi2c = devm_platform_ioremap_resource_byname(pdev, "auto-i2c");
if (IS_ERR(autoi2c))
return PTR_ERR(autoi2c);
--
2.25.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] i2c: brcmstb: use devm_platform_ioremap_resource_byname()
2023-03-21 11:44 [PATCH] i2c: brcmstb: use devm_platform_ioremap_resource_byname() ye.xingchen
@ 2023-03-21 16:27 ` Florian Fainelli
2023-03-29 19:20 ` Wolfram Sang
1 sibling, 0 replies; 3+ messages in thread
From: Florian Fainelli @ 2023-03-21 16:27 UTC (permalink / raw)
To: ye.xingchen, kdasu.kdev
Cc: bcm-kernel-feedback-list, linux-i2c, linux-arm-kernel, linux-kernel
On 3/21/23 04:44, ye.xingchen@zte.com.cn wrote:
> From: Ye Xingchen <ye.xingchen@zte.com.cn>
>
> Convert platform_get_resource_byname(),devm_ioremap_resource() to a single
> call to devm_platform_ioremap_resource_byname(), as this is exactly what
> this function does.
>
> Signed-off-by: Ye Xingchen <ye.xingchen@zte.com.cn>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
--
Florian
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] i2c: brcmstb: use devm_platform_ioremap_resource_byname()
2023-03-21 11:44 [PATCH] i2c: brcmstb: use devm_platform_ioremap_resource_byname() ye.xingchen
2023-03-21 16:27 ` Florian Fainelli
@ 2023-03-29 19:20 ` Wolfram Sang
1 sibling, 0 replies; 3+ messages in thread
From: Wolfram Sang @ 2023-03-29 19:20 UTC (permalink / raw)
To: ye.xingchen
Cc: kdasu.kdev, bcm-kernel-feedback-list, f.fainelli, linux-i2c,
linux-arm-kernel, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 393 bytes --]
On Tue, Mar 21, 2023 at 07:44:06PM +0800, ye.xingchen@zte.com.cn wrote:
> From: Ye Xingchen <ye.xingchen@zte.com.cn>
>
> Convert platform_get_resource_byname(),devm_ioremap_resource() to a single
> call to devm_platform_ioremap_resource_byname(), as this is exactly what
> this function does.
>
> Signed-off-by: Ye Xingchen <ye.xingchen@zte.com.cn>
Applied to for-next, thanks!
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-03-29 19:20 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-21 11:44 [PATCH] i2c: brcmstb: use devm_platform_ioremap_resource_byname() ye.xingchen
2023-03-21 16:27 ` Florian Fainelli
2023-03-29 19:20 ` Wolfram Sang
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).