]> git.baikalelectronics.ru Git - kernel.git/commit
mfd: Allow mapping regulator supplies to MFD device from children
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Tue, 15 Oct 2013 19:14:21 +0000 (20:14 +0100)
committerMark Brown <broonie@linaro.org>
Wed, 23 Oct 2013 11:17:08 +0000 (12:17 +0100)
commit862a439f9657945e82d006ec42271e296f6592ee
tree37baddc5d110188af44ae190dde37ef574df4249
parentbc561460716e2b23ce88608c5bacf3d359bf0bea
mfd: Allow mapping regulator supplies to MFD device from children

Occasionally, it is useful to map supplies from a child device onto the
MFD device. A typical usecase for this would be if the MFD device is
represented as a single node in device tree. All supplies will be
defined in device tree as existing on the MFD device. When a child
depends on frameworks which might have no knowledge of MFD to lookup
supplies on its behalf the supply will not be found.

This patch adds a list of supplies that should be looked up on the
parent rather than the child as part of the mfd_cell structure.

Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Acked-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/mfd/mfd-core.c
include/linux/mfd/core.h