Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 235699
b: refs/heads/master
c: dbf4805
h: refs/heads/master
i:
  235697: 60a4119
  235695: a4cc5d2
v: v3
  • Loading branch information
Tomas Winkler authored and Greg Kroah-Hartman committed Jan 24, 2011
1 parent 19125b7 commit 7d6349a
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 15 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8cbe7ae6c1fd33419cba0c210a5f2c6b586b8d35
refs/heads/master: dbf4805ee6a850e941110b0df1e96049287ecf75
2 changes: 1 addition & 1 deletion trunk/drivers/staging/easycap/easycap_ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -912,7 +912,7 @@ return -ENOENT;
* THE URB AND THE PIPELINE COLLAPSES IRRETRIEVABLY. BEWARE.
*/
/*---------------------------------------------------------------------------*/
int adjust_mute(struct easycap *peasycap, int value)
static int adjust_mute(struct easycap *peasycap, int value)
{
int i1;

Expand Down
14 changes: 10 additions & 4 deletions trunk/drivers/staging/easycap/easycap_low.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@
#include "easycap_low.h"

/*--------------------------------------------------------------------------*/
const struct stk1160config { int reg; int set; } stk1160configPAL[256] = {
static const struct stk1160config {
int reg;
int set;
} stk1160configPAL[256] = {
{0x000, 0x0098},
{0x002, 0x0093},

Expand Down Expand Up @@ -84,7 +87,7 @@ const struct stk1160config { int reg; int set; } stk1160configPAL[256] = {
{0xFFF, 0xFFFF}
};
/*--------------------------------------------------------------------------*/
const struct stk1160config stk1160configNTSC[256] = {
static const struct stk1160config stk1160configNTSC[256] = {
{0x000, 0x0098},
{0x002, 0x0093},

Expand Down Expand Up @@ -126,7 +129,10 @@ const struct stk1160config stk1160configNTSC[256] = {
{0xFFF, 0xFFFF}
};
/*--------------------------------------------------------------------------*/
const struct saa7113config { int reg; int set; } saa7113configPAL[256] = {
static const struct saa7113config{
int reg;
int set;
} saa7113configPAL[256] = {
{0x01, 0x08},
#if defined(ANTIALIAS)
{0x02, 0xC0},
Expand Down Expand Up @@ -184,7 +190,7 @@ const struct saa7113config { int reg; int set; } saa7113configPAL[256] = {
{0xFF, 0xFF}
};
/*--------------------------------------------------------------------------*/
const struct saa7113config saa7113configNTSC[256] = {
static const struct saa7113config saa7113configNTSC[256] = {
{0x01, 0x08},
#if defined(ANTIALIAS)
{0x02, 0xC0},
Expand Down
16 changes: 7 additions & 9 deletions trunk/drivers/staging/easycap/easycap_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ static struct mutex mutex_dongle;
* PARAMETERS APPLICABLE TO ENTIRE DRIVER, I.E. BOTH VIDEO AND AUDIO
*/
/*---------------------------------------------------------------------------*/
struct usb_device_id easycap_usb_device_id_table[] = {
static struct usb_device_id easycap_usb_device_id_table[] = {
{ USB_DEVICE(USB_EASYCAP_VENDOR_ID, USB_EASYCAP_PRODUCT_ID) },
{ }
};
Expand All @@ -66,7 +66,7 @@ struct usb_driver easycap_usb_driver = {
* THIS IS THE CASE FOR OpenSUSE.
*/
/*---------------------------------------------------------------------------*/
const struct file_operations easycap_fops = {
static const struct file_operations easycap_fops = {
.owner = THIS_MODULE,
.open = easycap_open,
.release = easycap_release,
Expand All @@ -79,20 +79,20 @@ const struct file_operations easycap_fops = {
.mmap = easycap_mmap,
.llseek = no_llseek,
};
struct vm_operations_struct easycap_vm_ops = {
static const struct vm_operations_struct easycap_vm_ops = {
.open = easycap_vma_open,
.close = easycap_vma_close,
.fault = easycap_vma_fault,
};
struct usb_class_driver easycap_class = {
static const struct usb_class_driver easycap_class = {
.name = "usb/easycap%d",
.fops = &easycap_fops,
.minor_base = USB_SKEL_MINOR_BASE,
};
/*vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv*/
#if defined(EASYCAP_IS_VIDEODEV_CLIENT)
#if defined(EASYCAP_NEEDS_V4L2_FOPS)
const struct v4l2_file_operations v4l2_fops = {
static const struct v4l2_file_operations v4l2_fops = {
.owner = THIS_MODULE,
.open = easycap_open_noinode,
.release = easycap_release_noinode,
Expand Down Expand Up @@ -5067,8 +5067,7 @@ JOM(4, "ends\n");
return;
}
/*****************************************************************************/
int __init
easycap_module_init(void)
static int __init easycap_module_init(void)
{
int k, rc;

Expand Down Expand Up @@ -5097,8 +5096,7 @@ JOT(4, "ends\n");
return rc;
}
/*****************************************************************************/
void __exit
easycap_module_exit(void)
static void __exit easycap_module_exit(void)
{
JOT(4, "begins\n");

Expand Down
1 change: 1 addition & 0 deletions trunk/drivers/staging/easycap/easycap_main.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ extern struct easycap_standard easycap_standard[];
extern struct easycap_format easycap_format[];
extern struct v4l2_queryctrl easycap_control[];
extern struct usb_driver easycap_usb_driver;
extern struct easycap_dongle easycapdc60_dongle[];
#if defined(EASYCAP_NEEDS_ALSA)
extern struct snd_pcm_ops easycap_alsa_ops;
extern struct snd_pcm_hardware easycap_pcm_hardware;
Expand Down
3 changes: 3 additions & 0 deletions trunk/drivers/staging/easycap/easycap_settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@
#if !defined(EASYCAP_SETTINGS_H)
#define EASYCAP_SETTINGS_H

extern const struct easycap_standard easycap_standard[];
extern struct v4l2_queryctrl easycap_control[];
extern struct easycap_format easycap_format[];
extern struct easycap_dongle easycapdc60_dongle[];

#endif /*EASYCAP_SETTINGS_H*/

0 comments on commit 7d6349a

Please sign in to comment.