]> sigrok.org Git - libsigrok.git/commit - src/hardware/link-mso19/protocol.c
link-mso19: mso_receive_data: Simplify device instance lookup
authorLars-Peter Clausen <redacted>
Mon, 23 May 2016 16:21:40 +0000 (18:21 +0200)
committerLars-Peter Clausen <redacted>
Mon, 23 May 2016 16:25:24 +0000 (18:25 +0200)
commitf53ff6436923b99260a6cbac241fa054ec78d503
treecc3ae84bb6e776d4a3dd60f3f28ffb262077338b
parente5ff8e9e0a12d54963814debeab50cd88ecca632
link-mso19: mso_receive_data: Simplify device instance lookup

The link-mso19 driver currently iterates the device instance list of the
driver to get the device instance for which the callback is called.

But the device instance is actually passed to the callback as the cb_data
parameter, so just use that instead and remove the lookup loop.

Besides that the current lookup loop does not even compile either.

Signed-off-by: Lars-Peter Clausen <redacted>
src/hardware/link-mso19/protocol.c