/drivers/phy/ |
D | phy-can-transceiver.c | 23 struct gpio_desc *enable_gpio; member 33 if (can_transceiver_phy->enable_gpio) in can_transceiver_phy_power_on() 34 gpiod_set_value_cansleep(can_transceiver_phy->enable_gpio, 1); in can_transceiver_phy_power_on() 46 if (can_transceiver_phy->enable_gpio) in can_transceiver_phy_power_off() 47 gpiod_set_value_cansleep(can_transceiver_phy->enable_gpio, 0); in can_transceiver_phy_power_off() 88 struct gpio_desc *enable_gpio; in can_transceiver_phy_probe() local 121 enable_gpio = devm_gpiod_get(dev, "enable", GPIOD_OUT_LOW); in can_transceiver_phy_probe() 122 if (IS_ERR(enable_gpio)) in can_transceiver_phy_probe() 123 return PTR_ERR(enable_gpio); in can_transceiver_phy_probe() 124 can_transceiver_phy->enable_gpio = enable_gpio; in can_transceiver_phy_probe()
|
/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 | 38 struct gpio_desc *enable_gpio; member 53 if (lvds->enable_gpio) in panel_lvds_unprepare() 54 gpiod_set_value_cansleep(lvds->enable_gpio, 0); in panel_lvds_unprepare() 77 if (lvds->enable_gpio) in panel_lvds_prepare() 78 gpiod_set_value_cansleep(lvds->enable_gpio, 1); in panel_lvds_prepare() 206 lvds->enable_gpio = devm_gpiod_get_optional(lvds->dev, "enable", in panel_lvds_probe() 208 if (IS_ERR(lvds->enable_gpio)) { in panel_lvds_probe() 209 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-boe-tv101wum-nl6.c | 52 struct gpio_desc *enable_gpio; member 512 gpiod_set_value(boe->enable_gpio, 0); in boe_panel_unprepare() 516 gpiod_set_value(boe->enable_gpio, 0); in boe_panel_unprepare() 537 gpiod_set_value(boe->enable_gpio, 0); in boe_panel_prepare() 559 gpiod_set_value(boe->enable_gpio, 1); in boe_panel_prepare() 561 gpiod_set_value(boe->enable_gpio, 0); in boe_panel_prepare() 563 gpiod_set_value(boe->enable_gpio, 1); in boe_panel_prepare() 583 gpiod_set_value(boe->enable_gpio, 0); in boe_panel_prepare() 781 boe->enable_gpio = devm_gpiod_get(dev, "enable", GPIOD_OUT_LOW); in boe_panel_add() 782 if (IS_ERR(boe->enable_gpio)) { in boe_panel_add() [all …]
|
D | panel-boe-himax8279d.c | 48 struct gpio_desc *enable_gpio; member 63 gpiod_set_value(pinfo->enable_gpio, 0); in disable_gpios() 146 gpiod_set_value(pinfo->enable_gpio, 1); in boe_panel_prepare() 150 gpiod_set_value(pinfo->enable_gpio, 0); in boe_panel_prepare() 154 gpiod_set_value(pinfo->enable_gpio, 1); in boe_panel_prepare() 872 pinfo->enable_gpio = devm_gpiod_get(dev, "enable", GPIOD_OUT_HIGH); in panel_add() 873 if (IS_ERR(pinfo->enable_gpio)) { in panel_add() 874 ret = PTR_ERR(pinfo->enable_gpio); in panel_add()
|
D | panel-innolux-p079zca.c | 54 struct gpio_desc *enable_gpio; member 98 gpiod_set_value_cansleep(innolux->enable_gpio, 0); in innolux_panel_unprepare() 121 gpiod_set_value_cansleep(innolux->enable_gpio, 0); in innolux_panel_prepare() 131 gpiod_set_value_cansleep(innolux->enable_gpio, 1); in innolux_panel_prepare() 187 gpiod_set_value_cansleep(innolux->enable_gpio, 0); in innolux_panel_prepare() 456 innolux->enable_gpio = devm_gpiod_get_optional(dev, "enable", in innolux_panel_add() 458 if (IS_ERR(innolux->enable_gpio)) { in innolux_panel_add() 459 err = PTR_ERR(innolux->enable_gpio); in innolux_panel_add() 461 innolux->enable_gpio = NULL; in innolux_panel_add()
|
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() 275 lcd->enable_gpio = devm_gpiod_get(dev, "enable", GPIOD_OUT_LOW); in lcd_olinuxino_probe() 276 if (IS_ERR(lcd->enable_gpio)) in lcd_olinuxino_probe() 277 return PTR_ERR(lcd->enable_gpio); in lcd_olinuxino_probe()
|
D | panel-jdi-lt070me05000.c | 39 struct gpio_desc *enable_gpio; member 208 gpiod_set_value(jdi->enable_gpio, 0); in jdi_panel_unprepare() 242 gpiod_set_value(jdi->enable_gpio, 1); in jdi_panel_prepare() 266 gpiod_set_value(jdi->enable_gpio, 0); in jdi_panel_prepare() 412 jdi->enable_gpio = devm_gpiod_get(dev, "enable", GPIOD_OUT_LOW); in jdi_panel_add() 413 if (IS_ERR(jdi->enable_gpio)) { in jdi_panel_add() 414 ret = PTR_ERR(jdi->enable_gpio); in jdi_panel_add()
|
/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 | rtq6752-regulator.c | 46 struct gpio_desc *enable_gpio; member 57 if (priv->enable_gpio) { in rtq6752_set_vdd_enable() 58 gpiod_set_value(priv->enable_gpio, 1); in rtq6752_set_vdd_enable() 96 if (priv->enable_gpio) in rtq6752_set_vdd_disable() 97 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()
|
D | rtmv20-regulator.c | 66 struct gpio_desc *enable_gpio; member 75 gpiod_set_value(priv->enable_gpio, 1); in rtmv20_lsw_enable() 102 gpiod_set_value(priv->enable_gpio, 0); in rtmv20_lsw_disable() 337 priv->enable_gpio = devm_gpiod_get(&i2c->dev, "enable", GPIOD_OUT_HIGH); in rtmv20_probe() 338 if (IS_ERR(priv->enable_gpio)) { in rtmv20_probe() 340 return PTR_ERR(priv->enable_gpio); in rtmv20_probe() 370 gpiod_set_value(priv->enable_gpio, 0); in rtmv20_probe()
|
/drivers/leds/ |
D | leds-lp8860.c | 103 struct gpio_desc *enable_gpio; member 253 if (led->enable_gpio) in lp8860_init() 254 gpiod_direction_output(led->enable_gpio, 1); in lp8860_init() 297 if (led->enable_gpio) in lp8860_init() 298 gpiod_direction_output(led->enable_gpio, 0); in lp8860_init() 395 led->enable_gpio = devm_gpiod_get_optional(&client->dev, in lp8860_probe() 397 if (IS_ERR(led->enable_gpio)) { in lp8860_probe() 398 ret = PTR_ERR(led->enable_gpio); in lp8860_probe() 453 if (led->enable_gpio) in lp8860_remove() 454 gpiod_direction_output(led->enable_gpio, 0); in lp8860_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()
|
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() 353 if (led->enable_gpio) in lm3697_remove() 354 gpiod_direction_output(led->enable_gpio, 0); in lm3697_remove()
|
/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()
|
/drivers/video/backlight/ |
D | pwm_bl.c | 29 struct gpio_desc *enable_gpio; member 61 if (pb->enable_gpio) in pwm_backlight_power_on() 62 gpiod_set_value_cansleep(pb->enable_gpio, 1); in pwm_backlight_power_on() 75 if (pb->enable_gpio) in pwm_backlight_power_off() 76 gpiod_set_value_cansleep(pb->enable_gpio, 0); in pwm_backlight_power_off() 418 if (pb->enable_gpio && gpiod_get_value_cansleep(pb->enable_gpio) == 0) in pwm_backlight_initial_power_state() 431 if (pb->enable_gpio) in pwm_backlight_initial_power_state() 432 gpiod_direction_output(pb->enable_gpio, active); in pwm_backlight_initial_power_state() 496 pb->enable_gpio = devm_gpiod_get_optional(&pdev->dev, "enable", in pwm_backlight_probe() 498 if (IS_ERR(pb->enable_gpio)) { in pwm_backlight_probe() [all …]
|
/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()
|
/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() 311 coil->enable_gpio = devm_gpiod_get_optional(&client->dev, "enable", in ad5820_probe() 313 if (IS_ERR(coil->enable_gpio)) { in ad5820_probe() 314 ret = PTR_ERR(coil->enable_gpio); in ad5820_probe()
|
/drivers/video/fbdev/omap2/omapfb/displays/ |
D | panel-dpi.c | 31 struct gpio_desc *enable_gpio; member 78 gpiod_set_value_cansleep(ddata->enable_gpio, 1); in panel_dpi_enable() 99 gpiod_set_value_cansleep(ddata->enable_gpio, 0); in panel_dpi_disable() 176 r = devm_gpio_request_one(&pdev->dev, pdata->enable_gpio, in panel_dpi_probe_pdata() 181 ddata->enable_gpio = gpio_to_desc(pdata->enable_gpio); in panel_dpi_probe_pdata() 206 ddata->enable_gpio = gpio; in panel_dpi_probe_of()
|
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 | 52 struct gpio_desc *enable_gpio; member 166 if (ddata->enable_gpio) in lb035q02_enable() 167 gpiod_set_value_cansleep(ddata->enable_gpio, 1); in lb035q02_enable() 185 if (ddata->enable_gpio) in lb035q02_disable() 186 gpiod_set_value_cansleep(ddata->enable_gpio, 0); in lb035q02_disable() 252 ddata->enable_gpio = gpio; in lb035q02_probe_of()
|
/drivers/input/misc/ |
D | drv260x.c | 187 struct gpio_desc *enable_gpio; member 253 gpiod_set_value(haptics->enable_gpio, 1); in drv260x_worker() 302 gpiod_set_value(haptics->enable_gpio, 0); in drv260x_close() 527 haptics->enable_gpio = devm_gpiod_get_optional(dev, "enable", in drv260x_probe() 529 if (IS_ERR(haptics->enable_gpio)) in drv260x_probe() 530 return PTR_ERR(haptics->enable_gpio); in drv260x_probe() 594 gpiod_set_value(haptics->enable_gpio, 0); in drv260x_suspend() 632 gpiod_set_value(haptics->enable_gpio, 1); in drv260x_resume()
|