Skip to content
Commit 137a6354 authored by Mark Brown's avatar Mark Brown Committed by Liam Girdwood
Browse files

regulator: Fix WM831x regulator ID lookups for multiple WM831xs



With multiple wm831x devices the device IDs used for the regulators will
not always be contiguous so simply taking the modulus is not sufficient
to look up the ID, we need to reverse the way the ID is generated.

Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: default avatarLiam Girdwood <lrg@slimlogic.co.uk>
parent 54abd335
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment