CHROMIUM: mfd: chromeos_ec: instantiate sub-devices from device tree
authorVincent Palatin <vpalatin@chromium.org>
Fri, 22 Feb 2013 00:58:44 +0000 (16:58 -0800)
committerChromeBot <chrome-bot@google.com>
Sat, 23 Feb 2013 02:14:34 +0000 (18:14 -0800)
commit48794365b9583dc649f9e0df20e291386123719b
tree2af546f93f8edeb6011d1252cb51527e9d9c42a9
parent1a99520e120bc257689319ca3c72a1baa9393c16
CHROMIUM: mfd: chromeos_ec: instantiate sub-devices from device tree

If the EC device tree node has sub-nodes, try to instantiate them as MFD
sub-devices.
We can configure the EC features provided by the board.

Signed-off-by: Vincent Palatin <vpalatin@chromium.org>
BUG=chrome-os-partner:17812
TEST=on Spring, check that flashrom is working to re-flash the EC
firmware.

Change-Id: Ib1501eb3408cc13acb05073928ee958cd94f9107
Reviewed-on: https://gerrit.chromium.org/gerrit/43783
Reviewed-by: Todd Broch <tbroch@chromium.org>
Tested-by: Vincent Palatin <vpalatin@chromium.org>
Commit-Queue: Vincent Palatin <vpalatin@chromium.org>
drivers/mfd/chromeos_ec.c