Lines Matching refs:int3472
12 struct int3472_discrete_device *int3472 = in int3472_pled_set() local
15 gpiod_set_value_cansleep(int3472->pled.gpio, brightness); in int3472_pled_set()
19 int skl_int3472_register_pled(struct int3472_discrete_device *int3472, struct gpio_desc *gpio) in skl_int3472_register_pled() argument
24 if (int3472->pled.classdev.dev) in skl_int3472_register_pled()
27 int3472->pled.gpio = gpio; in skl_int3472_register_pled()
30 snprintf(int3472->pled.name, sizeof(int3472->pled.name), in skl_int3472_register_pled()
31 "%s::privacy_led", acpi_dev_name(int3472->sensor)); in skl_int3472_register_pled()
32 p = strchr(int3472->pled.name, ':'); in skl_int3472_register_pled()
36 int3472->pled.classdev.name = int3472->pled.name; in skl_int3472_register_pled()
37 int3472->pled.classdev.max_brightness = 1; in skl_int3472_register_pled()
38 int3472->pled.classdev.brightness_set_blocking = int3472_pled_set; in skl_int3472_register_pled()
40 ret = led_classdev_register(int3472->dev, &int3472->pled.classdev); in skl_int3472_register_pled()
44 int3472->pled.lookup.provider = int3472->pled.name; in skl_int3472_register_pled()
45 int3472->pled.lookup.dev_id = int3472->sensor_name; in skl_int3472_register_pled()
46 int3472->pled.lookup.con_id = "privacy-led"; in skl_int3472_register_pled()
47 led_add_lookup(&int3472->pled.lookup); in skl_int3472_register_pled()
52 void skl_int3472_unregister_pled(struct int3472_discrete_device *int3472) in skl_int3472_unregister_pled() argument
54 if (IS_ERR_OR_NULL(int3472->pled.classdev.dev)) in skl_int3472_unregister_pled()
57 led_remove_lookup(&int3472->pled.lookup); in skl_int3472_unregister_pled()
58 led_classdev_unregister(&int3472->pled.classdev); in skl_int3472_unregister_pled()