Blame patches.drivers/regmap-Correct-comparison-in-regmap_cached
|
Takashi Iwai |
d1d3af |
From 71df179363a5a733a8932e9afb869760d7559383 Mon Sep 17 00:00:00 2001
|
|
Takashi Iwai |
d1d3af |
From: Charles Keepax <ckeepax@opensource.cirrus.com>
|
|
Takashi Iwai |
d1d3af |
Date: Mon, 12 Feb 2018 18:15:44 +0000
|
|
Takashi Iwai |
d1d3af |
Subject: [PATCH] regmap: Correct comparison in regmap_cached
|
|
Takashi Iwai |
d1d3af |
Git-commit: 71df179363a5a733a8932e9afb869760d7559383
|
|
Takashi Iwai |
d1d3af |
Patch-mainline: v4.17-rc1
|
|
Takashi Iwai |
d1d3af |
References: bsc#1051510
|
|
Takashi Iwai |
d1d3af |
|
|
Takashi Iwai |
d1d3af |
The cache pointer points to the actual memory used by the cache, as the
|
|
Takashi Iwai |
d1d3af |
comparison here is looking for the type of the cache it should check
|
|
Takashi Iwai |
d1d3af |
against cache_type.
|
|
Takashi Iwai |
d1d3af |
|
|
Takashi Iwai |
d1d3af |
Fixes: 1ea975cf1ef5 ("regmap: Add a function to check if a regmap register is cached")
|
|
Takashi Iwai |
d1d3af |
Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
|
|
Takashi Iwai |
d1d3af |
Signed-off-by: Mark Brown <broonie@kernel.org>
|
|
Takashi Iwai |
d1d3af |
Acked-by: Takashi Iwai <tiwai@suse.de>
|
|
Takashi Iwai |
d1d3af |
|
|
Takashi Iwai |
d1d3af |
---
|
|
Takashi Iwai |
d1d3af |
drivers/base/regmap/regmap.c | 2 +-
|
|
Takashi Iwai |
d1d3af |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
Takashi Iwai |
d1d3af |
|
|
Takashi Iwai |
d1d3af |
--- a/drivers/base/regmap/regmap.c
|
|
Takashi Iwai |
d1d3af |
+++ b/drivers/base/regmap/regmap.c
|
|
Takashi Iwai |
d1d3af |
@@ -98,7 +98,7 @@ bool regmap_cached(struct regmap *map, u
|
|
Takashi Iwai |
d1d3af |
int ret;
|
|
Takashi Iwai |
d1d3af |
unsigned int val;
|
|
Takashi Iwai |
d1d3af |
|
|
Takashi Iwai |
d1d3af |
- if (map->cache == REGCACHE_NONE)
|
|
Takashi Iwai |
d1d3af |
+ if (map->cache_type == REGCACHE_NONE)
|
|
Takashi Iwai |
d1d3af |
return false;
|
|
Takashi Iwai |
d1d3af |
|
|
Takashi Iwai |
d1d3af |
if (!map->cache_ops)
|