Skip to contentSkip to conversation

v4l: disable unused function.

PATCH New Gerd Knorr 1 participant 1 message Nov 19, 2004 Media (V4L/DVB)

lore
Share & tools
lore

Gerd Knorr

author
#0 lore raw

PATCH 1/1 v4l: disable unused function.

#ifdef out a currently unused (in-kernel) function, lets see if any out-of-kernel users cry. If not we can drop it altogether later on.

---
 drivers/media/video/v4l2-common.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletion(-)
drivers/media/video/v4l2-common.c +3 -1
diff -u linux-2.6.10/drivers/media/video/v4l2-common.c linux/drivers/media/video/v4l2-common.c
@@ -84,6 +84,7 @@
  *  Video Standard Operations (contributed by Michael Schimek)
  */
 
+#if 0 /* seems to have no users */
 /* This is the recommended method to deal with the framerate fields. More
    sophisticated drivers will access the fields directly. */
 unsigned int
@@ -95,6 +96,8 @@
 			(1 << 7)) / (1 << 8);
 	return 0;
 }
+EXPORT_SYMBOL(v4l2_video_std_fps);
+#endif
 
 /* Fill in the fields of a v4l2_standard structure according to the
    'id' and 'transmission' parameters.  Returns negative on error.  */
@@ -259,7 +262,6 @@
 
 /* ----------------------------------------------------------------- */
 
-EXPORT_SYMBOL(v4l2_video_std_fps);
 EXPORT_SYMBOL(v4l2_video_std_construct);
 
 EXPORT_SYMBOL(v4l2_prio_init);
Signature · 1 line
#define printk(args...) fprintf(stderr, ## args)