diff options
author | Przemyslaw Marczak <p.marczak@samsung.com> | 2015-05-13 13:38:31 +0200 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2015-05-14 19:58:34 -0600 |
commit | a989ec8dd4bb548708220146391d5ed7b575331f (patch) | |
tree | 81daf490b4083fa4da0eb347844b2aab793d56b0 /lib/Kconfig | |
parent | 769c94865a4bb4b86e763ccd2a95c1bb3f0fe837 (diff) | |
download | u-boot-imx-a989ec8dd4bb548708220146391d5ed7b575331f.zip u-boot-imx-a989ec8dd4bb548708220146391d5ed7b575331f.tar.gz u-boot-imx-a989ec8dd4bb548708220146391d5ed7b575331f.tar.bz2 |
sandbox: i2c: search child emul dev and check its uclass id
The function get_emul() in sandbox i2c bus driver, always returns
first child as i2c emul device. This may only work for i2c devices
with a single child, which is an only i2c emul device.
In case when i2c device has more than one child (e.g. PMIC), and
one is i2c emul, then the function should search it by check uclass
id for each child. This patch add this change to the get_emul().
Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
Cc: Simon Glass <sjg@chromium.org>
Acked-by: Simon Glass <sjg@chromium.org>
Tested on sandbox:
Tested-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'lib/Kconfig')
0 files changed, 0 insertions, 0 deletions