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