Skip to content

Commit

Permalink
[media] dvb_usb_v2: merge files dvb_usb_init.c and dvb_usb_dvb.c
Browse files Browse the repository at this point in the history
Merge files dvb_usb_init.c and dvb_usb_dvb.c to dvb_usb_core.c.
It is still under 1000 lines of code after all the optimization
so put it one file.

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Antti Palosaari authored and Mauro Carvalho Chehab committed Aug 4, 2012
1 parent 62a5f44 commit 41a0abf
Show file tree
Hide file tree
Showing 3 changed files with 419 additions and 37 deletions.
2 changes: 1 addition & 1 deletion drivers/media/dvb/dvb-usb/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
dvb-usb-objs = dvb-usb-firmware.o dvb-usb-init.o dvb-usb-urb.o dvb-usb-i2c.o dvb-usb-dvb.o dvb-usb-remote.o usb-urb.o
obj-$(CONFIG_DVB_USB) += dvb-usb.o

dvb_usbv2-objs = dvb_usb_init.o dvb_usb_urb.o dvb_usb_dvb.o usb_urb.o
dvb_usbv2-objs = dvb_usb_core.o dvb_usb_urb.o usb_urb.o
obj-$(CONFIG_DVB_USB_V2) += dvb_usbv2.o

obj-$(CONFIG_DVB_USB_FIRMWARE) += dvb_usb_firmware.o
Expand Down
12 changes: 0 additions & 12 deletions drivers/media/dvb/dvb-usb/dvb_usb_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,12 @@

#include "dvb_usb.h"

extern int dvb_usbv2_disable_rc_polling;

/* commonly used methods */
extern int dvb_usbv2_device_power_ctrl(struct dvb_usb_device *d, int onoff);

extern int usb_urb_initv2(struct usb_data_stream *stream,
const struct usb_data_stream_properties *props);
extern int usb_urb_exitv2(struct usb_data_stream *stream);
extern int usb_urb_submitv2(struct usb_data_stream *stream,
struct usb_data_stream_properties *props);
extern int usb_urb_killv2(struct usb_data_stream *stream);

extern int dvb_usbv2_adapter_stream_init(struct dvb_usb_adapter *adap);
extern int dvb_usbv2_adapter_stream_exit(struct dvb_usb_adapter *adap);

extern int dvb_usbv2_adapter_dvb_init(struct dvb_usb_adapter *adap);
extern int dvb_usbv2_adapter_dvb_exit(struct dvb_usb_adapter *adap);
extern int dvb_usbv2_adapter_frontend_init(struct dvb_usb_adapter *adap);
extern int dvb_usbv2_adapter_frontend_exit(struct dvb_usb_adapter *adap);

#endif
Loading

0 comments on commit 41a0abf

Please sign in to comment.