staging: vt6656: Delete int.c/h file and move functions to usbpipe
PATCH 3/3 staging: vt6656: Delete int.c/h file and move functions to usbpipe
Move functions vnt_int_process_data and vnt_int_report_rate to usbpipe.c and vnt_interrupt_data to usbpipe.h
These form part of the USB structure.
Signed-off-by Malcolm Priestley <[email protected]>
--- drivers/staging/vt6656/Makefile | 3 +- drivers/staging/vt6656/int.c | 110 ------------------------------ drivers/staging/vt6656/int.h | 46 ------------- drivers/staging/vt6656/main_usb.c | 1 - drivers/staging/vt6656/usbpipe.c | 88 +++++++++++++++++++++++- drivers/staging/vt6656/usbpipe.h | 23 +++++++ 6 files changed, 111 insertions(+), 160 deletions(-) delete mode 100644 drivers/staging/vt6656/int.c delete mode 100644 drivers/staging/vt6656/int.h
drivers/staging/vt6656/Makefile +1 -2
@@ -15,7 +15,6 @@ vt6656_stage-y += main_usb.o \ rf.o \ usbpipe.o \ channel.o \ - firmware.o \ - int.o + firmware.o obj-$(CONFIG_VT6656) += vt6656_stage.o
drivers/staging/vt6656/int.c deleted +0 -110
110 lines not on this page · raw message
drivers/staging/vt6656/int.h deleted +0 -46
46 lines not on this page · raw message
drivers/staging/vt6656/main_usb.c +0 -1
@@ -35,7 +35,6 @@#include "firmware.h" #include "usbpipe.h" #include "channel.h" -#include "int.h" /* * define module options
drivers/staging/vt6656/usbpipe.c +87 -1
105 lines not on this page · raw message
drivers/staging/vt6656/usbpipe.h +23 -0
@@ -18,6 +18,29 @@#include "device.h" +struct vnt_interrupt_data { +u8 tsr0; +u8 pkt0; +u16 time0; +u8 tsr1; +u8 pkt1; +u16 time1; +u8 tsr2; +u8 pkt2; +u16 time2; +u8 tsr3; +u8 pkt3; +u16 time3; +__le64 tsf; +u8 isr0; +u8 isr1; +u8 rts_success; +u8 rts_fail; +u8 ack_fail; +u8 fcs_err; +u8 sw[2 ]; +} __packed; +#define VNT_REG_BLOCK_SIZE 64 int vnt_control_out(struct vnt_private *priv, u8 request, u16 value,
Signature · 1 line
2.25.1