regulator: core: Limit regulators coupling to a single couple
authorDmitry Osipenko <digetx@gmail.com>
Fri, 5 Oct 2018 15:36:33 +0000 (18:36 +0300)
committerMark Brown <broonie@kernel.org>
Thu, 8 Nov 2018 16:20:47 +0000 (16:20 +0000)
Device tree binding was changed in a way that now max-spread values must
be defied per regulator pair. Limit number of pairs in order to adapt to
the new binding without changing regulators code.

Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
include/linux/regulator/driver.h

index a9c0301..a05d37d 100644 (file)
@@ -15,7 +15,7 @@
 #ifndef __LINUX_REGULATOR_DRIVER_H_
 #define __LINUX_REGULATOR_DRIVER_H_
 
-#define MAX_COUPLED            4
+#define MAX_COUPLED            2
 
 #include <linux/device.h>
 #include <linux/notifier.h>