]> git.baikalelectronics.ru Git - uboot.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)
commit1184b318b5d433932d6ffec1164aca062ce10e22
treec47b83505480d280dddb4b2ad2401df7268b11f8
parent63c18abe18268ef668410bb4b753087e39706c9e
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