/linux-6.6.21/drivers/phy/ |
D | phy-can-transceiver.c | 25 struct gpio_desc *enable_gpio; member 44 if (can_transceiver_phy->enable_gpio) in can_transceiver_phy_power_on() 45 gpiod_set_value_cansleep(can_transceiver_phy->enable_gpio, 1); in can_transceiver_phy_power_on() 57 if (can_transceiver_phy->enable_gpio) in can_transceiver_phy_power_off() 58 gpiod_set_value_cansleep(can_transceiver_phy->enable_gpio, 0); in can_transceiver_phy_power_off() 105 struct gpio_desc *enable_gpio; in can_transceiver_phy_probe() local 148 enable_gpio = devm_gpiod_get_optional(dev, "enable", GPIOD_OUT_LOW); in can_transceiver_phy_probe() 149 if (IS_ERR(enable_gpio)) in can_transceiver_phy_probe() 150 return PTR_ERR(enable_gpio); in can_transceiver_phy_probe() 151 can_transceiver_phy->enable_gpio = enable_gpio; in can_transceiver_phy_probe()
|
/linux-6.6.21/drivers/usb/typec/mux/ |
D | gpio-sbu-mux.c | 15 struct gpio_desc *enable_gpio; member 51 gpiod_set_value(sbu_mux->enable_gpio, enabled); in gpio_sbu_switch_set() 85 gpiod_set_value(sbu_mux->enable_gpio, sbu_mux->enabled); in gpio_sbu_mux_set() 105 sbu_mux->enable_gpio = devm_gpiod_get(dev, "enable", GPIOD_OUT_LOW); in gpio_sbu_mux_probe() 106 if (IS_ERR(sbu_mux->enable_gpio)) in gpio_sbu_mux_probe() 107 return dev_err_probe(dev, PTR_ERR(sbu_mux->enable_gpio), in gpio_sbu_mux_probe() 144 gpiod_set_value(sbu_mux->enable_gpio, 0); in gpio_sbu_mux_remove()
|
/linux-6.6.21/drivers/gpu/drm/panel/ |
D | panel-kingdisplay-kd097d04.c | 25 struct gpio_desc *enable_gpio; member 217 gpiod_set_value_cansleep(kingdisplay->enable_gpio, 0); in kingdisplay_panel_unprepare() 237 gpiod_set_value_cansleep(kingdisplay->enable_gpio, 0); in kingdisplay_panel_prepare() 246 gpiod_set_value_cansleep(kingdisplay->enable_gpio, 1); in kingdisplay_panel_prepare() 283 gpiod_set_value_cansleep(kingdisplay->enable_gpio, 0); in kingdisplay_panel_prepare() 363 kingdisplay->enable_gpio = devm_gpiod_get_optional(dev, "enable", in kingdisplay_panel_add() 365 if (IS_ERR(kingdisplay->enable_gpio)) { in kingdisplay_panel_add() 366 err = PTR_ERR(kingdisplay->enable_gpio); in kingdisplay_panel_add() 368 kingdisplay->enable_gpio = NULL; in kingdisplay_panel_add()
|
D | panel-lvds.c | 39 struct gpio_desc *enable_gpio; member 54 if (lvds->enable_gpio) in panel_lvds_unprepare() 55 gpiod_set_value_cansleep(lvds->enable_gpio, 0); in panel_lvds_unprepare() 78 if (lvds->enable_gpio) in panel_lvds_prepare() 79 gpiod_set_value_cansleep(lvds->enable_gpio, 1); in panel_lvds_prepare() 192 lvds->enable_gpio = devm_gpiod_get_optional(lvds->dev, "enable", in panel_lvds_probe() 194 if (IS_ERR(lvds->enable_gpio)) { in panel_lvds_probe() 195 ret = PTR_ERR(lvds->enable_gpio); in panel_lvds_probe()
|
D | panel-lg-lb035q02.c | 27 struct gpio_desc *enable_gpio; member 113 gpiod_set_value_cansleep(lcd->enable_gpio, 0); in lb035q02_disable() 122 gpiod_set_value_cansleep(lcd->enable_gpio, 1); in lb035q02_enable() 188 lcd->enable_gpio = devm_gpiod_get(&spi->dev, "enable", GPIOD_OUT_LOW); in lb035q02_probe() 189 if (IS_ERR(lcd->enable_gpio)) { in lb035q02_probe() 191 return PTR_ERR(lcd->enable_gpio); in lb035q02_probe()
|
D | panel-khadas-ts050.c | 27 struct gpio_desc *enable_gpio; member 590 gpiod_set_value_cansleep(khadas_ts050->enable_gpio, 0); in khadas_ts050_panel_prepare() 596 gpiod_set_value_cansleep(khadas_ts050->enable_gpio, 1); in khadas_ts050_panel_prepare() 657 gpiod_set_value_cansleep(khadas_ts050->enable_gpio, 0); in khadas_ts050_panel_prepare() 681 gpiod_set_value_cansleep(khadas_ts050->enable_gpio, 0); in khadas_ts050_panel_unprepare() 786 khadas_ts050->enable_gpio = devm_gpiod_get(dev, "enable", in khadas_ts050_panel_add() 788 if (IS_ERR(khadas_ts050->enable_gpio)) in khadas_ts050_panel_add() 789 return dev_err_probe(dev, PTR_ERR(khadas_ts050->enable_gpio), in khadas_ts050_panel_add()
|
D | panel-startek-kd070fhfid015.c | 42 struct gpio_desc *enable_gpio; /* Power IC supply enable */ member 154 gpiod_set_value(stk->enable_gpio, 1); in stk_panel_unprepare() 171 gpiod_set_value(stk->enable_gpio, 0); in stk_panel_prepare() 182 gpiod_set_value(stk->enable_gpio, 1); in stk_panel_prepare() 207 gpiod_set_value(stk->enable_gpio, 0); in stk_panel_prepare() 331 stk->enable_gpio = devm_gpiod_get(dev, "enable", GPIOD_OUT_LOW); in stk_panel_add() 332 if (IS_ERR(stk->enable_gpio)) { in stk_panel_add() 333 ret = PTR_ERR(stk->enable_gpio); in stk_panel_add()
|
D | panel-boe-himax8279d.c | 47 struct gpio_desc *enable_gpio; member 62 gpiod_set_value(pinfo->enable_gpio, 0); in disable_gpios() 145 gpiod_set_value(pinfo->enable_gpio, 1); in boe_panel_prepare() 149 gpiod_set_value(pinfo->enable_gpio, 0); in boe_panel_prepare() 153 gpiod_set_value(pinfo->enable_gpio, 1); in boe_panel_prepare() 871 pinfo->enable_gpio = devm_gpiod_get(dev, "enable", GPIOD_OUT_HIGH); in panel_add() 872 if (IS_ERR(pinfo->enable_gpio)) { in panel_add() 873 ret = PTR_ERR(pinfo->enable_gpio); in panel_add()
|
D | panel-innolux-p079zca.c | 53 struct gpio_desc *enable_gpio; member 97 gpiod_set_value_cansleep(innolux->enable_gpio, 0); in innolux_panel_unprepare() 120 gpiod_set_value_cansleep(innolux->enable_gpio, 0); in innolux_panel_prepare() 130 gpiod_set_value_cansleep(innolux->enable_gpio, 1); in innolux_panel_prepare() 186 gpiod_set_value_cansleep(innolux->enable_gpio, 0); in innolux_panel_prepare() 455 innolux->enable_gpio = devm_gpiod_get_optional(dev, "enable", in innolux_panel_add() 457 if (IS_ERR(innolux->enable_gpio)) { in innolux_panel_add() 458 err = PTR_ERR(innolux->enable_gpio); in innolux_panel_add() 460 innolux->enable_gpio = NULL; in innolux_panel_add()
|
D | panel-seiko-43wvf1g.c | 52 struct gpio_desc *enable_gpio; member 144 gpiod_set_value_cansleep(p->enable_gpio, 0); in seiko_panel_unprepare() 181 gpiod_set_value_cansleep(p->enable_gpio, 1); in seiko_panel_prepare() 261 panel->enable_gpio = devm_gpiod_get_optional(dev, "enable", in seiko_panel_probe() 263 if (IS_ERR(panel->enable_gpio)) in seiko_panel_probe() 264 return dev_err_probe(dev, PTR_ERR(panel->enable_gpio), in seiko_panel_probe()
|
D | panel-olimex-lcd-olinuxino.c | 71 struct gpio_desc *enable_gpio; member 100 gpiod_set_value_cansleep(lcd->enable_gpio, 0); in lcd_olinuxino_unprepare() 120 gpiod_set_value_cansleep(lcd->enable_gpio, 1); in lcd_olinuxino_prepare() 274 lcd->enable_gpio = devm_gpiod_get(dev, "enable", GPIOD_OUT_LOW); in lcd_olinuxino_probe() 275 if (IS_ERR(lcd->enable_gpio)) in lcd_olinuxino_probe() 276 return PTR_ERR(lcd->enable_gpio); in lcd_olinuxino_probe()
|
/linux-6.6.21/drivers/regulator/ |
D | rt6245-regulator.c | 34 struct gpio_desc *enable_gpio; member 44 if (!priv->enable_gpio) in rt6245_enable() 47 gpiod_direction_output(priv->enable_gpio, 1); in rt6245_enable() 64 if (!priv->enable_gpio) in rt6245_disable() 70 gpiod_direction_output(priv->enable_gpio, 0); in rt6245_disable() 202 priv->enable_gpio = devm_gpiod_get_optional(&i2c->dev, "enable", GPIOD_OUT_HIGH); in rt6245_probe() 203 if (IS_ERR(priv->enable_gpio)) { in rt6245_probe() 205 return PTR_ERR(priv->enable_gpio); in rt6245_probe()
|
D | rt6190-regulator.c | 71 struct gpio_desc *enable_gpio; member 378 struct gpio_desc *enable_gpio; in rt6190_probe() local 389 enable_gpio = devm_gpiod_get_optional(dev, "enable", GPIOD_OUT_HIGH); in rt6190_probe() 390 if (IS_ERR(enable_gpio)) in rt6190_probe() 391 return dev_err_probe(dev, PTR_ERR(enable_gpio), "Failed to get 'enable' gpio\n"); in rt6190_probe() 392 else if (enable_gpio) in rt6190_probe() 400 data->enable_gpio = enable_gpio; in rt6190_probe() 447 if (!data->enable_gpio) in rt6190_runtime_suspend() 453 gpiod_set_value(data->enable_gpio, 0); in rt6190_runtime_suspend() 463 if (!data->enable_gpio) in rt6190_runtime_resume() [all …]
|
D | rtq6752-regulator.c | 46 struct gpio_desc *enable_gpio; member 58 if (priv->enable_gpio) { in rtq6752_set_vdd_enable() 59 gpiod_set_value(priv->enable_gpio, 1); in rtq6752_set_vdd_enable() 95 if (priv->enable_gpio) in rtq6752_set_vdd_disable() 96 gpiod_set_value(priv->enable_gpio, 0); in rtq6752_set_vdd_disable() 232 priv->enable_gpio = devm_gpiod_get_optional(&i2c->dev, "enable", in rtq6752_probe() 234 if (IS_ERR(priv->enable_gpio)) { in rtq6752_probe() 236 return PTR_ERR(priv->enable_gpio); in rtq6752_probe()
|
D | rt6160-regulator.c | 43 struct gpio_desc *enable_gpio; member 56 if (!priv->enable_gpio) in rt6160_enable() 59 gpiod_set_value_cansleep(priv->enable_gpio, 1); in rt6160_enable() 72 if (!priv->enable_gpio) in rt6160_disable() 80 gpiod_set_value_cansleep(priv->enable_gpio, 0); in rt6160_disable() 243 priv->enable_gpio = devm_gpiod_get_optional(&i2c->dev, "enable", GPIOD_OUT_HIGH); in rt6160_probe() 244 if (IS_ERR(priv->enable_gpio)) { in rt6160_probe() 246 return PTR_ERR(priv->enable_gpio); in rt6160_probe()
|
/linux-6.6.21/drivers/leds/flash/ |
D | leds-sgm3140.c | 22 struct gpio_desc *enable_gpio; member 54 gpiod_set_value_cansleep(priv->enable_gpio, 1); in sgm3140_strobe_set() 59 gpiod_set_value_cansleep(priv->enable_gpio, 0); in sgm3140_strobe_set() 117 gpiod_set_value_cansleep(priv->enable_gpio, 1); in sgm3140_brightness_set() 119 gpiod_set_value_cansleep(priv->enable_gpio, 0); in sgm3140_brightness_set() 137 gpiod_set_value(priv->enable_gpio, 0); in sgm3140_powerdown_timer() 202 priv->enable_gpio = devm_gpiod_get(&pdev->dev, "enable", GPIOD_OUT_LOW); in sgm3140_probe() 203 ret = PTR_ERR_OR_ZERO(priv->enable_gpio); in sgm3140_probe()
|
/linux-6.6.21/drivers/platform/chrome/ |
D | cros_hps_i2c.c | 26 struct gpio_desc *enable_gpio; member 31 gpiod_set_value_cansleep(hps->enable_gpio, state); in hps_set_power() 80 hps->enable_gpio = devm_gpiod_get(&client->dev, "enable", GPIOD_OUT_HIGH); in hps_i2c_probe() 81 if (IS_ERR(hps->enable_gpio)) { in hps_i2c_probe() 82 ret = PTR_ERR(hps->enable_gpio); in hps_i2c_probe()
|
/linux-6.6.21/drivers/mfd/ |
D | rt4831.c | 47 struct gpio_desc *enable_gpio; in rt4831_probe() local 52 enable_gpio = devm_gpiod_get_optional(&client->dev, "enable", GPIOD_OUT_HIGH); in rt4831_probe() 53 if (IS_ERR(enable_gpio)) { in rt4831_probe() 55 return PTR_ERR(enable_gpio); in rt4831_probe()
|
/linux-6.6.21/drivers/leds/ |
D | leds-lm3697.c | 82 struct gpio_desc *enable_gpio; member 173 if (priv->enable_gpio) { in lm3697_init() 174 gpiod_direction_output(priv->enable_gpio, 1); in lm3697_init() 213 priv->enable_gpio = devm_gpiod_get_optional(dev, "enable", in lm3697_probe_dt() 215 if (IS_ERR(priv->enable_gpio)) in lm3697_probe_dt() 216 return dev_err_probe(dev, PTR_ERR(priv->enable_gpio), in lm3697_probe_dt() 350 if (led->enable_gpio) in lm3697_remove() 351 gpiod_direction_output(led->enable_gpio, 0); in lm3697_remove()
|
D | leds-lm3692x.c | 113 struct gpio_desc *enable_gpio; member 185 if (led->enable_gpio) in lm3692x_leds_enable() 186 gpiod_direction_output(led->enable_gpio, 1); in lm3692x_leds_enable() 283 if (led->enable_gpio) in lm3692x_leds_enable() 284 gpiod_direction_output(led->enable_gpio, 0); in lm3692x_leds_enable() 310 if (led->enable_gpio) in lm3692x_leds_disable() 311 gpiod_direction_output(led->enable_gpio, 0); in lm3692x_leds_disable() 384 led->enable_gpio = devm_gpiod_get_optional(&led->client->dev, in lm3692x_probe_dt() 386 if (IS_ERR(led->enable_gpio)) { in lm3692x_probe_dt() 387 ret = PTR_ERR(led->enable_gpio); in lm3692x_probe_dt()
|
/linux-6.6.21/drivers/media/i2c/ |
D | ad5820.c | 49 struct gpio_desc *enable_gpio; member 118 gpiod_set_value_cansleep(coil->enable_gpio, 0); in ad5820_power_off() 134 gpiod_set_value_cansleep(coil->enable_gpio, 1); in ad5820_power_on() 146 gpiod_set_value_cansleep(coil->enable_gpio, 0); in ad5820_power_on() 307 coil->enable_gpio = devm_gpiod_get_optional(&client->dev, "enable", in ad5820_probe() 309 if (IS_ERR(coil->enable_gpio)) in ad5820_probe() 310 return dev_err_probe(&client->dev, PTR_ERR(coil->enable_gpio), in ad5820_probe()
|
/linux-6.6.21/drivers/video/fbdev/omap2/omapfb/displays/ |
D | encoder-opa362.c | 26 struct gpio_desc *enable_gpio; member 97 if (ddata->enable_gpio) in opa362_enable() 98 gpiod_set_value_cansleep(ddata->enable_gpio, 1); in opa362_enable() 115 if (ddata->enable_gpio) in opa362_disable() 116 gpiod_set_value_cansleep(ddata->enable_gpio, 0); in opa362_disable() 205 ddata->enable_gpio = gpio; in opa362_probe()
|
D | panel-lgphilips-lb035q02.c | 49 struct gpio_desc *enable_gpio; member 163 if (ddata->enable_gpio) in lb035q02_enable() 164 gpiod_set_value_cansleep(ddata->enable_gpio, 1); in lb035q02_enable() 179 if (ddata->enable_gpio) in lb035q02_disable() 180 gpiod_set_value_cansleep(ddata->enable_gpio, 0); in lb035q02_disable() 242 ddata->enable_gpio = gpio; in lb035q02_probe_of()
|
/linux-6.6.21/drivers/input/misc/ |
D | pwm-vibra.c | 27 struct gpio_desc *enable_gpio; member 53 gpiod_set_value_cansleep(vibrator->enable_gpio, 1); in pwm_vibrator_start() 87 gpiod_set_value_cansleep(vibrator->enable_gpio, 0); in pwm_vibrator_stop() 147 vibrator->enable_gpio = devm_gpiod_get_optional(&pdev->dev, "enable", in pwm_vibrator_probe() 149 if (IS_ERR(vibrator->enable_gpio)) in pwm_vibrator_probe() 150 return dev_err_probe(&pdev->dev, PTR_ERR(vibrator->enable_gpio), in pwm_vibrator_probe()
|
/linux-6.6.21/drivers/video/backlight/ |
D | pwm_bl.c | 29 struct gpio_desc *enable_gpio; member 57 gpiod_set_value_cansleep(pb->enable_gpio, 1); in pwm_backlight_power_on() 67 gpiod_set_value_cansleep(pb->enable_gpio, 0); in pwm_backlight_power_off() 122 state.enabled = !pb->power_supply && !pb->enable_gpio; in pwm_backlight_update_status() 417 if (pb->enable_gpio && gpiod_get_value_cansleep(pb->enable_gpio) == 0) in pwm_backlight_initial_power_state() 430 gpiod_direction_output(pb->enable_gpio, active); in pwm_backlight_initial_power_state() 493 pb->enable_gpio = devm_gpiod_get_optional(&pdev->dev, "enable", in pwm_backlight_probe() 495 if (IS_ERR(pb->enable_gpio)) { in pwm_backlight_probe() 496 ret = PTR_ERR(pb->enable_gpio); in pwm_backlight_probe()
|