]> git.baikalelectronics.ru Git - kernel.git/commit
regmap: use less #ifdef for LOG_DEVICE
authorBen Dooks <ben.dooks@codethink.co.uk>
Tue, 2 Oct 2018 10:42:05 +0000 (11:42 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 19 Oct 2018 12:22:16 +0000 (13:22 +0100)
commit3ce14006f32f610ee671a5d7a1a99724b54294b5
tree8743097d61cd4c28a7dc48e581f38e8249897206
parentf030a7bb7b1f7de16c1c716a587185e209e25800
regmap: use less #ifdef for LOG_DEVICE

Move the checking of the LOG_DEVICE into a function to reduce the
number of #ifdefs and  ensure more of the code gets compiled/checked,
and make it easier to change this for internal debugging purposes
(such as checking >1 device).

Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/base/regmap/regmap.c