]> git.baikalelectronics.ru Git - uboot.git/commit
regmap: zero out the regmap on allocation
authorPratyush Yadav <p.yadav@ti.com>
Thu, 24 Sep 2020 04:34:11 +0000 (10:04 +0530)
committerTom Rini <trini@konsulko.com>
Wed, 30 Sep 2020 15:55:22 +0000 (11:55 -0400)
commit9f1a5cbcbfb9403bbe41c8e15731f58890dcb869
treeb16afc997aa314bb56fa0487e32c0b4365e1ef55
parent1184b318b5d433932d6ffec1164aca062ce10e22
regmap: zero out the regmap on allocation

Some fields will be introduced in the regmap structure that should be
set to 0 by default. So, once we allocate a regmap, make sure it is
zeroed out to avoid unexpected defaults for those values.

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