public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] VIDEO4LINUX-2: Replace MINOR() with a call to iminor().
@ 2007-04-28 10:32 Robert P. J. Day
  2007-05-01 17:03 ` Mauro Carvalho Chehab
  0 siblings, 1 reply; 3+ messages in thread
From: Robert P. J. Day @ 2007-04-28 10:32 UTC (permalink / raw)
  To: Linux Kernel Mailing List; +Cc: Andrew Morton, michael


Replace the call to MINOR() with a call to the inline iminor()
routine.

Signed-off-by: Robert P. J. Day <rpjday@mindspring.com>

---

that's the last of those changes, but it's not clear who the official
maintainer is, so i took a chance and picked a likely looking victim
out of the MAINTAINERS file.  apologies if i picked wrong.


diff --git a/drivers/media/video/ivtv/ivtv-fileops.c b/drivers/media/video/ivtv/ivtv-fileops.c
index 1637097..8976487 100644
--- a/drivers/media/video/ivtv/ivtv-fileops.c
+++ b/drivers/media/video/ivtv/ivtv-fileops.c
@@ -804,7 +804,7 @@ int ivtv_v4l2_open(struct inode *inode, struct file *filp)
 	struct ivtv_open_id *item;
 	struct ivtv *itv = NULL;
 	struct ivtv_stream *s = NULL;
-	int minor = MINOR(inode->i_rdev);
+	int minor = iminor(inode);

 	/* Find which card this open was on */
 	spin_lock(&ivtv_cards_lock);
-- 
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA

http://fsdev.net/wiki/index.php?title=Main_Page
========================================================================

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-05-02  7:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-28 10:32 [PATCH] VIDEO4LINUX-2: Replace MINOR() with a call to iminor() Robert P. J. Day
2007-05-01 17:03 ` Mauro Carvalho Chehab
2007-05-02  7:32   ` [v4l-dvb-maintainer] " Hans Verkuil

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox