The meaty patch is the first one, making the chip use exactly as much power as needed. The other two are a code cleanup and the addition of an optional GPIO reset pin. Changes since v2: - don't reformat code in a patch that also changes functionality. Changes since v1: - having an interrupt is now optional. If none is available, raw reads just sleep for the amount of time defined in the datasheet before reading registers. Vlad Dogaru (3): iio: sx9500: optimize power usage iio: sx9500: refactor GPIO interrupt code iio: sx9500: add GPIO reset pin drivers/iio/proximity/sx9500.c | 415 +++++++++++++++++++++++++++++++++-------- 1 file changed, 340 insertions(+), 75 deletions(-) -- 1.9.1 -- 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