Lines Matching refs:maxleds
145 u8 maxleds = data->chip_info->num_leds; in pca9532_setpwm() local
148 i2c_smbus_write_byte_data(client, PCA9532_REG_PWM(maxleds, pwm), in pca9532_setpwm()
150 i2c_smbus_write_byte_data(client, PCA9532_REG_PSC(maxleds, pwm), in pca9532_setpwm()
161 u8 maxleds = data->chip_info->num_leds; in pca9532_setled() local
165 reg = i2c_smbus_read_byte_data(client, LED_REG(maxleds, led->id)); in pca9532_setled()
170 i2c_smbus_write_byte_data(client, LED_REG(maxleds, led->id), reg); in pca9532_setled()
247 u8 maxleds = data->chip_info->num_leds; in pca9532_input_work() local
250 i2c_smbus_write_byte_data(data->client, PCA9532_REG_PWM(maxleds, 1), in pca9532_input_work()
259 u8 maxleds = data->chip_info->num_leds; in pca9532_getled() local
264 reg = i2c_smbus_read_byte_data(client, LED_REG(maxleds, led->id)); in pca9532_getled()
358 u8 maxleds = data->chip_info->num_leds; in pca9532_configure() local
363 i2c_smbus_write_byte_data(client, PCA9532_REG_PWM(maxleds, i), in pca9532_configure()
365 i2c_smbus_write_byte_data(client, PCA9532_REG_PSC(maxleds, i), in pca9532_configure()
472 int devid, maxleds; in pca9532_of_populate_pdata() local
477 maxleds = pca9532_chip_info_tbl[devid].num_leds; in pca9532_of_populate_pdata()
501 if (++i >= maxleds) { in pca9532_of_populate_pdata()