/* Sets led current limit. 
Sets the current limit for the LED driver. This is a separate value from per-led brightness, and applies to all LEDs. This value sets the output current limit according to the following formula: (840/R_ISET) * (limit/256) See table 14 of the datasheet for additional details.  */
int is31fl3733_current_limit(const struct device *dev, uint8_t limit)
/* Sets led current limit. 
Sets the current limit for the LED driver. This is a separate value from per-led brightness, and applies to all LEDs. This value sets the output current limit according to the following formula: (840/R_ISET) * (limit/256) See table 14 of the datasheet for additional details.  */
int is31fl3733_current_limit(const struct device *dev, uint8_t limit)
{
	const struct is31fl3733_config *config = dev->config;
	int ret;
	ret = is31fl3733_select_page(dev, CMD_SEL_FUNC);
	if (ret < 0) {
		return ret;
	}
	return i2c_reg_write_byte_dt(&config->bus, GLOBAL_CURRENT_CTRL_REG, limit);
}