Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
71029f06
Commit
71029f06
authored
Dec 01, 2002
by
Art Haas
Committed by
Linus Torvalds
Dec 01, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] C99 initializers for drivers/media/video
parent
5331dd5f
Changes
23
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
23 changed files
with
1678 additions
and
1679 deletions
+1678
-1679
drivers/media/video/adv7175.c
drivers/media/video/adv7175.c
+18
-18
drivers/media/video/bttv-cards.c
drivers/media/video/bttv-cards.c
+1071
-1071
drivers/media/video/bttv-driver.c
drivers/media/video/bttv-driver.c
+254
-254
drivers/media/video/bttv-if.c
drivers/media/video/bttv-if.c
+15
-15
drivers/media/video/bttv-vbi.c
drivers/media/video/bttv-vbi.c
+4
-4
drivers/media/video/bw-qcam.c
drivers/media/video/bw-qcam.c
+11
-11
drivers/media/video/c-qcam.c
drivers/media/video/c-qcam.c
+11
-11
drivers/media/video/cpia.c
drivers/media/video/cpia.c
+12
-12
drivers/media/video/cpia_usb.c
drivers/media/video/cpia_usb.c
+4
-4
drivers/media/video/msp3400.c
drivers/media/video/msp3400.c
+9
-9
drivers/media/video/planb.c
drivers/media/video/planb.c
+10
-10
drivers/media/video/pms.c
drivers/media/video/pms.c
+11
-11
drivers/media/video/saa5249.c
drivers/media/video/saa5249.c
+10
-10
drivers/media/video/stradis.c
drivers/media/video/stradis.c
+10
-10
drivers/media/video/tuner.c
drivers/media/video/tuner.c
+10
-10
drivers/media/video/tvaudio.c
drivers/media/video/tvaudio.c
+142
-142
drivers/media/video/tvmixer.c
drivers/media/video/tvmixer.c
+10
-10
drivers/media/video/video-buf.c
drivers/media/video/video-buf.c
+3
-3
drivers/media/video/videodev.c
drivers/media/video/videodev.c
+3
-3
drivers/media/video/vino.c
drivers/media/video/vino.c
+8
-8
drivers/media/video/w9966.c
drivers/media/video/w9966.c
+18
-19
drivers/media/video/zr36067.c
drivers/media/video/zr36067.c
+11
-11
drivers/media/video/zr36120.c
drivers/media/video/zr36120.c
+23
-23
No files found.
drivers/media/video/adv7175.c
View file @
71029f06
...
@@ -410,30 +410,30 @@ static void adv717x_dec_use(struct i2c_client *client)
...
@@ -410,30 +410,30 @@ static void adv717x_dec_use(struct i2c_client *client)
/* ----------------------------------------------------------------------- */
/* ----------------------------------------------------------------------- */
static
struct
i2c_driver
i2c_driver_adv7175
=
{
static
struct
i2c_driver
i2c_driver_adv7175
=
{
name:
"adv7175"
,
/* name */
.
name
=
"adv7175"
,
/* name */
id:
I2C_DRIVERID_ADV717x
,
/* ID */
.
id
=
I2C_DRIVERID_ADV717x
,
/* ID */
flags:
I2C_DF_NOTIFY
,
//I2C_ADV7175, I2C_ADV7175 + 3,
.
flags
=
I2C_DF_NOTIFY
,
//I2C_ADV7175, I2C_ADV7175 + 3,
attach_adapter:
adv717x_probe
,
.
attach_adapter
=
adv717x_probe
,
detach_client:
adv717x_detach
,
.
detach_client
=
adv717x_detach
,
command:
adv717x_command
,
.
command
=
adv717x_command
,
inc_use:
&
adv717x_inc_use
,
.
inc_use
=
&
adv717x_inc_use
,
dec_use:
&
adv717x_dec_use
.
dec_use
=
&
adv717x_dec_use
};
};
static
struct
i2c_driver
i2c_driver_adv7176
=
{
static
struct
i2c_driver
i2c_driver_adv7176
=
{
name:
"adv7176"
,
/* name */
.
name
=
"adv7176"
,
/* name */
id:
I2C_DRIVERID_ADV717x
,
/* ID */
.
id
=
I2C_DRIVERID_ADV717x
,
/* ID */
flags:
I2C_DF_NOTIFY
,
//I2C_ADV7176, I2C_ADV7176 + 3,
.
flags
=
I2C_DF_NOTIFY
,
//I2C_ADV7176, I2C_ADV7176 + 3,
attach_adapter:
adv717x_probe
,
.
attach_adapter
=
adv717x_probe
,
detach_client:
adv717x_detach
,
.
detach_client
=
adv717x_detach
,
command:
adv717x_command
,
.
command
=
adv717x_command
,
inc_use:
&
adv717x_inc_use
,
.
inc_use
=
&
adv717x_inc_use
,
dec_use:
&
adv717x_dec_use
.
dec_use
=
&
adv717x_dec_use
};
};
static
struct
i2c_client
client_template
=
{
static
struct
i2c_client
client_template
=
{
name:
"adv7175_client"
,
.
name
=
"adv7175_client"
,
driver:
&
i2c_driver_adv7175
.
driver
=
&
i2c_driver_adv7175
};
};
static
int
adv717x_init
(
void
)
static
int
adv717x_init
(
void
)
...
...
drivers/media/video/bttv-cards.c
View file @
71029f06
This diff is collapsed.
Click to expand it.
drivers/media/video/bttv-driver.c
View file @
71029f06
This diff is collapsed.
Click to expand it.
drivers/media/video/bttv-if.c
View file @
71029f06
...
@@ -262,27 +262,27 @@ void bttv_i2c_call(unsigned int card, unsigned int cmd, void *arg)
...
@@ -262,27 +262,27 @@ void bttv_i2c_call(unsigned int card, unsigned int cmd, void *arg)
}
}
static
struct
i2c_algo_bit_data
bttv_i2c_algo_template
=
{
static
struct
i2c_algo_bit_data
bttv_i2c_algo_template
=
{
setsda:
bttv_bit_setsda
,
.
setsda
=
bttv_bit_setsda
,
setscl:
bttv_bit_setscl
,
.
setscl
=
bttv_bit_setscl
,
getsda:
bttv_bit_getsda
,
.
getsda
=
bttv_bit_getsda
,
getscl:
bttv_bit_getscl
,
.
getscl
=
bttv_bit_getscl
,
udelay:
16
,
.
udelay
=
16
,
mdelay:
10
,
.
mdelay
=
10
,
timeout:
200
,
.
timeout
=
200
,
};
};
static
struct
i2c_adapter
bttv_i2c_adap_template
=
{
static
struct
i2c_adapter
bttv_i2c_adap_template
=
{
name:
"bt848"
,
.
name
=
"bt848"
,
id:
I2C_HW_B_BT848
,
.
id
=
I2C_HW_B_BT848
,
inc_use:
bttv_inc_use
,
.
inc_use
=
bttv_inc_use
,
dec_use:
bttv_dec_use
,
.
dec_use
=
bttv_dec_use
,
client_register:
attach_inform
,
.
client_register
=
attach_inform
,
client_unregister:
detach_inform
,
.
client_unregister
=
detach_inform
,
};
};
static
struct
i2c_client
bttv_i2c_client_template
=
{
static
struct
i2c_client
bttv_i2c_client_template
=
{
name:
"bttv internal use only"
,
.
name
=
"bttv internal use only"
,
id:
-
1
,
.
id
=
-
1
,
};
};
...
...
drivers/media/video/bttv-vbi.c
View file @
71029f06
...
@@ -123,10 +123,10 @@ static void vbi_buffer_release(struct file *file, struct videobuf_buffer *vb)
...
@@ -123,10 +123,10 @@ static void vbi_buffer_release(struct file *file, struct videobuf_buffer *vb)
}
}
struct
videobuf_queue_ops
bttv_vbi_qops
=
{
struct
videobuf_queue_ops
bttv_vbi_qops
=
{
buf_setup:
vbi_buffer_setup
,
.
buf_setup
=
vbi_buffer_setup
,
buf_prepare:
vbi_buffer_prepare
,
.
buf_prepare
=
vbi_buffer_prepare
,
buf_queue:
vbi_buffer_queue
,
.
buf_queue
=
vbi_buffer_queue
,
buf_release:
vbi_buffer_release
,
.
buf_release
=
vbi_buffer_release
,
};
};
/* ----------------------------------------------------------------------- */
/* ----------------------------------------------------------------------- */
...
...
drivers/media/video/bw-qcam.c
View file @
71029f06
...
@@ -885,20 +885,20 @@ static int qcam_read(struct file *file, char *buf,
...
@@ -885,20 +885,20 @@ static int qcam_read(struct file *file, char *buf,
}
}
static
struct
file_operations
qcam_fops
=
{
static
struct
file_operations
qcam_fops
=
{
owner:
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
open:
video_exclusive_open
,
.
open
=
video_exclusive_open
,
release:
video_exclusive_release
,
.
release
=
video_exclusive_release
,
ioctl:
qcam_ioctl
,
.
ioctl
=
qcam_ioctl
,
read:
qcam_read
,
.
read
=
qcam_read
,
llseek:
no_llseek
,
.
llseek
=
no_llseek
,
};
};
static
struct
video_device
qcam_template
=
static
struct
video_device
qcam_template
=
{
{
owner:
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
name:
"Connectix Quickcam"
,
.
name
=
"Connectix Quickcam"
,
type:
VID_TYPE_CAPTURE
,
.
type
=
VID_TYPE_CAPTURE
,
hardware:
VID_HARDWARE_QCAM_BW
,
.
hardware
=
VID_HARDWARE_QCAM_BW
,
fops:
&
qcam_fops
,
.
fops
=
&
qcam_fops
,
};
};
#define MAX_CAMS 4
#define MAX_CAMS 4
...
...
drivers/media/video/c-qcam.c
View file @
71029f06
...
@@ -686,21 +686,21 @@ static int qcam_read(struct file *file, char *buf,
...
@@ -686,21 +686,21 @@ static int qcam_read(struct file *file, char *buf,
/* video device template */
/* video device template */
static
struct
file_operations
qcam_fops
=
{
static
struct
file_operations
qcam_fops
=
{
owner:
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
open:
video_exclusive_open
,
.
open
=
video_exclusive_open
,
release:
video_exclusive_release
,
.
release
=
video_exclusive_release
,
ioctl:
qcam_ioctl
,
.
ioctl
=
qcam_ioctl
,
read:
qcam_read
,
.
read
=
qcam_read
,
llseek:
no_llseek
,
.
llseek
=
no_llseek
,
};
};
static
struct
video_device
qcam_template
=
static
struct
video_device
qcam_template
=
{
{
owner:
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
name:
"Colour QuickCam"
,
.
name
=
"Colour QuickCam"
,
type:
VID_TYPE_CAPTURE
,
.
type
=
VID_TYPE_CAPTURE
,
hardware:
VID_HARDWARE_QCAM_C
,
.
hardware
=
VID_HARDWARE_QCAM_C
,
fops:
&
qcam_fops
,
.
fops
=
&
qcam_fops
,
};
};
/* Initialize the QuickCam driver control structure. */
/* Initialize the QuickCam driver control structure. */
...
...
drivers/media/video/cpia.c
View file @
71029f06
...
@@ -3783,21 +3783,21 @@ static int cpia_mmap(struct file *file, struct vm_area_struct *vma)
...
@@ -3783,21 +3783,21 @@ static int cpia_mmap(struct file *file, struct vm_area_struct *vma)
}
}
static
struct
file_operations
cpia_fops
=
{
static
struct
file_operations
cpia_fops
=
{
owner:
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
open:
cpia_open
,
.
open
=
cpia_open
,
release:
cpia_close
,
.
release
=
cpia_close
,
read:
cpia_read
,
.
read
=
cpia_read
,
mmap:
cpia_mmap
,
.
mmap
=
cpia_mmap
,
ioctl:
cpia_ioctl
,
.
ioctl
=
cpia_ioctl
,
llseek:
no_llseek
,
.
llseek
=
no_llseek
,
};
};
static
struct
video_device
cpia_template
=
{
static
struct
video_device
cpia_template
=
{
owner:
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
name:
"CPiA Camera"
,
.
name
=
"CPiA Camera"
,
type:
VID_TYPE_CAPTURE
,
.
type
=
VID_TYPE_CAPTURE
,
hardware:
VID_HARDWARE_CPIA
,
.
hardware
=
VID_HARDWARE_CPIA
,
fops:
&
cpia_fops
,
.
fops
=
&
cpia_fops
,
};
};
/* initialise cam_data structure */
/* initialise cam_data structure */
...
...
drivers/media/video/cpia_usb.c
View file @
71029f06
...
@@ -582,10 +582,10 @@ MODULE_LICENSE("GPL");
...
@@ -582,10 +582,10 @@ MODULE_LICENSE("GPL");
static
struct
usb_driver
cpia_driver
=
{
static
struct
usb_driver
cpia_driver
=
{
name:
"cpia"
,
.
name
=
"cpia"
,
probe:
cpia_probe
,
.
probe
=
cpia_probe
,
disconnect:
cpia_disconnect
,
.
disconnect
=
cpia_disconnect
,
id_table:
cpia_id_table
,
.
id_table
=
cpia_id_table
,
};
};
/* don't use dev, it may be NULL! (see usb_cpia_cleanup) */
/* don't use dev, it may be NULL! (see usb_cpia_cleanup) */
...
...
drivers/media/video/msp3400.c
View file @
71029f06
...
@@ -1213,19 +1213,19 @@ static int msp_probe(struct i2c_adapter *adap);
...
@@ -1213,19 +1213,19 @@ static int msp_probe(struct i2c_adapter *adap);
static
int
msp_command
(
struct
i2c_client
*
client
,
unsigned
int
cmd
,
void
*
arg
);
static
int
msp_command
(
struct
i2c_client
*
client
,
unsigned
int
cmd
,
void
*
arg
);
static
struct
i2c_driver
driver
=
{
static
struct
i2c_driver
driver
=
{
name:
"i2c msp3400
driver"
,
.
name
=
"i2cmsp3400
driver"
,
id:
I2C_DRIVERID_MSP3400
,
.
id
=
I2C_DRIVERID_MSP3400
,
flags:
I2C_DF_NOTIFY
,
.
flags
=
I2C_DF_NOTIFY
,
attach_adapter:
msp_probe
,
.
attach_adapter
=
msp_probe
,
detach_client:
msp_detach
,
.
detach_client
=
msp_detach
,
command:
msp_command
,
.
command
=
msp_command
,
};
};
static
struct
i2c_client
client_template
=
static
struct
i2c_client
client_template
=
{
{
name:
"(unset)"
,
.
name
=
"(unset)"
,
flags:
I2C_CLIENT_ALLOW_USE
,
.
flags
=
I2C_CLIENT_ALLOW_USE
,
driver:
&
driver
,
.
driver
=
&
driver
,
};
};
static
int
msp_attach
(
struct
i2c_adapter
*
adap
,
int
addr
,
static
int
msp_attach
(
struct
i2c_adapter
*
adap
,
int
addr
,
...
...
drivers/media/video/planb.c
View file @
71029f06
...
@@ -2020,16 +2020,16 @@ static int planb_mmap(struct vm_area_struct *vma, struct video_device *dev, cons
...
@@ -2020,16 +2020,16 @@ static int planb_mmap(struct vm_area_struct *vma, struct video_device *dev, cons
static
struct
video_device
planb_template
=
static
struct
video_device
planb_template
=
{
{
owner:
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
name:
PLANB_DEVICE_NAME
,
.
name
=
PLANB_DEVICE_NAME
,
type:
VID_TYPE_OVERLAY
,
.
type
=
VID_TYPE_OVERLAY
,
hardware:
VID_HARDWARE_PLANB
,
.
hardware
=
VID_HARDWARE_PLANB
,
open:
planb_open
,
.
open
=
planb_open
,
close:
planb_close
,
.
close
=
planb_close
,
read:
planb_read
,
.
read
=
planb_read
,
write:
planb_write
,
.
write
=
planb_write
,
ioctl:
planb_ioctl
,
.
ioctl
=
planb_ioctl
,
mmap:
planb_mmap
,
/* mmap? */
.
mmap
=
planb_mmap
,
/* mmap? */
};
};
static
int
init_planb
(
struct
planb
*
pb
)
static
int
init_planb
(
struct
planb
*
pb
)
...
...
drivers/media/video/pms.c
View file @
71029f06
...
@@ -875,21 +875,21 @@ static int pms_read(struct file *file, char *buf,
...
@@ -875,21 +875,21 @@ static int pms_read(struct file *file, char *buf,
}
}
static
struct
file_operations
pms_fops
=
{
static
struct
file_operations
pms_fops
=
{
owner:
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
open:
video_exclusive_open
,
.
open
=
video_exclusive_open
,
release:
video_exclusive_release
,
.
release
=
video_exclusive_release
,
ioctl:
pms_ioctl
,
.
ioctl
=
pms_ioctl
,
read:
pms_read
,
.
read
=
pms_read
,
llseek:
no_llseek
,
.
llseek
=
no_llseek
,
};
};
static
struct
video_device
pms_template
=
static
struct
video_device
pms_template
=
{
{
owner:
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
name:
"Mediavision PMS"
,
.
name
=
"Mediavision PMS"
,
type:
VID_TYPE_CAPTURE
,
.
type
=
VID_TYPE_CAPTURE
,
hardware:
VID_HARDWARE_PMS
,
.
hardware
=
VID_HARDWARE_PMS
,
fops:
&
pms_fops
,
.
fops
=
&
pms_fops
,
};
};
struct
pms_device
pms_device
;
struct
pms_device
pms_device
;
...
...
drivers/media/video/saa5249.c
View file @
71029f06
...
@@ -678,20 +678,20 @@ module_init(init_saa_5249);
...
@@ -678,20 +678,20 @@ module_init(init_saa_5249);
module_exit
(
cleanup_saa_5249
);
module_exit
(
cleanup_saa_5249
);
static
struct
file_operations
saa_fops
=
{
static
struct
file_operations
saa_fops
=
{
owner:
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
open:
saa5249_open
,
.
open
=
saa5249_open
,
release:
saa5249_release
,
.
release
=
saa5249_release
,
ioctl:
saa5249_ioctl
,
.
ioctl
=
saa5249_ioctl
,
llseek:
no_llseek
,
.
llseek
=
no_llseek
,
};
};
static
struct
video_device
saa_template
=
static
struct
video_device
saa_template
=
{
{
owner:
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
name:
IF_NAME
,
.
name
=
IF_NAME
,
type:
VID_TYPE_TELETEXT
,
/*| VID_TYPE_TUNER ?? */
.
type
=
VID_TYPE_TELETEXT
,
/*| VID_TYPE_TUNER ?? */
hardware:
VID_HARDWARE_SAA5249
,
.
hardware
=
VID_HARDWARE_SAA5249
,
fops:
&
saa_fops
,
.
fops
=
&
saa_fops
,
};
};
MODULE_LICENSE
(
"GPL"
);
MODULE_LICENSE
(
"GPL"
);
drivers/media/video/stradis.c
View file @
71029f06
...
@@ -1970,16 +1970,16 @@ static void saa_close(struct video_device *dev)
...
@@ -1970,16 +1970,16 @@ static void saa_close(struct video_device *dev)
/* template for video_device-structure */
/* template for video_device-structure */
static
struct
video_device
saa_template
=
static
struct
video_device
saa_template
=
{
{
owner:
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
name:
"SAA7146A"
,
.
name
=
"SAA7146A"
,
type:
VID_TYPE_CAPTURE
|
VID_TYPE_OVERLAY
,
.
type
=
VID_TYPE_CAPTURE
|
VID_TYPE_OVERLAY
,
hardware:
VID_HARDWARE_SAA7146
,
.
hardware
=
VID_HARDWARE_SAA7146
,
open:
saa_open
,
.
open
=
saa_open
,
close:
saa_close
,
.
close
=
saa_close
,
read:
saa_read
,
.
read
=
saa_read
,
write:
saa_write
,
.
write
=
saa_write
,
ioctl:
saa_ioctl
,
.
ioctl
=
saa_ioctl
,
mmap:
saa_mmap
,
.
mmap
=
saa_mmap
,
};
};
static
int
configure_saa7146
(
struct
pci_dev
*
dev
,
int
num
)
static
int
configure_saa7146
(
struct
pci_dev
*
dev
,
int
num
)
...
...
drivers/media/video/tuner.c
View file @
71029f06
...
@@ -975,18 +975,18 @@ tuner_command(struct i2c_client *client, unsigned int cmd, void *arg)
...
@@ -975,18 +975,18 @@ tuner_command(struct i2c_client *client, unsigned int cmd, void *arg)
/* ----------------------------------------------------------------------- */
/* ----------------------------------------------------------------------- */
static
struct
i2c_driver
driver
=
{
static
struct
i2c_driver
driver
=
{
name:
"i2c TV tuner
driver"
,
.
name
=
"i2cTVtuner
driver"
,
id:
I2C_DRIVERID_TUNER
,
.
id
=
I2C_DRIVERID_TUNER
,
flags:
I2C_DF_NOTIFY
,
.
flags
=
I2C_DF_NOTIFY
,
attach_adapter:
tuner_probe
,
.
attach_adapter
=
tuner_probe
,
detach_client:
tuner_detach
,
.
detach_client
=
tuner_detach
,
command:
tuner_command
,
.
command
=
tuner_command
,
};
};
static
struct
i2c_client
client_template
=
static
struct
i2c_clientclient_template
=
{
{
name:
"(tuner
unset)"
,
.
name
=
"(tuner
unset)"
,
flags:
I2C_CLIENT_ALLOW_USE
,
.
flags
=
I2C_CLIENT_ALLOW_USE
,
driver:
&
driver
,
.
driver
=
&
driver
,
};
};
static
int
tuner_init_module
(
void
)
static
int
tuner_init_module
(
void
)
...
...
drivers/media/video/tvaudio.c
View file @
71029f06
...
@@ -1156,167 +1156,167 @@ MODULE_PARM(pic16c54,"i");
...
@@ -1156,167 +1156,167 @@ MODULE_PARM(pic16c54,"i");
static
struct
CHIPDESC
chiplist
[]
=
{
static
struct
CHIPDESC
chiplist
[]
=
{
{
{
name:
"tda9840"
,
.
name
=
"tda9840"
,
id:
I2C_DRIVERID_TDA9840
,
.
id
=
I2C_DRIVERID_TDA9840
,
insmodopt:
&
tda9840
,
.
insmodopt
=
&
tda9840
,
addr_lo:
I2C_TDA9840
>>
1
,
.
addr_lo
=
I2C_TDA9840
>>
1
,
addr_hi:
I2C_TDA9840
>>
1
,
.
addr_hi
=
I2C_TDA9840
>>
1
,
registers:
5
,
.
registers
=
5
,
getmode:
tda9840_getmode
,
.
getmode
=
tda9840_getmode
,
setmode:
tda9840_setmode
,
.
setmode
=
tda9840_setmode
,
checkmode:
generic_checkmode
,
.
checkmode
=
generic_checkmode
,
init:
{
2
,
{
TDA9840_TEST
,
TDA9840_TEST_INT1SN
.
init
=
{
2
,
{
TDA9840_TEST
,
TDA9840_TEST_INT1SN
/* ,TDA9840_SW, TDA9840_MONO */
}
}
/* ,TDA9840_SW, TDA9840_MONO */
}
}
},
},
{
{
name:
"tda9873h"
,
.
name
=
"tda9873h"
,
id:
I2C_DRIVERID_TDA9873
,
.
id
=
I2C_DRIVERID_TDA9873
,
checkit:
tda9873_checkit
,
.
checkit
=
tda9873_checkit
,
insmodopt:
&
tda9873
,
.
insmodopt
=
&
tda9873
,
addr_lo:
I2C_TDA985x_L
>>
1
,
.
addr_lo
=
I2C_TDA985x_L
>>
1
,
addr_hi:
I2C_TDA985x_H
>>
1
,
.
addr_hi
=
I2C_TDA985x_H
>>
1
,
registers:
3
,
.
registers
=
3
,
flags:
CHIP_HAS_INPUTSEL
,
.
flags
=
CHIP_HAS_INPUTSEL
,
getmode:
tda9873_getmode
,
.
getmode
=
tda9873_getmode
,
setmode:
tda9873_setmode
,
.
setmode
=
tda9873_setmode
,
checkmode:
generic_checkmode
,
.
checkmode
=
generic_checkmode
,
init:
{
4
,
{
TDA9873_SW
,
0xa4
,
0x06
,
0x03
}
},
.
init
=
{
4
,
{
TDA9873_SW
,
0xa4
,
0x06
,
0x03
}
},
inputreg:
TDA9873_SW
,
.
inputreg
=
TDA9873_SW
,
inputmute:
TDA9873_MUTE
|
TDA9873_AUTOMUTE
,
.
inputmute
=
TDA9873_MUTE
|
TDA9873_AUTOMUTE
,
inputmap:
{
0xa0
,
0xa2
,
0xa0
,
0xa0
,
0xc0
},
.
inputmap
=
{
0xa0
,
0xa2
,
0xa0
,
0xa0
,
0xc0
},
inputmask:
TDA9873_INP_MASK
|
TDA9873_MUTE
|
TDA9873_AUTOMUTE
.
inputmask
=
TDA9873_INP_MASK
|
TDA9873_MUTE
|
TDA9873_AUTOMUTE
},
},
{
{
name:
"tda9874h/a"
,
.
name
=
"tda9874h/a"
,
id:
I2C_DRIVERID_TDA9874
,
.
id
=
I2C_DRIVERID_TDA9874
,
checkit:
tda9874a_checkit
,
.
checkit
=
tda9874a_checkit
,
initialize:
tda9874a_initialize
,
.
initialize
=
tda9874a_initialize
,
insmodopt:
&
tda9874a
,
.
insmodopt
=
&
tda9874a
,
addr_lo:
I2C_TDA9874
>>
1
,
.
addr_lo
=
I2C_TDA9874
>>
1
,
addr_hi:
I2C_TDA9874
>>
1
,
.
addr_hi
=
I2C_TDA9874
>>
1
,
getmode:
tda9874a_getmode
,
.
getmode
=
tda9874a_getmode
,
setmode:
tda9874a_setmode
,
.
setmode
=
tda9874a_setmode
,
checkmode:
generic_checkmode
,
.
checkmode
=
generic_checkmode
,
},
},
{
{
name:
"tda9850"
,
.
name
=
"tda9850"
,
id:
I2C_DRIVERID_TDA9850
,
.
id
=
I2C_DRIVERID_TDA9850
,
insmodopt:
&
tda9850
,
.
insmodopt
=
&
tda9850
,
addr_lo:
I2C_TDA985x_L
>>
1
,
.
addr_lo
=
I2C_TDA985x_L
>>
1
,
addr_hi:
I2C_TDA985x_H
>>
1
,
.
addr_hi
=
I2C_TDA985x_H
>>
1
,
registers:
11
,
.
registers
=
11
,
getmode:
tda985x_getmode
,
.
getmode
=
tda985x_getmode
,
setmode:
tda985x_setmode
,
.
setmode
=
tda985x_setmode
,
init:
{
8
,
{
TDA9850_C4
,
0x08
,
0x08
,
TDA985x_STEREO
,
0x07
,
0x10
,
0x10
,
0x03
}
}
.
init
=
{
8
,
{
TDA9850_C4
,
0x08
,
0x08
,
TDA985x_STEREO
,
0x07
,
0x10
,
0x10
,
0x03
}
}
},
},
{
{
name:
"tda9855"
,
.
name
=
"tda9855"
,
id:
I2C_DRIVERID_TDA9855
,
.
id
=
I2C_DRIVERID_TDA9855
,
insmodopt:
&
tda9855
,
.
insmodopt
=
&
tda9855
,
addr_lo:
I2C_TDA985x_L
>>
1
,
.
addr_lo
=
I2C_TDA985x_L
>>
1
,
addr_hi:
I2C_TDA985x_H
>>
1
,
.
addr_hi
=
I2C_TDA985x_H
>>
1
,
registers:
11
,
.
registers
=
11
,
flags:
CHIP_HAS_VOLUME
|
CHIP_HAS_BASSTREBLE
,
.
flags
=
CHIP_HAS_VOLUME
|
CHIP_HAS_BASSTREBLE
,
leftreg:
TDA9855_VL
,
.
leftreg
=
TDA9855_VL
,
rightreg:
TDA9855_VR
,
.
rightreg
=
TDA9855_VR
,
bassreg:
TDA9855_BA
,
.
bassreg
=
TDA9855_BA
,
treblereg:
TDA9855_TR
,
.
treblereg
=
TDA9855_TR
,
volfunc:
tda9855_volume
,
.
volfunc
=
tda9855_volume
,
bassfunc:
tda9855_bass
,
.
bassfunc
=
tda9855_bass
,
treblefunc:
tda9855_treble
,
.
treblefunc
=
tda9855_treble
,
getmode:
tda985x_getmode
,
.
getmode
=
tda985x_getmode
,
setmode:
tda985x_setmode
,
.
setmode
=
tda985x_setmode
,
init:
{
12
,
{
0
,
0x6f
,
0x6f
,
0x0e
,
0x07
<<
1
,
0x8
<<
2
,
.
init
=
{
12
,
{
0
,
0x6f
,
0x6f
,
0x0e
,
0x07
<<
1
,
0x8
<<
2
,
TDA9855_MUTE
|
TDA9855_AVL
|
TDA9855_LOUD
|
TDA9855_INT
,
TDA9855_MUTE
|
TDA9855_AVL
|
TDA9855_LOUD
|
TDA9855_INT
,
TDA985x_STEREO
|
TDA9855_LINEAR
|
TDA9855_TZCM
|
TDA9855_VZCM
,
TDA985x_STEREO
|
TDA9855_LINEAR
|
TDA9855_TZCM
|
TDA9855_VZCM
,
0x07
,
0x10
,
0x10
,
0x03
}}
0x07
,
0x10
,
0x10
,
0x03
}}
},
},
{
{
name:
"tea6300"
,
.
name
=
"tea6300"
,
id:
I2C_DRIVERID_TEA6300
,
.
id
=
I2C_DRIVERID_TEA6300
,
insmodopt:
&
tea6300
,
.
insmodopt
=
&
tea6300
,
addr_lo:
I2C_TEA6300
>>
1
,
.
addr_lo
=
I2C_TEA6300
>>
1
,
addr_hi:
I2C_TEA6300
>>
1
,
.
addr_hi
=
I2C_TEA6300
>>
1
,
registers:
6
,
.
registers
=
6
,
flags:
CHIP_HAS_VOLUME
|
CHIP_HAS_BASSTREBLE
|
CHIP_HAS_INPUTSEL
,
.
flags
=
CHIP_HAS_VOLUME
|
CHIP_HAS_BASSTREBLE
|
CHIP_HAS_INPUTSEL
,
leftreg:
TEA6300_VR
,
.
leftreg
=
TEA6300_VR
,
rightreg:
TEA6300_VL
,
.
rightreg
=
TEA6300_VL
,
bassreg:
TEA6300_BA
,
.
bassreg
=
TEA6300_BA
,
treblereg:
TEA6300_TR
,
.
treblereg
=
TEA6300_TR
,
volfunc:
tea6300_shift10
,
.
volfunc
=
tea6300_shift10
,
bassfunc:
tea6300_shift12
,
.
bassfunc
=
tea6300_shift12
,
treblefunc:
tea6300_shift12
,
.
treblefunc
=
tea6300_shift12
,
inputreg:
TEA6300_S
,
.
inputreg
=
TEA6300_S
,
inputmap:
{
TEA6300_S_SA
,
TEA6300_S_SB
,
TEA6300_S_SC
},
.
inputmap
=
{
TEA6300_S_SA
,
TEA6300_S_SB
,
TEA6300_S_SC
},
inputmute:
TEA6300_S_GMU
,
.
inputmute
=
TEA6300_S_GMU
,
},
},
{
{
name:
"tea6420"
,
.
name
=
"tea6420"
,
id:
I2C_DRIVERID_TEA6420
,
.
id
=
I2C_DRIVERID_TEA6420
,
insmodopt:
&
tea6420
,
.
insmodopt
=
&
tea6420
,
addr_lo:
I2C_TEA6420
>>
1
,
.
addr_lo
=
I2C_TEA6420
>>
1
,
addr_hi:
I2C_TEA6420
>>
1
,
.
addr_hi
=
I2C_TEA6420
>>
1
,
registers:
1
,
.
registers
=
1
,
flags:
CHIP_HAS_INPUTSEL
,
.
flags
=
CHIP_HAS_INPUTSEL
,
inputreg:
-
1
,
.
inputreg
=
-
1
,
inputmap:
{
TEA6420_S_SA
,
TEA6420_S_SB
,
TEA6420_S_SC
},
.
inputmap
=
{
TEA6420_S_SA
,
TEA6420_S_SB
,
TEA6420_S_SC
},
inputmute:
TEA6300_S_GMU
,
.
inputmute
=
TEA6300_S_GMU
,
},
},
{
{
name:
"tda8425"
,
.
name
=
"tda8425"
,
id:
I2C_DRIVERID_TDA8425
,
.
id
=
I2C_DRIVERID_TDA8425
,
insmodopt:
&
tda8425
,
.
insmodopt
=
&
tda8425
,
addr_lo:
I2C_TDA8425
>>
1
,
.
addr_lo
=
I2C_TDA8425
>>
1
,
addr_hi:
I2C_TDA8425
>>
1
,
.
addr_hi
=
I2C_TDA8425
>>
1
,
registers:
9
,
.
registers
=
9
,
flags:
CHIP_HAS_VOLUME
|
CHIP_HAS_BASSTREBLE
|
CHIP_HAS_INPUTSEL
,
.
flags
=
CHIP_HAS_VOLUME
|
CHIP_HAS_BASSTREBLE
|
CHIP_HAS_INPUTSEL
,
leftreg:
TDA8425_VR
,
.
leftreg
=
TDA8425_VR
,
rightreg:
TDA8425_VL
,
.
rightreg
=
TDA8425_VL
,
bassreg:
TDA8425_BA
,
.
bassreg
=
TDA8425_BA
,
treblereg:
TDA8425_TR
,
.
treblereg
=
TDA8425_TR
,
volfunc:
tda8425_shift10
,
.
volfunc
=
tda8425_shift10
,
bassfunc:
tda8425_shift12
,
.
bassfunc
=
tda8425_shift12
,
treblefunc:
tda8425_shift12
,
.
treblefunc
=
tda8425_shift12
,
inputreg:
TDA8425_S1
,
.
inputreg
=
TDA8425_S1
,
inputmap:
{
TDA8425_S1_CH1
,
TDA8425_S1_CH1
,
TDA8425_S1_CH1
},
.
inputmap
=
{
TDA8425_S1_CH1
,
TDA8425_S1_CH1
,
TDA8425_S1_CH1
},
inputmute:
TDA8425_S1_OFF
,
.
inputmute
=
TDA8425_S1_OFF
,
setmode:
tda8425_setmode
,
.
setmode
=
tda8425_setmode
,
},
},
{
{
name:
"pic16c54 (PV951)"
,
.
name
=
"pic16c54 (PV951)"
,
id:
I2C_DRIVERID_PIC16C54_PV951
,
.
id
=
I2C_DRIVERID_PIC16C54_PV951
,
insmodopt:
&
pic16c54
,
.
insmodopt
=
&
pic16c54
,
addr_lo:
I2C_PIC16C54
>>
1
,
.
addr_lo
=
I2C_PIC16C54
>>
1
,
addr_hi:
I2C_PIC16C54
>>
1
,
.
addr_hi
=
I2C_PIC16C54
>>
1
,
registers:
2
,
.
registers
=
2
,
flags:
CHIP_HAS_INPUTSEL
,
.
flags
=
CHIP_HAS_INPUTSEL
,
inputreg:
PIC16C54_REG_MISC
,
.
inputreg
=
PIC16C54_REG_MISC
,
inputmap:
{
PIC16C54_MISC_SND_NOTMUTE
|
PIC16C54_MISC_SWITCH_TUNER
,
.
inputmap
=
{
PIC16C54_MISC_SND_NOTMUTE
|
PIC16C54_MISC_SWITCH_TUNER
,
PIC16C54_MISC_SND_NOTMUTE
|
PIC16C54_MISC_SWITCH_LINE
,
PIC16C54_MISC_SND_NOTMUTE
|
PIC16C54_MISC_SWITCH_LINE
,
PIC16C54_MISC_SND_NOTMUTE
|
PIC16C54_MISC_SWITCH_LINE
,
PIC16C54_MISC_SND_NOTMUTE
|
PIC16C54_MISC_SWITCH_LINE
,
PIC16C54_MISC_SND_MUTE
,
PIC16C54_MISC_SND_MUTE
,
PIC16C54_MISC_SND_MUTE
,
PIC16C54_MISC_SND_MUTE
,
PIC16C54_MISC_SND_NOTMUTE
},
PIC16C54_MISC_SND_NOTMUTE
},
inputmute:
PIC16C54_MISC_SND_MUTE
,
.
inputmute
=
PIC16C54_MISC_SND_MUTE
,
},
},
{
name
:
NULL
}
/* EOF */
{
.
name
=
NULL
}
/* EOF */
};
};
...
@@ -1544,19 +1544,19 @@ static int chip_command(struct i2c_client *client,
...
@@ -1544,19 +1544,19 @@ static int chip_command(struct i2c_client *client,
static
struct
i2c_driver
driver
=
{
static
struct
i2c_driver
driver
=
{
name:
"generic i2c audio driver"
,
.
name
=
"generic i2c audio driver"
,
id:
I2C_DRIVERID_TVAUDIO
,
.
id
=
I2C_DRIVERID_TVAUDIO
,
flags:
I2C_DF_NOTIFY
,
.
flags
=
I2C_DF_NOTIFY
,
attach_adapter:
chip_probe
,
.
attach_adapter
=
chip_probe
,
detach_client:
chip_detach
,
.
detach_client
=
chip_detach
,
command:
chip_command
,
.
command
=
chip_command
,
};
};
static
struct
i2c_client
client_template
=
static
struct
i2c_client
client_template
=
{
{
name:
"(unset)"
,
.
name
=
"(unset)"
,
flags:
I2C_CLIENT_ALLOW_USE
,
.
flags
=
I2C_CLIENT_ALLOW_USE
,
driver:
&
driver
,
.
driver
=
&
driver
,
};
};
static
int
audiochip_init_module
(
void
)
static
int
audiochip_init_module
(
void
)
...
...
drivers/media/video/tvmixer.c
View file @
71029f06
...
@@ -217,19 +217,19 @@ static int tvmixer_release(struct inode *inode, struct file *file)
...
@@ -217,19 +217,19 @@ static int tvmixer_release(struct inode *inode, struct file *file)
static
struct
i2c_driver
driver
=
{
static
struct
i2c_driver
driver
=
{
name:
"tv card mixer driver"
,
.
name
=
"tv card mixer driver"
,
id:
I2C_DRIVERID_TVMIXER
,
.
id
=
I2C_DRIVERID_TVMIXER
,
flags:
I2C_DF_DUMMY
,
.
flags
=
I2C_DF_DUMMY
,
attach_adapter:
tvmixer_adapters
,
.
attach_adapter
=
tvmixer_adapters
,
detach_client:
tvmixer_clients
,
.
detach_client
=
tvmixer_clients
,
};
};
static
struct
file_operations
tvmixer_fops
=
{
static
struct
file_operations
tvmixer_fops
=
{
owner:
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
llseek:
no_llseek
,
.
llseek
=
no_llseek
,
ioctl:
tvmixer_ioctl
,
.
ioctl
=
tvmixer_ioctl
,
open:
tvmixer_open
,
.
open
=
tvmixer_open
,
release:
tvmixer_release
,
.
release
=
tvmixer_release
,
};
};
/* ----------------------------------------------------------------------- */
/* ----------------------------------------------------------------------- */
...
...
drivers/media/video/video-buf.c
View file @
71029f06
...
@@ -926,9 +926,9 @@ videobuf_vm_nopage(struct vm_area_struct *vma, unsigned long vaddr,
...
@@ -926,9 +926,9 @@ videobuf_vm_nopage(struct vm_area_struct *vma, unsigned long vaddr,
static
struct
vm_operations_struct
videobuf_vm_ops
=
static
struct
vm_operations_struct
videobuf_vm_ops
=
{
{
open:
videobuf_vm_open
,
.
open
=
videobuf_vm_open
,
close:
videobuf_vm_close
,
.
close
=
videobuf_vm_close
,
nopage:
videobuf_vm_nopage
,
.
nopage
=
videobuf_vm_nopage
,
};
};
int
videobuf_mmap_setup
(
struct
file
*
file
,
struct
videobuf_queue
*
q
,
int
videobuf_mmap_setup
(
struct
file
*
file
,
struct
videobuf_queue
*
q
,
...
...
drivers/media/video/videodev.c
View file @
71029f06
...
@@ -472,9 +472,9 @@ void video_unregister_device(struct video_device *vfd)
...
@@ -472,9 +472,9 @@ void video_unregister_device(struct video_device *vfd)
static
struct
file_operations
video_fops
=
static
struct
file_operations
video_fops
=
{
{
owner:
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
llseek:
no_llseek
,
.
llseek
=
no_llseek
,
open:
video_open
,
.
open
=
video_open
,
};
};
/*
/*
...
...
drivers/media/video/vino.c
View file @
71029f06
...
@@ -222,14 +222,14 @@ static int vino_mmap(struct video_device *dev, const char *adr,
...
@@ -222,14 +222,14 @@ static int vino_mmap(struct video_device *dev, const char *adr,
}
}
static
struct
video_device
vino_dev
=
{
static
struct
video_device
vino_dev
=
{
owner:
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
name:
"Vino IndyCam/TV"
,
.
name
=
"Vino IndyCam/TV"
,
type:
VID_TYPE_CAPTURE
,
.
type
=
VID_TYPE_CAPTURE
,
hardware:
VID_HARDWARE_VINO
,
.
hardware
=
VID_HARDWARE_VINO
,
open:
vino_open
,
.
open
=
vino_open
,
close:
vino_close
,
.
close
=
vino_close
,
ioctl:
vino_ioctl
,
.
ioctl
=
vino_ioctl
,
mmap:
vino_mmap
,
.
mmap
=
vino_mmap
,
};
};
int
__init
init_vino
(
struct
video_device
*
dev
)
int
__init
init_vino
(
struct
video_device
*
dev
)
...
...
drivers/media/video/w9966.c
View file @
71029f06
...
@@ -179,19 +179,19 @@ static int w9966_v4l_read(struct file *file, char *buf,
...
@@ -179,19 +179,19 @@ static int w9966_v4l_read(struct file *file, char *buf,
size_t
count
,
loff_t
*
ppos
);
size_t
count
,
loff_t
*
ppos
);
static
struct
file_operations
w9966_fops
=
{
static
struct
file_operations
w9966_fops
=
{
owner:
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
open:
video_exclusive_open
,
.
open
=
video_exclusive_open
,
release:
video_exclusive_release
,
.
release
=
video_exclusive_release
,
ioctl:
w9966_v4l_ioctl
,
.
ioctl
=
w9966_v4l_ioctl
,
read:
w9966_v4l_read
,
.
read
=
w9966_v4l_read
,
llseek:
no_llseek
,
.
llseek
=
no_llseek
,
};
};
static
struct
video_device
w9966_template
=
{
static
struct
video_device
w9966_template
=
{
owner:
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
name:
W9966_DRIVERNAME
,
.
name
=
W9966_DRIVERNAME
,
type:
VID_TYPE_CAPTURE
|
VID_TYPE_SCALES
,
.
type
=
VID_TYPE_CAPTURE
|
VID_TYPE_SCALES
,
hardware:
VID_HARDWARE_W9966
,
.
hardware
=
VID_HARDWARE_W9966
,
fops:
&
w9966_fops
,
.
fops
=
&
w9966_fops
,
};
};
/*
/*
...
@@ -710,14 +710,13 @@ static int w9966_v4l_do_ioctl(struct inode *inode, struct file *file,
...
@@ -710,14 +710,13 @@ static int w9966_v4l_do_ioctl(struct inode *inode, struct file *file,
case
VIDIOCGCAP
:
case
VIDIOCGCAP
:
{
{
static
struct
video_capability
vcap
=
{
static
struct
video_capability
vcap
=
{
name:
W9966_DRIVERNAME
,
.
name
=
W9966_DRIVERNAME
,
type:
VID_TYPE_CAPTURE
|
VID_TYPE_SCALES
,
.
type
=
VID_TYPE_CAPTURE
|
VID_TYPE_SCALES
,
channels:
1
,
.
channels
=
1
,
audios:
0
,
.
maxwidth
=
W9966_WND_MAX_W
,
maxwidth:
W9966_WND_MAX_W
,
.
maxheight
=
W9966_WND_MAX_H
,
maxheight:
W9966_WND_MAX_H
,
.
minwidth
=
2
,
minwidth:
2
,
.
minheight
=
1
,
minheight:
1
,
};
};
struct
video_capability
*
cap
=
arg
;
struct
video_capability
*
cap
=
arg
;
*
cap
=
vcap
;
*
cap
=
vcap
;
...
...
drivers/media/video/zr36067.c
View file @
71029f06
...
@@ -4396,18 +4396,18 @@ static int zoran_init_done(struct video_device *dev)
...
@@ -4396,18 +4396,18 @@ static int zoran_init_done(struct video_device *dev)
}
}
static
struct
video_device
zoran_template
=
{
static
struct
video_device
zoran_template
=
{
owner:
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
name:
ZORAN_NAME
,
.
name
=
ZORAN_NAME
,
type:
VID_TYPE_CAPTURE
|
VID_TYPE_OVERLAY
|
VID_TYPE_CLIPPING
|
.
type
=
VID_TYPE_CAPTURE
|
VID_TYPE_OVERLAY
|
VID_TYPE_CLIPPING
|
VID_TYPE_FRAMERAM
|
VID_TYPE_SCALES
|
VID_TYPE_SUBCAPTURE
,
VID_TYPE_FRAMERAM
|
VID_TYPE_SCALES
|
VID_TYPE_SUBCAPTURE
,
hardware:
ZORAN_HARDWARE
,
.
hardware
=
ZORAN_HARDWARE
,
open:
zoran_open
,
.
open
=
zoran_open
,
close:
zoran_close
,
.
close
=
zoran_close
,
read:
zoran_read
,
.
read
=
zoran_read
,
write:
zoran_write
,
.
write
=
zoran_write
,
ioctl:
zoran_ioctl
,
.
ioctl
=
zoran_ioctl
,
mmap:
zoran_mmap
,
.
mmap
=
zoran_mmap
,
initialize:
zoran_init_done
,
.
initialize
=
zoran_init_done
,
};
};
/*
/*
...
...
drivers/media/video/zr36120.c
View file @
71029f06
...
@@ -1490,18 +1490,18 @@ int zoran_mmap(struct vm_area_struct *vma, struct video_device* dev, const char*
...
@@ -1490,18 +1490,18 @@ int zoran_mmap(struct vm_area_struct *vma, struct video_device* dev, const char*
static
struct
video_device
zr36120_template
=
static
struct
video_device
zr36120_template
=
{
{
owner:
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
name:
"UNSET"
,
.
name
=
"UNSET"
,
type:
VID_TYPE_TUNER
|
VID_TYPE_CAPTURE
|
VID_TYPE_OVERLAY
,
.
type
=
VID_TYPE_TUNER
|
VID_TYPE_CAPTURE
|
VID_TYPE_OVERLAY
,
hardware:
VID_HARDWARE_ZR36120
,
.
hardware
=
VID_HARDWARE_ZR36120
,
open:
zoran_open
,
.
open
=
zoran_open
,
close:
zoran_close
,
.
close
=
zoran_close
,
read:
zoran_read
,
.
read
=
zoran_read
,
write:
zoran_write
,
.
write
=
zoran_write
,
poll:
zoran_poll
,
.
poll
=
zoran_poll
,
ioctl:
zoran_ioctl
,
.
ioctl
=
zoran_ioctl
,
mmap:
zoran_mmap
,
.
mmap
=
zoran_mmap
,
minor:
-
1
,
.
minor
=
-
1
,
};
};
static
static
...
@@ -1826,17 +1826,17 @@ int vbi_ioctl(struct video_device *dev, unsigned int cmd, void *arg)
...
@@ -1826,17 +1826,17 @@ int vbi_ioctl(struct video_device *dev, unsigned int cmd, void *arg)
static
struct
video_device
vbi_template
=
static
struct
video_device
vbi_template
=
{
{
owner:
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
name:
"UNSET"
,
.
name
=
"UNSET"
,
type:
VID_TYPE_CAPTURE
|
VID_TYPE_TELETEXT
,
.
type
=
VID_TYPE_CAPTURE
|
VID_TYPE_TELETEXT
,
hardware:
VID_HARDWARE_ZR36120
,
.
hardware
=
VID_HARDWARE_ZR36120
,
open:
vbi_open
,
.
open
=
vbi_open
,
close:
vbi_close
,
.
close
=
vbi_close
,
read:
vbi_read
,
.
read
=
vbi_read
,
write:
zoran_write
,
.
write
=
zoran_write
,
poll:
vbi_poll
,
.
poll
=
vbi_poll
,
ioctl:
vbi_ioctl
,
.
ioctl
=
vbi_ioctl
,
minor:
-
1
,
.
minor
=
-
1
,
};
};
/*
/*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment