/* Return the pointer to register settings of specific afec.  */
static uint8_t _afec_get_regs(const uint32_t hw_addr)
/* Return the pointer to register settings of specific afec.  */
static uint8_t _afec_get_regs(const uint32_t hw_addr)
{
	uint8_t n = _afec_get_hardware_index((const void *)hw_addr);
	uint8_t i;
	for (i = 0; i < sizeof(_afecs) / sizeof(struct afec_configuration); i++) {
		if (_afecs[i].number == n) {
			return i;
		}
	}
	return 0;
}