]> sigrok.org Git - libsigrok.git/commit
norma-dmm: Remove unused version field from state struct
authorLars-Peter Clausen <redacted>
Wed, 4 May 2016 09:44:04 +0000 (11:44 +0200)
committerLars-Peter Clausen <redacted>
Sat, 28 May 2016 10:52:05 +0000 (12:52 +0200)
commiteabfed20f7cce56a8e92161264817d268216d1aa
tree674497f50632cffacb3ae5f20659e7cf19941daa
parentcd0de200b17820975637ddafba8a68902648344e
norma-dmm: Remove unused version field from state struct

The version field in the norma-dmm driver state struct is initialized, but
never read and the same information is also already available in the
sr_dev_inst struct version field. So remove it to simplify the code.

This allows to get rid of the custom dev_close() callback and just use the
standard std_serial_dev_close() instead.

Signed-off-by: Lars-Peter Clausen <redacted>
src/hardware/norma-dmm/api.c
src/hardware/norma-dmm/protocol.h