public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [patch] use print_dev_t() for sysfs dev file in videodev.c
@ 2003-09-29 11:06 Gerd Knorr
  0 siblings, 0 replies; only message in thread
From: Gerd Knorr @ 2003-09-29 11:06 UTC (permalink / raw)
  To: Linus Torvalds, Kernel List

Trivial one-liner, $subject says all.

please apply,

  Gerd

--- drivers/media/video/videodev.c.sysfs	2003-09-29 12:39:08.243219904 +0200
+++ drivers/media/video/videodev.c	2003-09-29 12:39:23.531895672 +0200
@@ -52,7 +52,7 @@
 {
 	struct video_device *vfd = container_of(cd, struct video_device, class_dev);
 	dev_t dev = MKDEV(VIDEO_MAJOR, vfd->minor);
-	return sprintf(buf,"%04x\n",old_encode_dev(dev));
+	return print_dev_t(buf,dev);
 }
 
 static CLASS_DEVICE_ATTR(name, S_IRUGO, show_name, NULL);


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-09-29 11:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-29 11:06 [patch] use print_dev_t() for sysfs dev file in videodev.c Gerd Knorr

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