Lines Matching defs:mlxcpld_led
122 static struct mlxcpld_led_pdata *mlxcpld_led;
272 spin_lock(&mlxcpld_led->lock);
279 spin_unlock(&mlxcpld_led->lock);
350 cpld->pled[i].param.offset = mlxcpld_led->profile[i].offset;
351 cpld->pled[i].param.mask = mlxcpld_led->profile[i].mask;
353 mlxcpld_led->profile[i].base_color;
355 if (mlxcpld_led->profile[i].brightness)
357 mlxcpld_led->profile[i].brightness);
368 mlxcpld_led = devm_kzalloc(&pdev->dev, sizeof(*mlxcpld_led),
370 if (!mlxcpld_led)
373 mlxcpld_led->pdev = pdev;
377 mlxcpld_led->profile = mlxcpld_led_msn2100_profile;
378 mlxcpld_led->num_led_instances =
383 mlxcpld_led->profile = mlxcpld_led_default_profile;
384 mlxcpld_led->num_led_instances =
389 spin_lock_init(&mlxcpld_led->lock);
391 return mlxcpld_led_config(&pdev->dev, mlxcpld_led);
425 platform_device_unregister(mlxcpld_led->pdev);