mfd: cs5535-mfd: Remove mfd_cell->id hack
authorLee Jones <lee.jones@linaro.org>
Fri, 18 Oct 2019 09:23:49 +0000 (10:23 +0100)
committerLee Jones <lee.jones@linaro.org>
Mon, 11 Nov 2019 08:45:03 +0000 (08:45 +0000)
commit2129e56e95f877c71989e7d0391de47f3907a261
tree4b3c0882f3b688e2dcf390600ae4a6a83ddf20de
parent601e4289a01f70fd78b19dc7da0e10b902485ae6
mfd: cs5535-mfd: Remove mfd_cell->id hack

The current implementation abuses the platform 'id' mfd_cell member
to index into the correct resources entry.  Seeing as enough resource
slots are already available, let's just loop through all available
bars and allocate them to their appropriate slot, even if they happen
to be zero.

Signed-off-by: Lee Jones <lee.jones@linaro.org>
Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org>
drivers/mfd/cs5535-mfd.c