mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 02:21:52 +09:00
regmap: Correct comparison in regmap_cached
[ Upstream commit71df179363] The cache pointer points to the actual memory used by the cache, as the comparison here is looking for the type of the cache it should check against cache_type. Fixes:1ea975cf1e("regmap: Add a function to check if a regmap register is cached") Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com> Signed-off-by: Mark Brown <broonie@kernel.org> Signed-off-by: Sasha Levin <alexander.levin@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
253aa8296a
commit
be5f9b150b
@@ -98,7 +98,7 @@ bool regmap_cached(struct regmap *map, unsigned int reg)
|
||||
int ret;
|
||||
unsigned int val;
|
||||
|
||||
if (map->cache == REGCACHE_NONE)
|
||||
if (map->cache_type == REGCACHE_NONE)
|
||||
return false;
|
||||
|
||||
if (!map->cache_ops)
|
||||
|
||||
Reference in New Issue
Block a user