/* Helper to get the register bit shift for the execution engines. 
The engine with the highest index is placed on the lowest two bits in the OP_MODE and ENABLE registers. */
static int lp5562_get_engine_reg_shift(enum lp5562_led_sources engine, uint8_t *shift)
/* Helper to get the register bit shift for the execution engines. 
The engine with the highest index is placed on the lowest two bits in the OP_MODE and ENABLE registers. */
static int lp5562_get_engine_reg_shift(enum lp5562_led_sources engine, uint8_t *shift)
{
	switch (engine) {
	case LP5562_SOURCE_ENGINE_1:
		*shift = 4U;
		break;
	case LP5562_SOURCE_ENGINE_2:
		*shift = 2U;
		break;
	case LP5562_SOURCE_ENGINE_3:
		*shift = 0U;
		break;
	default:
		return -EINVAL;
	}
	return 0;
}