Lines Matching refs:data
47 struct gpio_extcon_data *data =
51 state = gpiod_get_value_cansleep(data->gpiod);
52 extcon_set_state_sync(data->edev, data->extcon_id, state);
57 struct gpio_extcon_data *data = dev_id;
59 queue_delayed_work(system_power_efficient_wq, &data->work,
60 data->debounce_jiffies);
66 struct gpio_extcon_data *data;
72 data = devm_kzalloc(dev, sizeof(struct gpio_extcon_data), GFP_KERNEL);
73 if (!data)
83 if (data->extcon_id > EXTCON_NONE)
86 data->gpiod = devm_gpiod_get(dev, "extcon", GPIOD_IN);
87 if (IS_ERR(data->gpiod))
88 return PTR_ERR(data->gpiod);
89 irq = gpiod_to_irq(data->gpiod);
99 if (gpiod_is_active_low(data->gpiod))
105 data->edev = devm_extcon_dev_allocate(dev, &data->extcon_id);
106 if (IS_ERR(data->edev)) {
111 ret = devm_extcon_dev_register(dev, data->edev);
115 INIT_DELAYED_WORK(&data->work, gpio_extcon_work);
123 pdev->name, data);
127 platform_set_drvdata(pdev, data);
129 gpio_extcon_work(&data->work.work);
136 struct gpio_extcon_data *data = platform_get_drvdata(pdev);
138 cancel_delayed_work_sync(&data->work);
146 struct gpio_extcon_data *data;
148 data = dev_get_drvdata(dev);
149 if (data->check_on_resume)
151 &data->work, data->debounce_jiffies);