Hi, This patchset adds reference counting to subdev file handles, which leaves it up to the user whether to keep the file handles open and thus the devices powered. Media bus code enumeration is added by the two latter patches of which the second one makes the result sorted by codes. Sakari Ailus (3): Count users for entities Implement v4l2_subdev_enum_mbus_code() Sort enumerated media bus codes src/mediactl.c | 1 - src/mediactl.h | 1 + src/v4l2subdev.c | 154 +++++++++++++++++++++++++++++++++++++++++++++--------- src/v4l2subdev.h | 32 ++++++++++-- 4 files changed, 158 insertions(+), 30 deletions(-) -- Kind regards, Sakari Ailus sakari.ailus@xxxxxx -- 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