[sensor/camera] Improve previous patch

Handle properly the generic parent case and the parent case in the group
case.
Add some big comment explaining all the fun stuff