regmap: Correct comparison in regmap_cached
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Mon, 12 Feb 2018 18:15:44 +0000 (18:15 +0000)
committerMark Brown <broonie@kernel.org>
Tue, 13 Feb 2018 12:26:32 +0000 (12:26 +0000)
commit71df179363a5a733a8932e9afb869760d7559383
tree6aaf78b4dcbf358eb58daeaf4e9f1d96b9eda63d
parent7928b2cbe55b2a410a0f5c1f154610059c57b1b2
regmap: Correct comparison in regmap_cached

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: 1ea975cf1ef5 ("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>
drivers/base/regmap/regmap.c