Commit f86e7767 authored by Jiri Slaby's avatar Jiri Slaby Committed by Linus Torvalds

[PATCH] media-radio: Maestro avoid accessing private structures directly

video_device.priv is not allowed to touch and it will be actually removed in
near future.  Use video_get_drvdata() instead.
Signed-off-by: default avatarJiri Slaby <jirislaby@gmail.com>
Cc: Greg KH <greg@kroah.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 0eaa21fd
...@@ -180,7 +180,7 @@ static inline int radio_function(struct inode *inode, struct file *file, ...@@ -180,7 +180,7 @@ static inline int radio_function(struct inode *inode, struct file *file,
unsigned int cmd, void *arg) unsigned int cmd, void *arg)
{ {
struct video_device *dev = video_devdata(file); struct video_device *dev = video_devdata(file);
struct radio_device *card = dev->priv; struct radio_device *card = video_get_drvdata(dev);
switch (cmd) { switch (cmd) {
case VIDIOCGCAP: { case VIDIOCGCAP: {
...@@ -256,7 +256,7 @@ static int radio_ioctl(struct inode *inode, struct file *file, ...@@ -256,7 +256,7 @@ static int radio_ioctl(struct inode *inode, struct file *file,
unsigned int cmd, unsigned long arg) unsigned int cmd, unsigned long arg)
{ {
struct video_device *dev = video_devdata(file); struct video_device *dev = video_devdata(file);
struct radio_device *card = dev->priv; struct radio_device *card = video_get_drvdata(dev);
int ret; int ret;
down(&card->lock); down(&card->lock);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment