]> git.baikalelectronics.ru Git - kernel.git/commit
regmap: fix regcache_reg_present() for empty cache
authorIonut Nicu <ioan.nicu.ext@nsn.com>
Fri, 9 Aug 2013 10:09:15 +0000 (12:09 +0200)
committerMark Brown <broonie@linaro.org>
Fri, 9 Aug 2013 11:47:29 +0000 (12:47 +0100)
commita6259a217e450ae6e344cdc57145524d52203d34
treee02498d7cebb9e5b1ba71fdfe36af52dec9fff18
parentd33c3cb0da597300ed26282fd9cb264be06085c0
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: Ionut Nicu <ioan.nicu.ext@nsn.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/base/regmap/internal.h