* [PATCH] pwm: mxs: use devm_platform_ioremap_resource() to simplify code
@ 2019-07-18 1:32 Anson.Huang
2019-07-18 3:35 ` Aisheng Dong
0 siblings, 1 reply; 5+ messages in thread
From: Anson.Huang @ 2019-07-18 1:32 UTC (permalink / raw)
To: thierry.reding, shawnguo, s.hauer, kernel, festevam, linux-pwm,
linux-arm-kernel, linux-kernel
Cc: Linux-imx
From: Anson Huang <Anson.Huang@nxp.com>
Use the new helper devm_platform_ioremap_resource() which wraps the
platform_get_resource() and devm_ioremap_resource() together, to
simplify the code.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
---
drivers/pwm/pwm-mxs.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/pwm/pwm-mxs.c b/drivers/pwm/pwm-mxs.c
index 04c0f6b..b14376b 100644
--- a/drivers/pwm/pwm-mxs.c
+++ b/drivers/pwm/pwm-mxs.c
@@ -126,15 +126,13 @@ static int mxs_pwm_probe(struct platform_device *pdev)
{
struct device_node *np = pdev->dev.of_node;
struct mxs_pwm_chip *mxs;
- struct resource *res;
int ret;
mxs = devm_kzalloc(&pdev->dev, sizeof(*mxs), GFP_KERNEL);
if (!mxs)
return -ENOMEM;
- res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
- mxs->base = devm_ioremap_resource(&pdev->dev, res);
+ mxs->base = devm_platform_ioremap_resource(pdev, 0);
if (IS_ERR(mxs->base))
return PTR_ERR(mxs->base);
--
2.7.4
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 5+ messages in thread
* RE: [PATCH] pwm: mxs: use devm_platform_ioremap_resource() to simplify code
2019-07-18 1:32 [PATCH] pwm: mxs: use devm_platform_ioremap_resource() to simplify code Anson.Huang
@ 2019-07-18 3:35 ` Aisheng Dong
2019-08-20 5:56 ` Anson Huang
0 siblings, 1 reply; 5+ messages in thread
From: Aisheng Dong @ 2019-07-18 3:35 UTC (permalink / raw)
To: Anson Huang, thierry.reding, shawnguo, s.hauer, kernel, festevam,
linux-pwm, linux-arm-kernel, linux-kernel
Cc: dl-linux-imx
> From: Anson.Huang@nxp.com <Anson.Huang@nxp.com>
> Sent: Thursday, July 18, 2019 9:32 AM
>
> Use the new helper devm_platform_ioremap_resource() which wraps the
> platform_get_resource() and devm_ioremap_resource() together, to simplify
> the code.
>
> Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Dong Aisheng <aisheng.dong@nxp.com>
Regards
Aisheng
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: [PATCH] pwm: mxs: use devm_platform_ioremap_resource() to simplify code
2019-07-18 3:35 ` Aisheng Dong
@ 2019-08-20 5:56 ` Anson Huang
2019-08-24 0:26 ` Uwe Kleine-König
0 siblings, 1 reply; 5+ messages in thread
From: Anson Huang @ 2019-08-20 5:56 UTC (permalink / raw)
To: Aisheng Dong, thierry.reding, shawnguo, s.hauer, kernel,
festevam, linux-pwm, linux-arm-kernel, linux-kernel
Cc: dl-linux-imx
Gentle ping...
> > From: Anson.Huang@nxp.com <Anson.Huang@nxp.com>
> > Sent: Thursday, July 18, 2019 9:32 AM
> >
> > Use the new helper devm_platform_ioremap_resource() which wraps the
> > platform_get_resource() and devm_ioremap_resource() together, to
> > simplify the code.
> >
> > Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
>
> Reviewed-by: Dong Aisheng <aisheng.dong@nxp.com>
>
> Regards
> Aisheng
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] pwm: mxs: use devm_platform_ioremap_resource() to simplify code
2019-08-20 5:56 ` Anson Huang
@ 2019-08-24 0:26 ` Uwe Kleine-König
2019-09-20 8:49 ` Anson Huang
0 siblings, 1 reply; 5+ messages in thread
From: Uwe Kleine-König @ 2019-08-24 0:26 UTC (permalink / raw)
To: Anson Huang
Cc: Aisheng Dong, linux-pwm, shawnguo, s.hauer, linux-kernel,
thierry.reding, dl-linux-imx, kernel, festevam, linux-arm-kernel
Hello,
On Tue, Aug 20, 2019 at 05:56:40AM +0000, Anson Huang wrote:
> Gentle ping...
My impression[1] is that Thierry collects patches in bulk once or twice
per release cycle. The last two such bulks were between 5.2-rc6 and
5.2-rc7 and in the 5.2 merge window. So given we're at v5.3-rc5 now I
expect some action soon :-)
> > > From: Anson.Huang@nxp.com <Anson.Huang@nxp.com>
> > > Sent: Thursday, July 18, 2019 9:32 AM
> > >
> > > Use the new helper devm_platform_ioremap_resource() which wraps the
> > > platform_get_resource() and devm_ioremap_resource() together, to
> > > simplify the code.
> > >
> > > Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
> >
> > Reviewed-by: Dong Aisheng <aisheng.dong@nxp.com>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Best regards
Uwe
[1] from git log --committer=Thierry --format=%ci drivers/pwm | cut -d\ -f1 | uniq -c
--
Pengutronix e.K. | Uwe Kleine-König |
Industrial Linux Solutions | http://www.pengutronix.de/ |
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: [PATCH] pwm: mxs: use devm_platform_ioremap_resource() to simplify code
2019-08-24 0:26 ` Uwe Kleine-König
@ 2019-09-20 8:49 ` Anson Huang
0 siblings, 0 replies; 5+ messages in thread
From: Anson Huang @ 2019-09-20 8:49 UTC (permalink / raw)
To: Uwe Kleine-König
Cc: Aisheng Dong, linux-pwm, shawnguo, s.hauer, linux-kernel,
thierry.reding, dl-linux-imx, kernel, festevam, linux-arm-kernel
Ping..., 1 month passed, NOT sure what is the latest status.
Anson
> On Tue, Aug 20, 2019 at 05:56:40AM +0000, Anson Huang wrote:
> > Gentle ping...
>
> My impression[1] is that Thierry collects patches in bulk once or twice per
> release cycle. The last two such bulks were between 5.2-rc6 and
> 5.2-rc7 and in the 5.2 merge window. So given we're at v5.3-rc5 now I expect
> some action soon :-)
>
> > > > From: Anson.Huang@nxp.com <Anson.Huang@nxp.com>
> > > > Sent: Thursday, July 18, 2019 9:32 AM
> > > >
> > > > Use the new helper devm_platform_ioremap_resource() which wraps
> > > > the
> > > > platform_get_resource() and devm_ioremap_resource() together, to
> > > > simplify the code.
> > > >
> > > > Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
> > >
> > > Reviewed-by: Dong Aisheng <aisheng.dong@nxp.com>
>
> Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
>
> Best regards
> Uwe
>
> [1] from git log --committer=Thierry --format=%ci drivers/pwm | cut -d\ -f1 |
> uniq -c
> --
> Pengutronix e.K. | Uwe Kleine-König |
> Industrial Linux Solutions |
> https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.p
> engutronix.de%2F&data=02%7C01%7Canson.huang%40nxp.com%7C34
> ed78e5b90642e6173d08d72829bc65%7C686ea1d3bc2b4c6fa92cd99c5c30163
> 5%7C0%7C0%7C637022032026755310&sdata=RM0DjN9B%2FomxSSlGp
> adxX50yYesNjOAFTXaghkxyOCQ%3D&reserved=0 |
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2019-09-20 8:50 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-18 1:32 [PATCH] pwm: mxs: use devm_platform_ioremap_resource() to simplify code Anson.Huang
2019-07-18 3:35 ` Aisheng Dong
2019-08-20 5:56 ` Anson Huang
2019-08-24 0:26 ` Uwe Kleine-König
2019-09-20 8:49 ` Anson Huang
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).