i2c_probe: update for use in scripting
authorEric Nelson <eric.nelson@boundarydevices.com>
Sun, 23 Sep 2012 10:12:56 +0000 (10:12 +0000)
committerHeiko Schocher <hs@denx.de>
Tue, 16 Oct 2012 03:47:21 +0000 (05:47 +0200)
commit54b99e51ab580eb6373f93994fe8f8a8edeefcf8
tree01b0d8017f809af14aa98709c02037b3c5c98c77
parentff5d2dce1e8b24e9f4d85db3906c5d2e25b0cedf
i2c_probe: update for use in scripting

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