Skip to contentSkip to conversation

regmap: Rename LZO cache type to compressed

PATCH New Mark Brown 1 participant 1 message Nov 2, 2011

Subsystems (2)
lore
Share & tools
lore

Mark Brown

author
#0 lore raw

PATCH 1/1 regmap: Rename LZO cache type to compressed

Users probably don't care about the specific compression algorithm and we might want to use a different algorithm (snappy being the one I'm thinking of right now) so update the public interface to have a more generic name.

---
 drivers/base/regmap/regcache-lzo.c |    2 +-
 include/linux/regmap.h             |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/base/regmap/regcache-lzo.c +1 -1
index 0075690..226ffc1 100644
@@ -354,7 +354,7 @@ static int regcache_lzo_sync(struct regmap *map)
 }
 
 struct regcache_ops regcache_lzo_ops = {
-	.type = REGCACHE_LZO,
+	.type = REGCACHE_COMPRESSED,
 	.name = "lzo",
 	.init = regcache_lzo_init,
 	.exit = regcache_lzo_exit,
include/linux/regmap.h +1 -1
index 1198c9a..1e4ec2b 100644
@@ -25,7 +25,7 @@ enum regcache_type {
 	REGCACHE_NONE,
 	REGCACHE_INDEXED,
 	REGCACHE_RBTREE,
-	REGCACHE_LZO
+	REGCACHE_COMPRESSED
 };
 
 /**
Signature · 1 line
1.7.7.1