/Linux-v4.19/drivers/video/backlight/ |
D | pwm_bl.c | 36 struct gpio_desc *enable_gpio; member 65 if (pb->enable_gpio) in pwm_backlight_power_on() 66 gpiod_set_value_cansleep(pb->enable_gpio, 1); in pwm_backlight_power_on() 76 if (pb->enable_gpio) in pwm_backlight_power_off() 77 gpiod_set_value_cansleep(pb->enable_gpio, 0); in pwm_backlight_power_off() 385 data->enable_gpio = -EINVAL; in pwm_backlight_parse_dt() 427 if (pb->enable_gpio && gpiod_get_value(pb->enable_gpio) == 0) in pwm_backlight_initial_power_state() 485 pb->enable_gpio = devm_gpiod_get_optional(&pdev->dev, "enable", in pwm_backlight_probe() 487 if (IS_ERR(pb->enable_gpio)) { in pwm_backlight_probe() 488 ret = PTR_ERR(pb->enable_gpio); in pwm_backlight_probe() [all …]
|
/Linux-v4.19/drivers/gpu/drm/panel/ |
D | panel-lvds.c | 45 struct gpio_desc *enable_gpio; member 71 if (lvds->enable_gpio) in panel_lvds_unprepare() 72 gpiod_set_value_cansleep(lvds->enable_gpio, 0); in panel_lvds_unprepare() 95 if (lvds->enable_gpio) in panel_lvds_prepare() 96 gpiod_set_value_cansleep(lvds->enable_gpio, 1); in panel_lvds_prepare() 230 lvds->enable_gpio = devm_gpiod_get_optional(lvds->dev, "enable", in panel_lvds_probe() 232 if (IS_ERR(lvds->enable_gpio)) { in panel_lvds_probe() 233 ret = PTR_ERR(lvds->enable_gpio); in panel_lvds_probe()
|
D | panel-innolux-p079zca.c | 59 struct gpio_desc *enable_gpio; member 108 gpiod_set_value_cansleep(innolux->enable_gpio, 0); in innolux_panel_unprepare() 131 gpiod_set_value_cansleep(innolux->enable_gpio, 0); in innolux_panel_prepare() 141 gpiod_set_value_cansleep(innolux->enable_gpio, 1); in innolux_panel_prepare() 201 gpiod_set_value_cansleep(innolux->enable_gpio, 0); in innolux_panel_prepare() 481 innolux->enable_gpio = devm_gpiod_get_optional(dev, "enable", in innolux_panel_add() 483 if (IS_ERR(innolux->enable_gpio)) { in innolux_panel_add() 484 err = PTR_ERR(innolux->enable_gpio); in innolux_panel_add() 486 innolux->enable_gpio = NULL; in innolux_panel_add()
|
D | panel-jdi-lt070me05000.c | 48 struct gpio_desc *enable_gpio; member 217 gpiod_set_value(jdi->enable_gpio, 0); in jdi_panel_unprepare() 251 gpiod_set_value(jdi->enable_gpio, 1); in jdi_panel_prepare() 275 gpiod_set_value(jdi->enable_gpio, 0); in jdi_panel_prepare() 421 jdi->enable_gpio = devm_gpiod_get(dev, "enable", GPIOD_OUT_LOW); in jdi_panel_add() 422 if (IS_ERR(jdi->enable_gpio)) { in jdi_panel_add() 423 ret = PTR_ERR(jdi->enable_gpio); in jdi_panel_add()
|
D | panel-samsung-s6e3ha2.c | 239 struct gpio_desc *enable_gpio; member 533 gpiod_set_value(ctx->enable_gpio, 0); in s6e3ha2_power_on() 535 gpiod_set_value(ctx->enable_gpio, 1); in s6e3ha2_power_on() 716 ctx->enable_gpio = devm_gpiod_get(dev, "enable", GPIOD_OUT_HIGH); in s6e3ha2_probe() 717 if (IS_ERR(ctx->enable_gpio)) { in s6e3ha2_probe() 719 PTR_ERR(ctx->enable_gpio)); in s6e3ha2_probe() 720 return PTR_ERR(ctx->enable_gpio); in s6e3ha2_probe()
|
/Linux-v4.19/drivers/leds/ |
D | leds-lp8860.c | 107 struct gpio_desc *enable_gpio; member 258 if (led->enable_gpio) in lp8860_init() 259 gpiod_direction_output(led->enable_gpio, 1); in lp8860_init() 302 if (led->enable_gpio) in lp8860_init() 303 gpiod_direction_output(led->enable_gpio, 0); in lp8860_init() 410 led->enable_gpio = devm_gpiod_get_optional(&client->dev, in lp8860_probe() 412 if (IS_ERR(led->enable_gpio)) { in lp8860_probe() 413 ret = PTR_ERR(led->enable_gpio); in lp8860_probe() 464 if (led->enable_gpio) in lp8860_remove() 465 gpiod_direction_output(led->enable_gpio, 0); in lp8860_remove()
|
D | leds-lm3692x.c | 115 struct gpio_desc *enable_gpio; member 214 if (led->enable_gpio) in lm3692x_init() 215 gpiod_direction_output(led->enable_gpio, 1); in lm3692x_init() 313 if (led->enable_gpio) in lm3692x_init() 314 gpiod_direction_output(led->enable_gpio, 0); in lm3692x_init() 331 led->enable_gpio = devm_gpiod_get_optional(&led->client->dev, in lm3692x_probe_dt() 333 if (IS_ERR(led->enable_gpio)) { in lm3692x_probe_dt() 334 ret = PTR_ERR(led->enable_gpio); in lm3692x_probe_dt() 426 if (led->enable_gpio) in lm3692x_remove() 427 gpiod_direction_output(led->enable_gpio, 0); in lm3692x_remove()
|
D | leds-lp3952.c | 226 priv->enable_gpio = devm_gpiod_get(&client->dev, "nrst", in lp3952_probe() 228 if (IS_ERR(priv->enable_gpio)) { in lp3952_probe() 229 status = PTR_ERR(priv->enable_gpio); in lp3952_probe() 268 gpiod_set_value(priv->enable_gpio, 0); in lp3952_remove()
|
D | leds-lp55xx-common.c | 401 if (gpio_is_valid(pdata->enable_gpio)) { in lp55xx_init_device() 402 ret = devm_gpio_request_one(dev, pdata->enable_gpio, in lp55xx_init_device() 410 gpio_set_value(pdata->enable_gpio, 0); in lp55xx_init_device() 412 gpio_set_value(pdata->enable_gpio, 1); in lp55xx_init_device() 453 if (gpio_is_valid(pdata->enable_gpio)) in lp55xx_deinit_device() 454 gpio_set_value(pdata->enable_gpio, 0); in lp55xx_deinit_device() 585 pdata->enable_gpio = of_get_named_gpio(np, "enable-gpio", 0); in lp55xx_of_populate_pdata()
|
/Linux-v4.19/sound/soc/codecs/ |
D | ssm2518.c | 118 int enable_gpio; member 487 if (gpio_is_valid(ssm2518->enable_gpio)) in ssm2518_set_power() 488 gpio_set_value(ssm2518->enable_gpio, enable); in ssm2518_set_power() 750 ssm2518->enable_gpio = pdata->enable_gpio; in ssm2518_i2c_probe() 752 ssm2518->enable_gpio = of_get_gpio(i2c->dev.of_node, 0); in ssm2518_i2c_probe() 753 if (ssm2518->enable_gpio < 0 && ssm2518->enable_gpio != -ENOENT) in ssm2518_i2c_probe() 754 return ssm2518->enable_gpio; in ssm2518_i2c_probe() 756 ssm2518->enable_gpio = -1; in ssm2518_i2c_probe() 759 if (gpio_is_valid(ssm2518->enable_gpio)) { in ssm2518_i2c_probe() 760 ret = devm_gpio_request_one(&i2c->dev, ssm2518->enable_gpio, in ssm2518_i2c_probe()
|
D | tas2552.c | 77 struct gpio_desc *enable_gpio; member 499 gpiod_set_value(tas2552->enable_gpio, 0); in tas2552_runtime_suspend() 508 gpiod_set_value(tas2552->enable_gpio, 1); in tas2552_runtime_resume() 589 gpiod_set_value(tas2552->enable_gpio, 1); in tas2552_component_probe() 613 gpiod_set_value(tas2552->enable_gpio, 0); in tas2552_component_probe() 626 gpiod_set_value(tas2552->enable_gpio, 0); in tas2552_component_remove() 703 data->enable_gpio = devm_gpiod_get_optional(dev, "enable", in tas2552_probe() 705 if (IS_ERR(data->enable_gpio)) in tas2552_probe() 706 return PTR_ERR(data->enable_gpio); in tas2552_probe()
|
/Linux-v4.19/drivers/video/fbdev/omap2/omapfb/displays/ |
D | panel-dpi.c | 34 struct gpio_desc *enable_gpio; member 86 gpiod_set_value_cansleep(ddata->enable_gpio, 1); in panel_dpi_enable() 107 gpiod_set_value_cansleep(ddata->enable_gpio, 0); in panel_dpi_disable() 184 r = devm_gpio_request_one(&pdev->dev, pdata->enable_gpio, in panel_dpi_probe_pdata() 189 ddata->enable_gpio = gpio_to_desc(pdata->enable_gpio); in panel_dpi_probe_pdata() 214 ddata->enable_gpio = gpio; in panel_dpi_probe_of()
|
D | encoder-opa362.c | 29 struct gpio_desc *enable_gpio; member 100 if (ddata->enable_gpio) in opa362_enable() 101 gpiod_set_value_cansleep(ddata->enable_gpio, 1); in opa362_enable() 118 if (ddata->enable_gpio) in opa362_disable() 119 gpiod_set_value_cansleep(ddata->enable_gpio, 0); in opa362_disable() 208 ddata->enable_gpio = gpio; in opa362_probe()
|
D | panel-lgphilips-lb035q02.c | 55 struct gpio_desc *enable_gpio; member 169 if (ddata->enable_gpio) in lb035q02_enable() 170 gpiod_set_value_cansleep(ddata->enable_gpio, 1); in lb035q02_enable() 188 if (ddata->enable_gpio) in lb035q02_disable() 189 gpiod_set_value_cansleep(ddata->enable_gpio, 0); in lb035q02_disable() 255 ddata->enable_gpio = gpio; in lb035q02_probe_of()
|
/Linux-v4.19/drivers/gpu/drm/omapdrm/displays/ |
D | encoder-opa362.c | 28 struct gpio_desc *enable_gpio; member 111 if (ddata->enable_gpio) in opa362_enable() 112 gpiod_set_value_cansleep(ddata->enable_gpio, 1); in opa362_enable() 129 if (ddata->enable_gpio) in opa362_disable() 130 gpiod_set_value_cansleep(ddata->enable_gpio, 0); in opa362_disable() 203 ddata->enable_gpio = gpio; in opa362_probe()
|
D | panel-lgphilips-lb035q02.c | 54 struct gpio_desc *enable_gpio; member 178 if (ddata->enable_gpio) in lb035q02_enable() 179 gpiod_set_value_cansleep(ddata->enable_gpio, 1); in lb035q02_enable() 194 if (ddata->enable_gpio) in lb035q02_disable() 195 gpiod_set_value_cansleep(ddata->enable_gpio, 0); in lb035q02_disable() 254 ddata->enable_gpio = gpio; in lb035q02_probe_of()
|
D | panel-dpi.c | 32 struct gpio_desc *enable_gpio; member 101 gpiod_set_value_cansleep(ddata->enable_gpio, 1); in panel_dpi_enable() 119 gpiod_set_value_cansleep(ddata->enable_gpio, 0); in panel_dpi_disable() 180 ddata->enable_gpio = gpio; in panel_dpi_probe_of()
|
/Linux-v4.19/arch/arm/mach-s3c64xx/ |
D | dev-backlight.c | 68 .enable_gpio = -1, 114 if (bl_data->enable_gpio >= 0) in samsung_bl_set() 115 samsung_bl_data->enable_gpio = bl_data->enable_gpio; in samsung_bl_set()
|
/Linux-v4.19/drivers/input/misc/ |
D | drv260x.c | 195 struct gpio_desc *enable_gpio; member 261 gpiod_set_value(haptics->enable_gpio, 1); in drv260x_worker() 310 gpiod_set_value(haptics->enable_gpio, 0); in drv260x_close() 534 haptics->enable_gpio = devm_gpiod_get_optional(dev, "enable", in drv260x_probe() 536 if (IS_ERR(haptics->enable_gpio)) in drv260x_probe() 537 return PTR_ERR(haptics->enable_gpio); in drv260x_probe() 601 gpiod_set_value(haptics->enable_gpio, 0); in drv260x_suspend() 639 gpiod_set_value(haptics->enable_gpio, 1); in drv260x_resume()
|
/Linux-v4.19/drivers/gpu/drm/tilcdc/ |
D | tilcdc_panel.c | 35 struct gpio_desc *enable_gpio; member 54 struct gpio_desc *gpio = panel_encoder->mod->enable_gpio; in panel_encoder_dpms() 349 panel_mod->enable_gpio = devm_gpiod_get_optional(&pdev->dev, "enable", in panel_probe() 351 if (IS_ERR(panel_mod->enable_gpio)) { in panel_probe() 352 ret = PTR_ERR(panel_mod->enable_gpio); in panel_probe() 357 if (panel_mod->enable_gpio) in panel_probe()
|
/Linux-v4.19/drivers/regulator/ |
D | gpio-regulator.c | 164 config->enable_gpio = of_get_named_gpio(np, "enable-gpio", 0); in of_get_gpio_regulator_config() 165 if (config->enable_gpio < 0 && config->enable_gpio != -ENOENT) in of_get_gpio_regulator_config() 166 return ERR_PTR(config->enable_gpio); in of_get_gpio_regulator_config() 343 if (gpio_is_valid(config->enable_gpio)) { in gpio_regulator_probe() 344 cfg.ena_gpio = config->enable_gpio; in gpio_regulator_probe()
|
/Linux-v4.19/drivers/media/i2c/ |
D | rj54n1cb0c.c | 156 struct gpio_desc *enable_gpio; member 1172 if (rj54n1->enable_gpio) in rj54n1_s_power() 1173 gpiod_set_value(rj54n1->enable_gpio, 1); in rj54n1_s_power() 1182 if (rj54n1->enable_gpio) in rj54n1_s_power() 1183 gpiod_set_value(rj54n1->enable_gpio, 0); in rj54n1_s_power() 1367 rj54n1->enable_gpio = gpiod_get_optional(&client->dev, "enable", in rj54n1_probe() 1369 if (IS_ERR(rj54n1->enable_gpio)) { in rj54n1_probe() 1371 PTR_ERR(rj54n1->enable_gpio)); in rj54n1_probe() 1372 ret = PTR_ERR(rj54n1->enable_gpio); in rj54n1_probe() 1387 if (rj54n1->enable_gpio) in rj54n1_probe() [all …]
|
D | adp1653.c | 314 gpiod_set_value(flash->platform_data->enable_gpio, on); in __adp1653_set_power() 330 gpiod_set_value(flash->platform_data->enable_gpio, 0); in __adp1653_set_power() 463 pd->enable_gpio = devm_gpiod_get(&client->dev, "enable", GPIOD_OUT_LOW); in adp1653_of_init() 464 if (IS_ERR(pd->enable_gpio)) { in adp1653_of_init() 466 return PTR_ERR(pd->enable_gpio); in adp1653_of_init()
|
/Linux-v4.19/drivers/phy/motorola/ |
D | phy-mapphone-mdm6600.c | 109 struct gpio_desc *enable_gpio = ddata->ctrl_gpios[PHY_MDM6600_ENABLE]; in phy_mdm6600_init() local 114 gpiod_set_value_cansleep(enable_gpio, 0); in phy_mdm6600_init() 122 struct gpio_desc *enable_gpio = ddata->ctrl_gpios[PHY_MDM6600_ENABLE]; in phy_mdm6600_power_on() local 127 gpiod_set_value_cansleep(enable_gpio, 1); in phy_mdm6600_power_on() 135 struct gpio_desc *enable_gpio = ddata->ctrl_gpios[PHY_MDM6600_ENABLE]; in phy_mdm6600_power_off() local 140 gpiod_set_value_cansleep(enable_gpio, 0); in phy_mdm6600_power_off()
|
/Linux-v4.19/drivers/bluetooth/ |
D | hci_ll.c | 81 struct gpio_desc *enable_gpio; member 178 gpiod_set_value_cansleep(lldev->enable_gpio, 0); in ll_close() 619 gpiod_set_value_cansleep(lldev->enable_gpio, 0); in ll_setup() 621 gpiod_set_value_cansleep(lldev->enable_gpio, 1); in ll_setup() 692 lldev->enable_gpio = devm_gpiod_get_optional(&serdev->dev, "enable", GPIOD_OUT_LOW); in hci_ti_probe() 693 if (IS_ERR(lldev->enable_gpio)) in hci_ti_probe() 694 return PTR_ERR(lldev->enable_gpio); in hci_ti_probe()
|