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)
commit950937624079f8ab78939f1effbe21df8e39d420
tree8743097d61cd4c28a7dc48e581f38e8249897206
parent5b394b2ddf0347bef56e50c69a58773c94343ff3
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