public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] drivers: new helper for ioremapping memory resources
@ 2019-02-15 15:25 Bartosz Golaszewski
  2019-02-15 15:25 ` [PATCH 1/2] drivers: provide devm_platform_ioremap_resource() Bartosz Golaszewski
  2019-02-15 15:25 ` [PATCH 2/2] gpio: davinci: use devm_platform_ioremap_resource() Bartosz Golaszewski
  0 siblings, 2 replies; 6+ messages in thread
From: Bartosz Golaszewski @ 2019-02-15 15:25 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Rafael J . Wysocki, Keerthy, Linus Walleij
  Cc: linux-kernel, linux-gpio, Bartosz Golaszewski

From: Bartosz Golaszewski <bgolaszewski@baylibre.com>

There are currently 1200+ instances of using platform_get_resource()
and devm_ioremap_resource() together in the kernel tree. It's a minor
redundancy, but consolidation is always good.

The first patch in this series adds a wrapper for these two calls and
the second uses it in a driver I could test.

If accepted I can prepare a script that'll apply this tree-wide.

Bartosz Golaszewski (2):
  drivers: provide devm_platform_ioremap_resource()
  gpio: davinci: use devm_platform_ioremap_resource()

 drivers/base/platform.c         | 18 ++++++++++++++++++
 drivers/gpio/gpio-davinci.c     |  4 +---
 include/linux/platform_device.h |  3 +++
 3 files changed, 22 insertions(+), 3 deletions(-)

-- 
2.20.1


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

end of thread, other threads:[~2019-02-20 11:05 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-02-15 15:25 [PATCH 0/2] drivers: new helper for ioremapping memory resources Bartosz Golaszewski
2019-02-15 15:25 ` [PATCH 1/2] drivers: provide devm_platform_ioremap_resource() Bartosz Golaszewski
2019-02-20  9:57   ` Linus Walleij
2019-02-20 11:05     ` Bartosz Golaszewski
2019-02-20 10:34   ` Greg Kroah-Hartman
2019-02-15 15:25 ` [PATCH 2/2] gpio: davinci: use devm_platform_ioremap_resource() Bartosz Golaszewski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox