Lines Matching refs:cpld
327 struct mlxcpld_led_pdata *cpld) in mlxcpld_led_config() argument
332 cpld->pled = devm_kcalloc(dev, in mlxcpld_led_config()
333 cpld->num_led_instances, in mlxcpld_led_config()
336 if (!cpld->pled) in mlxcpld_led_config()
339 for (i = 0; i < cpld->num_led_instances; i++) { in mlxcpld_led_config()
340 cpld->pled[i].cdev.name = cpld->profile[i].name; in mlxcpld_led_config()
341 cpld->pled[i].cdev.brightness = cpld->profile[i].brightness; in mlxcpld_led_config()
342 cpld->pled[i].cdev.max_brightness = 1; in mlxcpld_led_config()
343 cpld->pled[i].cdev.brightness_set = mlxcpld_led_brightness_set; in mlxcpld_led_config()
344 cpld->pled[i].cdev.blink_set = mlxcpld_led_blink_set; in mlxcpld_led_config()
345 cpld->pled[i].cdev.flags = LED_CORE_SUSPENDRESUME; in mlxcpld_led_config()
346 err = devm_led_classdev_register(dev, &cpld->pled[i].cdev); in mlxcpld_led_config()
350 cpld->pled[i].param.offset = mlxcpld_led->profile[i].offset; in mlxcpld_led_config()
351 cpld->pled[i].param.mask = mlxcpld_led->profile[i].mask; in mlxcpld_led_config()
352 cpld->pled[i].param.base_color = in mlxcpld_led_config()
356 mlxcpld_led_brightness_set(&cpld->pled[i].cdev, in mlxcpld_led_config()