/* Get the assigned source of the given LED channel.  */
static int lp5562_get_led_source(const struct device *dev, enum lp5562_led_channels channel, enum lp5562_led_sources *source)
/* Get the assigned source of the given LED channel.  */
static int lp5562_get_led_source(const struct device *dev, enum lp5562_led_channels channel, enum lp5562_led_sources *source)
{
	const struct lp5562_config *config = dev->config;
	uint8_t led_map;
	if (i2c_reg_read_byte_dt(&config->bus, LP5562_LED_MAP, &led_map)) {
		return -EIO;
	}
	*source = (led_map >> (channel << 1)) & LP5562_MASK;
	return 0;
}