i2ctransfer: new applet
authorNikolaus Voss <nikolaus.voss@loewensteinmedical.de>
Sun, 10 Feb 2019 18:56:41 +0000 (19:56 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sun, 10 Feb 2019 18:59:07 +0000 (19:59 +0100)
commitdac8f5ea38b0f293bc9d3b10693ebb94648a992d
tree9e1cdca42877e3e86766aaba1ab58598903df131
parentc89764c0633670ef28166c70d03bc593f4a1179f
i2ctransfer: new applet

i2ctransfer sends and receives user defined i2c messages

v2: apply Xabier's comments: add -a option, don't decrement argc,
    use bb_show_usage() and xzalloc()
v3: fix possible out of bound access to msgs[nmsgs]

Reviewed-by: Xabier Oneca -- xOneca <xoneca@gmail.com>
Signed-off-by: Nikolaus Voss <nikolaus.voss@loewensteinmedical.de>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
miscutils/i2c_tools.c