Lines Matching refs:gpio_bus_switch
417 static int gpio_bus_switch = -EINVAL; variable
422 if (gpio_bus_switch < 0) { in pcm990_camera_set_bus_param()
430 gpio_set_value_cansleep(gpio_bus_switch, 1); in pcm990_camera_set_bus_param()
432 gpio_set_value_cansleep(gpio_bus_switch, 0); in pcm990_camera_set_bus_param()
441 if (gpio_bus_switch < 0) { in pcm990_camera_query_bus_param()
444 gpio_bus_switch = PXA_NR_BUILTIN_GPIO; in pcm990_camera_query_bus_param()
445 gpio_direction_output(gpio_bus_switch, 0); in pcm990_camera_query_bus_param()
449 if (gpio_bus_switch >= 0) in pcm990_camera_query_bus_param()
457 if (gpio_bus_switch < 0) in pcm990_camera_free_bus()
460 gpio_free(gpio_bus_switch); in pcm990_camera_free_bus()
461 gpio_bus_switch = -EINVAL; in pcm990_camera_free_bus()