]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
regmap: Correct comparison in regmap_cached
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Mon, 12 Feb 2018 18:15:44 +0000 (18:15 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 May 2018 05:50:51 +0000 (07:50 +0200)
commit7a2e11e7ba39325acef7b4a603d185f4a67447f7
tree73ee1ff71ca98bfb1f4a2e2cf546d0d411b3157d
parentf806ed5cfac6bbd23bd223b4b6e3d8dd1f71838a
regmap: Correct comparison in regmap_cached

[ Upstream commit 71df179363a5a733a8932e9afb869760d7559383 ]

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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/regmap/regmap.c