drivers: provide devm_platform_ioremap_resource_byname()
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Tue, 22 Oct 2019 08:43:16 +0000 (10:43 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 5 Nov 2019 17:33:13 +0000 (18:33 +0100)
commitc9c8641d3ebd79274af75f7df3e6a9c6cc8a66e9
treed14690c74beef6a0d8a9a4e15700791abee97b0f
parent444b0111f3bc8f3b2bc83dc15f85123034a79bc2
drivers: provide devm_platform_ioremap_resource_byname()

Provide a variant of devm_platform_ioremap_resource() that allows to
lookup resources from platform devices by name rather than by index.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20191022084318.22256-7-brgl@bgdev.pl
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/driver-api/driver-model/devres.rst
drivers/base/platform.c
include/linux/platform_device.h