Searched refs:torch_gpio (Results 1 – 2 of 2) sorted by relevance
81 struct gpio_desc *torch_gpio; member223 if (flash->torch_gpio) in sgm3784_set_mode()224 gpiod_direction_output(flash->torch_gpio, 0); in sgm3784_set_mode()233 if (flash->torch_gpio) { in sgm3784_set_mode()246 if (flash->torch_gpio) in sgm3784_set_mode()247 gpiod_direction_output(flash->torch_gpio, 1); in sgm3784_set_mode()251 if (flash->torch_gpio) in sgm3784_set_mode()252 gpiod_direction_output(flash->torch_gpio, 0); in sgm3784_set_mode()627 flash->torch_gpio = devm_gpiod_get(&client->dev, in sgm3784_of_init()629 if (IS_ERR(flash->torch_gpio)) { in sgm3784_of_init()[all …]
120 struct gpio_desc *torch_gpio; member306 if (flash->torch_gpio) { in aw36518_set_mode()309 gpiod_set_value_cansleep(flash->torch_gpio, 1); in aw36518_set_mode()314 if (flash->torch_gpio) { in aw36518_set_mode()317 gpiod_set_value_cansleep(flash->torch_gpio, 0); in aw36518_set_mode()727 flash->torch_gpio = devm_gpiod_get(&client->dev, in aw36518_of_init()729 if (IS_ERR(flash->torch_gpio)) { in aw36518_of_init()730 flash->torch_gpio = NULL; in aw36518_of_init()818 if (flash->torch_gpio) in aw36518_init_device()819 gpiod_set_value_cansleep(flash->torch_gpio, 0); in aw36518_init_device()