From: Mark Brown Date: Mon, 25 Jul 2011 21:20:29 +0000 (+0100) Subject: regulator: Fix WM831x regulator ID lookups for multiple WM831xs X-Git-Tag: v3.1-rc1~89^2^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=137a6354305455d585fe99fe5e9949acd895b045;p=pandora-kernel.git 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: Mark Brown Signed-off-by: Liam Girdwood --- Reading git-diff-tree failed