]> git.dujemihanovic.xyz Git - u-boot.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)
commit97d8a6970a3da5856633f2a705f0687fca4af9a5
treeb16afc997aa314bb56fa0487e32c0b4365e1ef55
parentffb22f6b847d21b30831c91294ec21d6a5e80ed4
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