[U-Boot] [PATCH] i2c_probe: update for use in scripting

Heiko Schocher
2012-10-16T03:58:47Z

Hello Eric Nelson,

On 23.09.2012 22:12, Eric Nelson wrote:
> Allow the use of an I2C address to test and return success
> if one or more devices is found.
>
> This allows device presence to alter the flow of a script.
> e.g.
> if i2c probe 0x04 ; then
> echo found Hannstar touch ;
> fi
>
> Signed-off-by: Eric Nelson<eric.nelson@boundarydevices.com>
> ---
> common/cmd_i2c.c | 20 ++++++++++++++++----
> 1 files changed, 16 insertions(+), 4 deletions(-)

Applied to u-boot-i2c master

Thanks!

bye,
Heiko
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany