]> asedeno.scripts.mit.edu Git - linux.git/commit
regulator: tps65910: check TPS65910_NUM_REGS at build time
authorMichał Mirosław <mirq-linux@rere.qmqm.pl>
Tue, 13 Jun 2017 14:41:56 +0000 (16:41 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 13 Jun 2017 17:46:48 +0000 (18:46 +0100)
commitfe953904f3463609a9a671f68148d8532f2a5d9f
tree216b6bed271058c459131a6f96c0c7ef07d022a7
parent2ea659a9ef488125eb46da6eb571de5eae5c43f6
regulator: tps65910: check TPS65910_NUM_REGS at build time

Check TPS65910_NUM_REGS at build time instead of silently registering
not all regulators at runtime.

Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/tps65910-regulator.c