regulator: get pcap data from the parent device
commit70fde5cbd421773f0b9d684933ecb441efe89c84
authorAntonio Ospite <ospite@studenti.unina.it>
Fri, 7 Aug 2009 21:18:41 +0000 (7 23:18 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Thu, 17 Sep 2009 07:47:13 +0000 (17 09:47 +0200)
tree78f488740cb11460f79d41317558599b32b6fcf2
parentd0a821324819a2908b886ae8b2f33fc7824ff83f
regulator: get pcap data from the parent device

Right now the pcap core driver passes a reference to its pcap data abusing the
subdrivers platform drvdata, this is not good.

Get the reference directly from the parent device.

Signed-off-by: Antonio Ospite <ospite@studenti.unina.it>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/regulator/pcap-regulator.c