regmap: make LZO cache optional
authorJonas Gorski <jonas.gorski@gmail.com>
Fri, 2 Jun 2017 13:15:37 +0000 (15:15 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 6 Jun 2017 18:46:57 +0000 (19:46 +0100)
commit34a730aa74c7c743f4ca9635e0d0b2479d6ed53c
treec1f027c89c567e4c8a50ed48a6c3a3fd841f361a
parent2ea659a9ef488125eb46da6eb571de5eae5c43f6
regmap: make LZO cache optional

Commit 2cbbb579bcbe3 ("regmap: Add the LZO cache support") added support
for LZO compression in regcache, but there were never any users added
afterwards. Since LZO support itself has its own size, it currently is
rather a deoptimization.

So make it optional by introducing a symbol that can be selected by
drivers wanting to make use of it.

Saves e.g. ~46 kB on MIPS (size of LZO support + regcache LZO code).

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/base/regmap/Kconfig
drivers/base/regmap/Makefile
drivers/base/regmap/regcache.c