public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
From: Sakari Ailus <sakari.ailus@nokia.com>
To: hverkuil@xs4all.nl, video4linux-list@redhat.com
Cc: vimarsh.zutshi@nokia.com, tuukka.o.toivonen@nokia.com, hnagalla@ti.com
Subject: [PATCH 5/6] V4L: Int if: Export more interfaces to modules
Date: Tue,  7 Oct 2008 19:18:15 +0300	[thread overview]
Message-ID: <12233962962976-git-send-email-sakari.ailus@nokia.com> (raw)
In-Reply-To: <12233962962059-git-send-email-sakari.ailus@nokia.com>

Export v4l2_int_device_try_attach_all. This allows initiating the
initialisation of int if device after the drivers have been registered.

Also allow drivers to call ioctls if v4l2-int-if was compiled as
module.

Signed-off-by: Sakari Ailus <sakari.ailus@nokia.com>
---
 drivers/media/video/v4l2-int-device.c |    5 ++++-
 include/media/v4l2-int-device.h       |    2 ++
 2 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/drivers/media/video/v4l2-int-device.c b/drivers/media/video/v4l2-int-device.c
index 0e45499..a935bae 100644
--- a/drivers/media/video/v4l2-int-device.c
+++ b/drivers/media/video/v4l2-int-device.c
@@ -32,7 +32,7 @@
 static DEFINE_MUTEX(mutex);
 static LIST_HEAD(int_list);
 
-static void v4l2_int_device_try_attach_all(void)
+void v4l2_int_device_try_attach_all(void)
 {
 	struct v4l2_int_device *m, *s;
 
@@ -66,6 +66,7 @@ static void v4l2_int_device_try_attach_all(void)
 		}
 	}
 }
+EXPORT_SYMBOL_GPL(v4l2_int_device_try_attach_all);
 
 static int ioctl_sort_cmp(const void *a, const void *b)
 {
@@ -144,6 +145,7 @@ int v4l2_int_ioctl_0(struct v4l2_int_device *d, int cmd)
 		find_ioctl(d->u.slave, cmd,
 			   (v4l2_int_ioctl_func *)no_such_ioctl_0))(d);
 }
+EXPORT_SYMBOL_GPL(v4l2_int_ioctl_0);
 
 static int no_such_ioctl_1(struct v4l2_int_device *d, void *arg)
 {
@@ -156,5 +158,6 @@ int v4l2_int_ioctl_1(struct v4l2_int_device *d, int cmd, void *arg)
 		find_ioctl(d->u.slave, cmd,
 			   (v4l2_int_ioctl_func *)no_such_ioctl_1))(d, arg);
 }
+EXPORT_SYMBOL_GPL(v4l2_int_ioctl_1);
 
 MODULE_LICENSE("GPL");
diff --git a/include/media/v4l2-int-device.h b/include/media/v4l2-int-device.h
index 3351dcf..b5cee89 100644
--- a/include/media/v4l2-int-device.h
+++ b/include/media/v4l2-int-device.h
@@ -84,6 +84,8 @@ struct v4l2_int_device {
 	void *priv;
 };
 
+void v4l2_int_device_try_attach_all(void);
+
 int v4l2_int_device_register(struct v4l2_int_device *d);
 void v4l2_int_device_unregister(struct v4l2_int_device *d);
 
-- 
1.5.0.6

--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list

  reply	other threads:[~2008-10-07 16:18 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-06 11:07 [PATCH 0/6] V4L changes for OMAP 3 camera, try 2 Sakari Ailus
     [not found] ` <12232912722008-git-send-email-sakari.ailus@nokia.com>
2008-10-06 11:07   ` [PATCH] V4L: Int if: Add cropcap, g_crop and s_crop commands Sakari Ailus
2008-10-06 11:07     ` [PATCH] V4L: Add 10-bit RAW Bayer formats Sakari Ailus
2008-10-06 11:07       ` [PATCH] V4L: Int if: Define new power state changes Sakari Ailus
2008-10-06 11:07         ` [PATCH] V4L: Int if: Export more interfaces to modules Sakari Ailus
2008-10-06 11:07           ` [PATCH] V4L: Int if: Add enum_framesizes and enum_frameintervals ioctls Sakari Ailus
2008-10-06 16:38         ` [PATCH] V4L: Int if: Define new power state changes Hans Verkuil
2008-10-07 16:17           ` Sakari Ailus
     [not found]             ` <12233962961256-git-send-email-sakari.ailus@nokia.com>
2008-10-07 16:18               ` [PATCH 2/6] V4L: Int if: Add cropcap, g_crop and s_crop commands Sakari Ailus
2008-10-07 16:18                 ` [PATCH 3/6] V4L: Add 10-bit RAW Bayer formats Sakari Ailus
2008-10-07 16:18                   ` [PATCH 4/6] V4L: Int if: Define new power state changes Sakari Ailus
2008-10-07 16:18                     ` Sakari Ailus [this message]
2008-10-07 16:18                       ` [PATCH 6/6] V4L: Int if: Add enum_framesizes and enum_frameintervals ioctls Sakari Ailus
2008-10-08  6:09             ` [PATCH] V4L: Int if: Define new power state changes Hans Verkuil

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=12233962962976-git-send-email-sakari.ailus@nokia.com \
    --to=sakari.ailus@nokia.com \
    --cc=hnagalla@ti.com \
    --cc=hverkuil@xs4all.nl \
    --cc=tuukka.o.toivonen@nokia.com \
    --cc=video4linux-list@redhat.com \
    --cc=vimarsh.zutshi@nokia.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox