Linux V4L2驱动框架分析之(四):sensor驱动
为了实现代码的重用,sensor驱动只需实现各种设备控制方法供上层调用并注册v4l2_subdev,而无需关心video_device和v4l2_dev。struct v4l2_subdev结构体定义如下:struct v4l2_subdev { ...... struct list_head list; //用于挂入v4l2_dev的subdevs链表 struct module *owner; bool owner_v4l2_dev; u32 flags; struct v4l2_