On 08/18/2013 05:50 PM, Jonathan Cameron wrote:
Changes since V1. 1) Deal with ext_info as well as the info_mask. In the previous set things sort of worked by coincidence of the ordering in the enum. This version handles this cleanly. 2) Dropped the bonus const in tmp006. Original message : This series first performs a bit of refactoring of the core handling of info_mask_separate and info_mask_shared_by_type. Next we introduce info_mask_shared_by_dir and info_mask_shared_by_all to allow for attributes of the form in_sampling_frequency or sampling_frequency as appropriate. Most existing drivers will make no use of the shared_by_dir case, but it is there to handle devices with both and input and output channels. There are two main reasons for adding these two cases. 1) Should result in shorter code, particularly for complex drivers. 2) Allows for in kernel consumers accessing this functionality. The intent is to follow this series with one providing a standard way of providing 'available' attributes. The combination of the two should mean that very few things are still handled via direct registration of attributes.
Makes sense and looks good, except for that enum formating issue. -- To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html