Lines Matching refs:mlxcpld_led
122 static struct mlxcpld_led_pdata *mlxcpld_led; variable
272 spin_lock(&mlxcpld_led->lock); in mlxcpld_led_store_hw()
279 spin_unlock(&mlxcpld_led->lock); in mlxcpld_led_store_hw()
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()
353 mlxcpld_led->profile[i].base_color; in mlxcpld_led_config()
355 if (mlxcpld_led->profile[i].brightness) in mlxcpld_led_config()
357 mlxcpld_led->profile[i].brightness); in mlxcpld_led_config()
368 mlxcpld_led = devm_kzalloc(&pdev->dev, sizeof(*mlxcpld_led), in mlxcpld_led_probe()
370 if (!mlxcpld_led) in mlxcpld_led_probe()
373 mlxcpld_led->pdev = pdev; in mlxcpld_led_probe()
377 mlxcpld_led->profile = mlxcpld_led_msn2100_profile; in mlxcpld_led_probe()
378 mlxcpld_led->num_led_instances = in mlxcpld_led_probe()
383 mlxcpld_led->profile = mlxcpld_led_default_profile; in mlxcpld_led_probe()
384 mlxcpld_led->num_led_instances = in mlxcpld_led_probe()
389 spin_lock_init(&mlxcpld_led->lock); in mlxcpld_led_probe()
391 return mlxcpld_led_config(&pdev->dev, mlxcpld_led); in mlxcpld_led_probe()
425 platform_device_unregister(mlxcpld_led->pdev); in mlxcpld_led_exit()