diff --git a/consumerir/consumerir.c b/consumerir/consumerir.c index c707a5b4..e41d447c 100644 --- a/consumerir/consumerir.c +++ b/consumerir/consumerir.c @@ -133,6 +133,11 @@ error: return -ENOMEM; } +static int consumerir_get_num_carrier_freqs(UNUSED struct consumerir_device *dev) +{ + return ARRAY_SIZE(consumerir_freqs); +} + static int consumerir_get_carrier_freqs(struct consumerir_device *dev, size_t len, consumerir_freq_range_t *ranges) { @@ -151,11 +156,6 @@ static int consumerir_close(hw_device_t *dev) return 0; } -static int consumerir_get_num_carrier_freqs(UNUSED struct consumerir_device *dev) -{ - return ARRAY_SIZE(consumerir_freqs); -} - /* * Generic device handling */