2010년 6월 7일 월요일

About v4l2_int_device_dummy()

a dummy slave that has no functionality. Helps
managing slaves in the OMAP 3 camera driver; no need to check for NULL
pointers.

static struct v4l2_int_slave dummy_slave = {
/* Dummy pointer to avoid underflow in find_ioctl. */
.ioctls = (void *)0x80000000,
.num_ioctls = 0,
};

static struct v4l2_int_device dummy = {
.type = v4l2_int_type_slave,
.u = {
.slave = &dummy_slave,
},
};

struct v4l2_int_device *v4l2_int_device_dummy()
{
return &dummy;
}
EXPORT_SYMBOL_GPL(v4l2_int_device_dummy);

댓글 없음:

댓글 쓰기