mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
V4L/DVB (8788): v4l: replace video_get_drvdata(video_devdata(filp)) with video_drvdata(filp)
Use the new video_drvdata(filp) function where it is safe to do so. Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
This commit is contained in:
parent
bfa8a273bb
commit
c170ecf434
26 changed files with 160 additions and 310 deletions
|
|
@ -87,8 +87,7 @@ static void snd_tea575x_set_freq(struct snd_tea575x *tea)
|
|||
static int snd_tea575x_ioctl(struct inode *inode, struct file *file,
|
||||
unsigned int cmd, unsigned long data)
|
||||
{
|
||||
struct video_device *dev = video_devdata(file);
|
||||
struct snd_tea575x *tea = video_get_drvdata(dev);
|
||||
struct snd_tea575x *tea = video_drvdata(file);
|
||||
void __user *arg = (void __user *)data;
|
||||
|
||||
switch(cmd) {
|
||||
|
|
@ -177,16 +176,14 @@ static void snd_tea575x_release(struct video_device *vfd)
|
|||
|
||||
static int snd_tea575x_exclusive_open(struct inode *inode, struct file *file)
|
||||
{
|
||||
struct video_device *dev = video_devdata(file);
|
||||
struct snd_tea575x *tea = video_get_drvdata(dev);
|
||||
struct snd_tea575x *tea = video_drvdata(file);
|
||||
|
||||
return test_and_set_bit(0, &tea->in_use) ? -EBUSY : 0;
|
||||
}
|
||||
|
||||
static int snd_tea575x_exclusive_release(struct inode *inode, struct file *file)
|
||||
{
|
||||
struct video_device *dev = video_devdata(file);
|
||||
struct snd_tea575x *tea = video_get_drvdata(dev);
|
||||
struct snd_tea575x *tea = video_drvdata(file);
|
||||
|
||||
clear_bit(0, &tea->in_use);
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue