aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorGuenter Roeck <[email protected]>2019-04-02 12:01:53 -0700
committerWim Van Sebroeck <[email protected]>2019-05-05 21:02:12 +0200
commit0f0a6a285ec0c7b0ac0b532f87a784605322f9ce (patch)
tree7393add5d8e0458dface43ed903b9cb002afed75 /tools/perf/scripts/python/bin
parent24b8225619cb18491c3a8689cf533a58547b5f5f (diff)
watchdog: Convert to use devm_platform_ioremap_resource
Use devm_platform_ioremap_resource to reduce source code size, improve readability, and reduce the likelyhood of bugs. The conversion was done automatically with coccinelle using the following semantic patch. @r@ identifier res, pdev; expression a; expression index; expression e; @@ <+... - res = platform_get_resource(pdev, IORESOURCE_MEM, index); - a = devm_ioremap_resource(e, res); + a = devm_platform_ioremap_resource(pdev, index); ...+> @depends on r@ identifier r.res; @@ - struct resource *res; ... when != res @@ identifier res, pdev; expression index; expression a; @@ - struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, index); - a = devm_ioremap_resource(&pdev->dev, res); + a = devm_platform_ioremap_resource(pdev, index); Cc: Joel Stanley <[email protected]> Cc: Nicolas Ferre <[email protected]> Cc: Alexandre Belloni <[email protected]> Cc: Florian Fainelli <[email protected]> Cc: Linus Walleij <[email protected]> Cc: Baruch Siach <[email protected]> Cc: Keguang Zhang <[email protected]> Cc: Vladimir Zapolskiy <[email protected]> Cc: Kevin Hilman <[email protected]> Cc: Matthias Brugger <[email protected]> Cc: Avi Fishman <[email protected]> Cc: Nancy Yuen <[email protected]> Cc: Brendan Higgins <[email protected]> Cc: Wan ZongShun <[email protected]> Cc: Michal Simek <[email protected]> Cc: Sylvain Lemieux <[email protected]> Cc: Kukjin Kim <[email protected]> Cc: Barry Song <[email protected]> Cc: Orson Zhai <[email protected]> Cc: Patrice Chotard <[email protected]> Cc: Maxime Coquelin <[email protected]> Cc: Maxime Ripard <[email protected]> Cc: Chen-Yu Tsai <[email protected]> Cc: Marc Gonzalez <[email protected]> Cc: Thierry Reding <[email protected]> Cc: Shawn Guo <[email protected]> Signed-off-by: Guenter Roeck <[email protected]> Acked-by: Alexandre Belloni <[email protected]> Tested-by: Alexandre Belloni <[email protected]> Acked-by: Joel Stanley <[email protected]> Reviewed-by: Linus Walleij <[email protected]> Acked-by: Maxime Ripard <[email protected]> Acked-by: Michal Simek <[email protected]> (cadence/xilinx wdts) Acked-by: Thierry Reding <[email protected]> Reviewed-by: Florian Fainelli <[email protected]> Acked-by: Patrice Chotard <[email protected]> Acked-by: Vladimir Zapolskiy <[email protected]> Signed-off-by: Guenter Roeck <[email protected]> Signed-off-by: Wim Van Sebroeck <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions