consumerir: move consumerir_get_num_carrier_freqs before first use

* Implicit declaration results in static/non-static mismatch

Change-Id: I1ff2682697a45e37c28f71f580480296306704e8
tirimbino
Kevin F. Haggerty 8 years ago
parent 6b7dda74ee
commit fcb04eaa42
  1. 10
      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
*/

Loading…
Cancel
Save