i2cdump: code rework
authorBartosz Golaszewski <bartekgola@gmail.com>
Fri, 5 Jun 2015 08:27:31 +0000 (10:27 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sun, 7 Jun 2015 16:05:47 +0000 (18:05 +0200)
commitaeb11a949667f82173c733e55e9f762c56a1fcba
treeb34319d0e9d089ded4007d59e1adb51d1d7e16ab
parent2204472497285dd6fd7b686bb49732fda7394492
i2cdump: code rework

Split i2cdump_main() into shorter functions. Simplify the code a bit.
Make block an array of ints so that we can store negative results of
read functions (fixes a bug found by Denys Vlasenko).

Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
miscutils/i2c_tools.c