]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
regcache: Move count check and cache_bypass assignment to the caller
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 5 Mar 2026 08:53:00 +0000 (09:53 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 5 Mar 2026 15:22:59 +0000 (15:22 +0000)
commit8e2d279724944f788edc633e4888107eae666a37
treecc524aefcec6c87f69c0f4658e4cd676b889b620
parent9891b52ba12e9d5fed5901b6b5f6e0cdcd424390
regcache: Move count check and cache_bypass assignment to the caller

Make regcache_count_cacheable_registers() just a counting routine
without any side effects by moving count check and cache_bypass
assignment to the caller.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://patch.msgid.link/20260305085449.3184020-2-andriy.shevchenko@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/base/regmap/regcache.c