]> git.dujemihanovic.xyz Git - u-boot.git/commit
regmap: Add devm_regmap_init()
authorJean-Jacques Hiblot <jjhiblot@ti.com>
Thu, 24 Sep 2020 04:34:10 +0000 (10:04 +0530)
committerTom Rini <trini@konsulko.com>
Wed, 30 Sep 2020 15:55:22 +0000 (11:55 -0400)
commitffb22f6b847d21b30831c91294ec21d6a5e80ed4
treec47b83505480d280dddb4b2ad2401df7268b11f8
parent88e6a60e4aeed2fec059e513572d191ce9387b07
regmap: Add devm_regmap_init()

Most of new linux drivers are using managed-API to allocate resources. To
ease porting drivers from linux to U-Boot, introduce devm_regmap_init() as
a managed API to get a regmap from the device tree.

Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Pratyush Yadav <p.yadav@ti.com>
drivers/core/regmap.c
include/regmap.h