Re: [U-Boot] [PATCH v1 2/5] regmap: Add devm_regmap_init()

2019-10-29 Thread Simon Glass
Hi Jean-Jacques, On Fri, 27 Sep 2019 at 07:22, Jean-Jacques Hiblot wrote: > > 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 U-Boot Please always spell it that way. > a managed API to get a

[U-Boot] [PATCH v1 2/5] regmap: Add devm_regmap_init()

2019-09-27 Thread Jean-Jacques Hiblot
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 --- drivers/core/regmap.c | 26 ++