Skip to contentSkip to conversation

VIDEO4LINUX-2: Replace MINOR() with a call to iminor().

PATCH In review Robert P. J. Day 3 participants 3 messages Apr 28, 2007 – May 2, 2007 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 VIDEO4LINUX-2: Replace MINOR() with a call to iminor().

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

---

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.

drivers/media/video/ivtv/ivtv-fileops.c +1 -1
index 1637097..8976487 100644
@@ -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);
Signature · 7 lines
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA

http://fsdev.net/wiki/index.php?title=Main_Page
========================================================================
#1 lore raw

Hi Robert,

Em Sáb, 2007-04-28 às 06:32 -0400, Robert P. J. Day escreveu:

Quoted 10 lines

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

---

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.

You've picked it wrongly. The Maintainer for ivtv is Hans Verkuil. However, for every stuff under drivers/media, you can reach the active maintainers at v4l-dvb-maintainers list ([email protected]).

Hans,

If you are ok with this trivial change, please send me your acked-by or SOB for me to commit and send to mainstream.

Quoted 15 lines
drivers/media/video/ivtv/ivtv-fileops.c +1 -1
index 1637097..8976487 100644
@@ -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);
Signature · 2 lines
Cheers,
Mauro
Acked-by
#2 lore raw
Quoted 19 lines

Hi Robert,

Em Sáb, 2007-04-28 às 06:32 -0400, Robert P. J. Day escreveu:

Quoted 10 lines

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

---

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.

You've picked it wrongly. The Maintainer for ivtv is Hans Verkuil. However, for every stuff under drivers/media, you can reach the active maintainers at v4l-dvb-maintainers list ([email protected]).

Quoted 4 lines

Hans,

If you are ok with this trivial change, please send me your acked-by or SOB for me to commit and send to mainstream.

Regards,

Hans

Quoted 27 lines
Quoted 16 lines
drivers/media/video/ivtv/ivtv-fileops.c +1 -1
index 1637097..8976487 100644
@@ -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 */
Quoted 1 line

spin_lock(&ivtv_cards_lock);

--
Cheers,
Mauro

_______________________________________________
v4l-dvb-maintainer mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/v4l-dvb-maintainer