linux-mediatek.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/3] drivers: Add the helper function devm_platform_get_and_ioremap_resource_byname()
@ 2021-09-02  6:36 Cai Huoqing
  2021-09-02  6:37 ` [PATCH v2 1/3] driver core: platform: " Cai Huoqing
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Cai Huoqing @ 2021-09-02  6:36 UTC (permalink / raw)
  To: gregkh, rafael, patrice.chotard, mchehab, ryder.lee,
	jianjun.wang, lorenzo.pieralisi, robh, kw, bhelgaas,
	matthias.bgg
  Cc: linux-kernel, linux-arm-kernel, linux-media, linux-pci,
	linux-mediatek, Cai Huoqing

Since provide the helper function devm_platform_ioremap_resource_byname()
which is wrap platform_get_resource_byname() and devm_ioremap_resource().
But sometimes, many drivers still need to use the resource variables obtained
by platform_get_resource(). In these case, provide this helper function
devm_platform_get_and_ioremap_resource_byname().

devm_platform_get_and_ioremap_resource_byname will be used:
 .../platform/sti/c8sectpfe/c8sectpfe-core.c   |  7 ++---
 drivers/pci/controller/pcie-mediatek-gen3.c   |  5 +---


Cai Huoqing (3):
  driver core: platform: Add the helper function
    devm_platform_get_and_ioremap_resource_byname()
  media: sti/c8sectpfe: Make use of the helper function
    devm_platform_get_and_ioremap_resource_byname()
  PCI: mediatek-gen3: Make use of the helper function
    devm_platform_get_and_ioremap_resource_byname()

 drivers/base/platform.c                       | 30 ++++++++++++++++---
 .../platform/sti/c8sectpfe/c8sectpfe-core.c   |  7 ++---
 drivers/pci/controller/pcie-mediatek-gen3.c   |  5 +---
 include/linux/platform_device.h               |  3 ++
 4 files changed, 32 insertions(+), 13 deletions(-)

-- 
2.25.1


_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-09-02  8:25 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-02  6:36 [PATCH v2 0/3] drivers: Add the helper function devm_platform_get_and_ioremap_resource_byname() Cai Huoqing
2021-09-02  6:37 ` [PATCH v2 1/3] driver core: platform: " Cai Huoqing
2021-09-02  6:52   ` Greg KH
2021-09-02  8:05     ` Cai Huoqing
2021-09-02  8:25       ` Greg KH
2021-09-02  6:37 ` [PATCH v2 2/3] media: sti/c8sectpfe: Make use of " Cai Huoqing
2021-09-02  6:37 ` [PATCH v2 3/3] PCI: mediatek-gen3: " Cai Huoqing

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).