diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2012-06-23 06:47:14 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-08-09 18:43:28 -0400 |
commit | 6de7d14d7ab89454926d58cac40b46106ae2ed79 (patch) | |
tree | 1cfb38a716bd4759d5448c8c8dcecc1abf41b90f /include/media/saa7146.h | |
parent | 85397ef62a27c434136d039cc60043650a379c0d (diff) |
[media] saa7146: remove V4L2_FL_LOCK_ALL_FOPS
Add proper locking to the file operations, allowing for the removal
of the V4L2_FL_LOCK_ALL_FOPS flag.
I also removed some dead code in the form of the saa7146_devices list and
saa7146_devices_lock mutex: these were used once but that was a long time
ago.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'include/media/saa7146.h')
-rw-r--r-- | include/media/saa7146.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/include/media/saa7146.h b/include/media/saa7146.h index 773e527deabe..96058a5a4acc 100644 --- a/include/media/saa7146.h +++ b/include/media/saa7146.h | |||
@@ -117,8 +117,6 @@ struct saa7146_dev | |||
117 | { | 117 | { |
118 | struct module *module; | 118 | struct module *module; |
119 | 119 | ||
120 | struct list_head item; | ||
121 | |||
122 | struct v4l2_device v4l2_dev; | 120 | struct v4l2_device v4l2_dev; |
123 | struct v4l2_ctrl_handler ctrl_handler; | 121 | struct v4l2_ctrl_handler ctrl_handler; |
124 | 122 | ||
@@ -166,8 +164,6 @@ static inline struct saa7146_dev *to_saa7146_dev(struct v4l2_device *v4l2_dev) | |||
166 | int saa7146_i2c_adapter_prepare(struct saa7146_dev *dev, struct i2c_adapter *i2c_adapter, u32 bitrate); | 164 | int saa7146_i2c_adapter_prepare(struct saa7146_dev *dev, struct i2c_adapter *i2c_adapter, u32 bitrate); |
167 | 165 | ||
168 | /* from saa7146_core.c */ | 166 | /* from saa7146_core.c */ |
169 | extern struct list_head saa7146_devices; | ||
170 | extern struct mutex saa7146_devices_lock; | ||
171 | int saa7146_register_extension(struct saa7146_extension*); | 167 | int saa7146_register_extension(struct saa7146_extension*); |
172 | int saa7146_unregister_extension(struct saa7146_extension*); | 168 | int saa7146_unregister_extension(struct saa7146_extension*); |
173 | struct saa7146_format* saa7146_format_by_fourcc(struct saa7146_dev *dev, int fourcc); | 169 | struct saa7146_format* saa7146_format_by_fourcc(struct saa7146_dev *dev, int fourcc); |