Skip to content

Commit

Permalink
[PATCH] media-radio: Maestro avoid accessing private structures directly
Browse files Browse the repository at this point in the history
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: Jiri Slaby <jirislaby@gmail.com>
Cc: Greg KH <greg@kroah.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Jiri Slaby authored and Linus Torvalds committed Jan 10, 2006
1 parent 0eaa21f commit f86e776
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/media/radio/radio-maestro.c
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ static inline int radio_function(struct inode *inode, struct file *file,
unsigned int cmd, void *arg)
{
struct video_device *dev = video_devdata(file);
struct radio_device *card = dev->priv;
struct radio_device *card = video_get_drvdata(dev);

switch (cmd) {
case VIDIOCGCAP: {
Expand Down Expand Up @@ -256,7 +256,7 @@ static int radio_ioctl(struct inode *inode, struct file *file,
unsigned int cmd, unsigned long arg)
{
struct video_device *dev = video_devdata(file);
struct radio_device *card = dev->priv;
struct radio_device *card = video_get_drvdata(dev);
int ret;

down(&card->lock);
Expand Down

0 comments on commit f86e776

Please sign in to comment.