On Fri, 7 Jun 2013, Hans Verkuil wrote: > Stupid question perhaps, but why is soc_camera_device a platform_device? Partially that's historic. > It's weird. The camera host device is definitely a platform_device, and > the video nodes are childs of that platform_device, but soc_camera_device > doesn't map to any hardware. Using platform devices for camera sensors etc. is a way to inform the soc-camera core about them. Soc-camera core registers a platform driver, which probes those devices, and then, once soc-camera hosts register with the soc-camera core, they are matched against those platform devices. Yes, this could also be done differently - hosts could just pass lists of respective camera sensor descriptors, but soc-camera is currently using a different approach. This anyway is going to disappear once we convert to asynchronous probing... Thanks Guennadi --- Guennadi Liakhovetski, Ph.D. Freelance Open-Source Software Developer http://www.open-technology.de/ -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html