busybox/miscutils
Bartosz Golaszewski 314742747d i2cdetect: don't die on addresses already in use by drivers
We can't use i2c_set_slave_addr() in i2cdetect, as we have to check for
EBUSY after calling ioctl(I2C_SLAVE) and print 'UU' on busy addresses
instead of bailing-out.

While we're at it: reorder definitions of local vars in i2cdetect_main().

function                                             old     new   delta
i2cdetect_main                                       703     744     +41
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/0 up/down: 41/0)               Total: 41 bytes
   text	   data	    bss	    dec	    hex	filename
 826097	   4164	   9584	 839845	  cd0a5	busybox_old
 826145	   4164	   9584	 839893	  cd0d5	busybox_unstripped

Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2015-06-07 18:05:34 +02:00
..
adjtimex.c
bbconfig.c
beep.c
chat.c
chrt.c
Config.src
conspy.c
crond.c libbb: introduce and use is_prefixed_with() 2015-03-12 17:48:34 +01:00
crontab.c
dc.c dc: fix "dc p" prinitng bogus data 2015-05-25 13:31:25 +02:00
devfsd.c libbb: introduce and use is_prefixed_with() 2015-03-12 17:48:34 +01:00
devmem.c
eject.c
fbsplash.c libbb: introduce and use is_prefixed_with() 2015-03-12 17:48:34 +01:00
fbsplash.cfg
flash_eraseall.c
flash_lock_unlock.c
flashcp.c
hdparm.c
i2c_tools.c i2cdetect: don't die on addresses already in use by drivers 2015-06-07 18:05:34 +02:00
inotifyd.c
ionice.c
Kbuild.src
last_fancy.c *: Switch to POSIX utmpx API 2015-04-02 23:03:46 +02:00
last.c *: Switch to POSIX utmpx API 2015-04-02 23:03:46 +02:00
less.c typo fixes 2015-05-25 13:46:36 +02:00
makedevs.c
man.c libbb: introduce and use is_prefixed_with() 2015-03-12 17:48:34 +01:00
microcom.c
mountpoint.c
mt.c
nandwrite.c
raidautorun.c
readahead.c
rfkill.c
runlevel.c *: Switch to POSIX utmpx API 2015-04-02 23:03:46 +02:00
rx.c
setserial.c
setsid.c
strings.c
taskset.c
time.c
timeout.c
ttysize.c
ubi_tools.c ubiattach: add option -O 2015-01-30 18:33:24 +01:00
volname.c
wall.c *: Switch to POSIX utmpx API 2015-04-02 23:03:46 +02:00
watchdog.c