/* Get the base address for programs of the given execution engine.  */
static int lp5562_get_engine_ram_base_addr(enum lp5562_led_sources engine, uint8_t *base_addr)
/* Get the base address for programs of the given execution engine.  */
static int lp5562_get_engine_ram_base_addr(enum lp5562_led_sources engine, uint8_t *base_addr)
{
	switch (engine) {
	case LP5562_SOURCE_ENGINE_1:
		*base_addr = LP5562_PROG_MEM_ENG1_BASE;
		break;
	case LP5562_SOURCE_ENGINE_2:
		*base_addr = LP5562_PROG_MEM_ENG2_BASE;
		break;
	case LP5562_SOURCE_ENGINE_3:
		*base_addr = LP5562_PROG_MEM_ENG3_BASE;
		break;
	default:
		return -EINVAL;
	}
	return 0;
}