diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2013-04-13 06:41:29 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-04-16 17:02:54 -0400 |
commit | 95c232a24b73199f464e3234510ae4729196f38d (patch) | |
tree | d5bf425511367d1610a4d7769971f008ff09c469 /drivers/media/pci/cx25821/cx25821-video.h | |
parent | 6b1dce251fa21caea4e0021fd3fd0d8dcdece784 (diff) |
[media] cx25821: make lots of externals static
A lot of functions and variables were external when they really can be
declared as static.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/pci/cx25821/cx25821-video.h')
-rw-r--r-- | drivers/media/pci/cx25821/cx25821-video.h | 74 |
1 files changed, 0 insertions, 74 deletions
diff --git a/drivers/media/pci/cx25821/cx25821-video.h b/drivers/media/pci/cx25821/cx25821-video.h index 505b7f0b45b4..9d70020d9256 100644 --- a/drivers/media/pci/cx25821/cx25821-video.h +++ b/drivers/media/pci/cx25821/cx25821-video.h | |||
@@ -63,97 +63,23 @@ do { \ | |||
63 | #define MEDUSA_READ 910 | 63 | #define MEDUSA_READ 910 |
64 | #define MEDUSA_WRITE 911 | 64 | #define MEDUSA_WRITE 911 |
65 | 65 | ||
66 | extern unsigned int vid_limit; | ||
67 | |||
68 | #define FORMAT_FLAGS_PACKED 0x01 | 66 | #define FORMAT_FLAGS_PACKED 0x01 |
69 | extern struct cx25821_fmt formats[]; | ||
70 | extern struct cx25821_fmt *cx25821_format_by_fourcc(unsigned int fourcc); | ||
71 | extern struct cx25821_data timeout_data[MAX_VID_CHANNEL_NUM]; | ||
72 | |||
73 | extern void cx25821_video_wakeup(struct cx25821_dev *dev, | 67 | extern void cx25821_video_wakeup(struct cx25821_dev *dev, |
74 | struct cx25821_dmaqueue *q, u32 count); | 68 | struct cx25821_dmaqueue *q, u32 count); |
75 | 69 | ||
76 | extern int cx25821_set_tvnorm(struct cx25821_dev *dev, v4l2_std_id norm); | ||
77 | |||
78 | extern int cx25821_res_get(struct cx25821_dev *dev, struct cx25821_fh *fh, | 70 | extern int cx25821_res_get(struct cx25821_dev *dev, struct cx25821_fh *fh, |
79 | unsigned int bit); | 71 | unsigned int bit); |
80 | extern int cx25821_res_check(struct cx25821_fh *fh, unsigned int bit); | 72 | extern int cx25821_res_check(struct cx25821_fh *fh, unsigned int bit); |
81 | extern int cx25821_res_locked(struct cx25821_fh *fh, unsigned int bit); | 73 | extern int cx25821_res_locked(struct cx25821_fh *fh, unsigned int bit); |
82 | extern void cx25821_res_free(struct cx25821_dev *dev, struct cx25821_fh *fh, | 74 | extern void cx25821_res_free(struct cx25821_dev *dev, struct cx25821_fh *fh, |
83 | unsigned int bits); | 75 | unsigned int bits); |
84 | extern int cx25821_video_mux(struct cx25821_dev *dev, unsigned int input); | ||
85 | extern int cx25821_start_video_dma(struct cx25821_dev *dev, | 76 | extern int cx25821_start_video_dma(struct cx25821_dev *dev, |
86 | struct cx25821_dmaqueue *q, | 77 | struct cx25821_dmaqueue *q, |
87 | struct cx25821_buffer *buf, | 78 | struct cx25821_buffer *buf, |
88 | const struct sram_channel *channel); | 79 | const struct sram_channel *channel); |
89 | 80 | ||
90 | extern int cx25821_set_scale(struct cx25821_dev *dev, unsigned int width, | ||
91 | unsigned int height, enum v4l2_field field); | ||
92 | extern int cx25821_video_irq(struct cx25821_dev *dev, int chan_num, u32 status); | 81 | extern int cx25821_video_irq(struct cx25821_dev *dev, int chan_num, u32 status); |
93 | extern void cx25821_video_unregister(struct cx25821_dev *dev, int chan_num); | 82 | extern void cx25821_video_unregister(struct cx25821_dev *dev, int chan_num); |
94 | extern int cx25821_video_register(struct cx25821_dev *dev); | 83 | extern int cx25821_video_register(struct cx25821_dev *dev); |
95 | extern int cx25821_get_format_size(void); | ||
96 | |||
97 | extern int cx25821_buffer_setup(struct videobuf_queue *q, unsigned int *count, | ||
98 | unsigned int *size); | ||
99 | extern int cx25821_buffer_prepare(struct videobuf_queue *q, | ||
100 | struct videobuf_buffer *vb, | ||
101 | enum v4l2_field field); | ||
102 | extern void cx25821_buffer_release(struct videobuf_queue *q, | ||
103 | struct videobuf_buffer *vb); | ||
104 | extern struct videobuf_queue *get_queue(struct cx25821_fh *fh); | ||
105 | extern int cx25821_get_resource(struct cx25821_fh *fh, int resource); | ||
106 | extern int cx25821_video_mmap(struct file *file, struct vm_area_struct *vma); | ||
107 | extern int cx25821_vidioc_try_fmt_vid_cap(struct file *file, void *priv, | ||
108 | struct v4l2_format *f); | ||
109 | extern int cx25821_vidioc_querycap(struct file *file, void *priv, | ||
110 | struct v4l2_capability *cap); | ||
111 | extern int cx25821_vidioc_enum_fmt_vid_cap(struct file *file, void *priv, | ||
112 | struct v4l2_fmtdesc *f); | ||
113 | extern int cx25821_vidioc_reqbufs(struct file *file, void *priv, | ||
114 | struct v4l2_requestbuffers *p); | ||
115 | extern int cx25821_vidioc_querybuf(struct file *file, void *priv, | ||
116 | struct v4l2_buffer *p); | ||
117 | extern int cx25821_vidioc_qbuf(struct file *file, void *priv, | ||
118 | struct v4l2_buffer *p); | ||
119 | extern int cx25821_vidioc_s_std(struct file *file, void *priv, | ||
120 | v4l2_std_id tvnorms); | ||
121 | extern int cx25821_enum_input(struct cx25821_dev *dev, struct v4l2_input *i); | ||
122 | extern int cx25821_vidioc_enum_input(struct file *file, void *priv, | ||
123 | struct v4l2_input *i); | ||
124 | extern int cx25821_vidioc_g_input(struct file *file, void *priv, | ||
125 | unsigned int *i); | ||
126 | extern int cx25821_vidioc_s_input(struct file *file, void *priv, | ||
127 | unsigned int i); | ||
128 | extern int cx25821_vidioc_g_ctrl(struct file *file, void *priv, | ||
129 | struct v4l2_control *ctl); | ||
130 | extern int cx25821_vidioc_g_fmt_vid_cap(struct file *file, void *priv, | ||
131 | struct v4l2_format *f); | ||
132 | extern int cx25821_vidioc_g_register(struct file *file, void *fh, | ||
133 | struct v4l2_dbg_register *reg); | ||
134 | extern int cx25821_vidioc_s_register(struct file *file, void *fh, | ||
135 | const struct v4l2_dbg_register *reg); | ||
136 | |||
137 | extern int cx25821_is_valid_width(u32 width, v4l2_std_id tvnorm); | ||
138 | extern int cx25821_is_valid_height(u32 height, v4l2_std_id tvnorm); | ||
139 | |||
140 | extern int cx25821_vidioc_g_priority(struct file *file, void *f, | ||
141 | enum v4l2_priority *p); | ||
142 | extern int cx25821_vidioc_s_priority(struct file *file, void *f, | ||
143 | enum v4l2_priority prio); | ||
144 | |||
145 | extern int cx25821_vidioc_queryctrl(struct file *file, void *priv, | ||
146 | struct v4l2_queryctrl *qctrl); | ||
147 | extern int cx25821_set_control(struct cx25821_dev *dev, | ||
148 | struct v4l2_control *ctrl, int chan_num); | ||
149 | |||
150 | extern int cx25821_vidioc_cropcap(struct file *file, void *fh, | ||
151 | struct v4l2_cropcap *cropcap); | ||
152 | extern int cx25821_vidioc_s_crop(struct file *file, void *priv, | ||
153 | const struct v4l2_crop *crop); | ||
154 | extern int cx25821_vidioc_g_crop(struct file *file, void *priv, | ||
155 | struct v4l2_crop *crop); | ||
156 | 84 | ||
157 | extern int cx25821_vidioc_querystd(struct file *file, void *priv, | ||
158 | v4l2_std_id *norm); | ||
159 | #endif | 85 | #endif |