[PATCH 4/4] media-radio: Maestro avoid accessing private structures directly
- From: "Jiri Slaby" <xslaby@xxxxxxxxxx>
- Date: Sat, 31 Dec 2005 17:16:35 +0100
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@xxxxxxxxx>
---
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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- References:
- [PATCH 0/4] maestro radio driver rewritten to 2.6 pci api
- From: Jiri Slaby
- [PATCH 0/4] maestro radio driver rewritten to 2.6 pci api
- Prev by Date: [PATCH 1/4] media-radio: Pci probing for maestro radio
- Next by Date: [PATCH 2/4] media-radio: Maestro radio Lindent
- Previous by thread: [PATCH 1/4] media-radio: Pci probing for maestro radio
- Next by thread: [PATCH 2/4] media-radio: Maestro radio Lindent
- Index(es):
Relevant Pages
- [PATCH 2/3] s390: Replace driver_data with dev_[gs]et_drvdata
... More majordomo info at http://vger.kernel.org/majordomo-info.html ... Please
read the FAQ at http://www.tux.org/lkml/ ... Prev by Date: ... (Linux-Kernel) - Re: [patch] latency tracer, 2.6.15-rc7
... Lee ... More majordomo info at http://vger.kernel.org/majordomo-info.html
... Please read the FAQ at http://www.tux.org/lkml/ ... Prev by Date: ...
(Linux-Kernel) - [PATCH 2/12] generic __ffs()
... * fls: find last bit set. ... More majordomo info at http://vger.kernel.org/majordomo-info.html
... Please read the FAQ at http://www.tux.org/lkml/ ... Prev by Date: ...
(Linux-Kernel) - Re: RFC: Starting a stable kernel series off the 2.6 kernel
... shouldn't be complaining if you're not doing your part. ... More majordomo
info at http://vger.kernel.org/majordomo-info.html ... Please read the FAQ at http://www.tux.org/lkml/
... Prev by Date: ... (Linux-Kernel) - Re: 2.6.14.5 to 2.6.15 patch
... More majordomo info at http://vger.kernel.org/majordomo-info.html ... Please
read the FAQ at http://www.tux.org/lkml/ ... Prev by Date: ... (Linux-Kernel)