consumer_ir: add array length to get carrier freq
Change-Id: Iefb424db6f16ffefa40da56c765c9b7a24bea397
diff --git a/include/hardware/consumerir.h b/include/hardware/consumerir.h
index 491f852..5adf6be 100644
--- a/include/hardware/consumerir.h
+++ b/include/hardware/consumerir.h
@@ -66,12 +66,12 @@
* (*get_carrier_freqs)() is called by the ConsumerIrService to enumerate
* which frequencies the IR transmitter supports. The HAL implementation
* should fill an array of consumerir_freq_range structs with the
- * appropriate values for the transmitter.
+ * appropriate values for the transmitter, up to len elements.
*
* returns: the number of ranges on success. A negative error code on error.
*/
int (*get_carrier_freqs)(struct consumerir_device *dev,
- consumerir_freq_range_t *ranges);
+ size_t len, consumerir_freq_range_t *ranges);
/* Reserved for future use. Must be NULL. */
void* reserved[8 - 3];