On 09/07/15 18:23, Matt Ranostay wrote: > Hello Jonathan, > > I am currently working on temperature sensor that has multiple trip > points, and was wondering what would be the correct way to tie this to > one channel if several events may have the same IIO_EV_DIR_* > direction. > > low temp trippoint - > IIO_EV_DIR_FALLING > high temp trippoint -> IIO_EV_DIR_RISING > critical temp trippoint -> ? > > Would it make sensor to add functionality to allow iio_event_spec to > have an .index field so multiple IIO_EV_DIR_RISING could be parsed > into sysfs entries? > > > Thanks, > > Matt > Hi Matt, The few times this has come up before, the conclusion has been that the device was actually more suited to have a hwmon driver than an IIO one. We have had event units capable of being configured for this sort of operation but have never actually implemented it. You are quite correct in that we don't have a current way to support it. An index field and appropriate extension of the abi is fine. However you've also got to find somewhere in the event code to place it. That's nastier from an ABI change point of view. -- 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