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, in skl_int3472_register_pled() argument
25 if (int3472->pled.classdev.dev) in skl_int3472_register_pled()
28 int3472->pled.gpio = acpi_get_and_request_gpiod(path, agpio->pin_table[0], in skl_int3472_register_pled()
30 if (IS_ERR(int3472->pled.gpio)) in skl_int3472_register_pled()
31 return dev_err_probe(int3472->dev, PTR_ERR(int3472->pled.gpio), in skl_int3472_register_pled()
35 gpiod_toggle_active_low(int3472->pled.gpio); in skl_int3472_register_pled()
38 gpiod_direction_output(int3472->pled.gpio, 0); in skl_int3472_register_pled()
41 snprintf(int3472->pled.name, sizeof(int3472->pled.name), in skl_int3472_register_pled()
42 "%s::privacy_led", acpi_dev_name(int3472->sensor)); in skl_int3472_register_pled()
43 p = strchr(int3472->pled.name, ':'); in skl_int3472_register_pled()
47 int3472->pled.classdev.name = int3472->pled.name; in skl_int3472_register_pled()
48 int3472->pled.classdev.max_brightness = 1; in skl_int3472_register_pled()
49 int3472->pled.classdev.brightness_set_blocking = int3472_pled_set; in skl_int3472_register_pled()
51 ret = led_classdev_register(int3472->dev, &int3472->pled.classdev); in skl_int3472_register_pled()
55 int3472->pled.lookup.provider = int3472->pled.name; in skl_int3472_register_pled()
56 int3472->pled.lookup.dev_id = int3472->sensor_name; in skl_int3472_register_pled()
57 int3472->pled.lookup.con_id = "privacy-led"; in skl_int3472_register_pled()
58 led_add_lookup(&int3472->pled.lookup); in skl_int3472_register_pled()
63 gpiod_put(int3472->pled.gpio); in skl_int3472_register_pled()
67 void skl_int3472_unregister_pled(struct int3472_discrete_device *int3472) in skl_int3472_unregister_pled() argument
69 if (IS_ERR_OR_NULL(int3472->pled.classdev.dev)) in skl_int3472_unregister_pled()
72 led_remove_lookup(&int3472->pled.lookup); in skl_int3472_unregister_pled()
73 led_classdev_unregister(&int3472->pled.classdev); in skl_int3472_unregister_pled()
74 gpiod_put(int3472->pled.gpio); in skl_int3472_unregister_pled()