lkml.org 
[lkml]   [2005]   [Dec]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Date
Subject[PATCH 4/4] media-radio: Maestro avoid accessing private structures directly
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: Jiri Slaby <jirislaby@gmail.com>

---
commit 7f0d24a69ec1df36ce01b8969217fa108fe2e92f
tree daefeb7b65d6b1a9794b57bea5b34ac39bbced21
parent a6bf47a35d16fad6207effb37532466c57d20b28
author <ku@bellona.(none)> Sat, 31 Dec 2005 17:04:14 +0100
committer <ku@bellona.(none)> Sat, 31 Dec 2005 17:04:14 +0100

drivers/media/radio/radio-maestro.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/media/radio/radio-maestro.c b/drivers/media/radio/radio-maestro.c
--- a/drivers/media/radio/radio-maestro.c
+++ b/drivers/media/radio/radio-maestro.c
@@ -182,7 +182,7 @@ static inline int radio_function(struct
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: {
@@ -258,7 +258,7 @@ static int radio_ioctl(struct inode *ino
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);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-12-31 17:19    [W:0.063 / U:4.780 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site