Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 1767da9e authored by Ionut Nicu's avatar Ionut Nicu Committed by Mark Brown
Browse files

regmap: fix regcache_reg_present() for empty cache



In the initial case when no reg_defaults values are
provided and no register value was added to the cache
yet, the cache_present bitmap is NULL. If this function
is invoked for any register it should return false
(i.e. the register is not cached) instead of true.

Signed-off-by: default avatarIonut Nicu <ioan.nicu.ext@nsn.com>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent c095ba72
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment