]> git.ipfire.org Git - thirdparty/linux.git/commit
regcache: Define iterator inside for-loop and align their types
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 2 Mar 2026 09:56:56 +0000 (10:56 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 2 Mar 2026 14:51:04 +0000 (14:51 +0000)
commit8e29bc88e11928926fd97fc9acd58b8afa38de9d
treec0b6c79eef3edc78c974c5fc749274c7da61f582
parent37983fad7f3ef296fa0504c8e945987459dc5487
regcache: Define iterator inside for-loop and align their types

Some of the iterators may be defined inside the respective for-loop
reducing the scope and potential risk of their misuse. While at it,
align their types based on the type of the upper or lower limits.

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