Skip to content
Snippets Groups Projects
Commit 4d9c37b1 authored by Tobias Kahlki's avatar Tobias Kahlki
Browse files

driver: Replace set/get functions with cansleep equivalents

parent 7d53e5be
No related branches found
No related tags found
No related merge requests found
......@@ -368,7 +368,7 @@ void touch_gpio_reset_out ( const struct touch_gpio * gpios, bool state )
if(gpios->reset_low_active)
pin_state=!pin_state;
gpio_set_value(gpios->reset_pin, pin_state);
gpio_set_value_cansleep(gpios->reset_pin, pin_state);
}
EXPORT_SYMBOL(touch_gpio_reset_out);
......@@ -403,7 +403,7 @@ void touch_gpio_wake_out ( const struct touch_gpio * gpios, bool state )
if(gpios->wake_low_active)
pin_state=!pin_state;
gpio_set_value(gpios->wake_pin, pin_state);
gpio_set_value_cansleep(gpios->wake_pin, pin_state);
}
EXPORT_SYMBOL(touch_gpio_wake_out);
......@@ -418,7 +418,7 @@ bool touch_gpio_get_irq_state ( const struct touch_gpio * gpios)
return false;
}
pin_state = gpio_get_value(gpios->irq_pin);
pin_state = gpio_get_value_cansleep(gpios->irq_pin);
if(gpios->irq_low_active)
pin_state=!pin_state;
......@@ -470,7 +470,7 @@ void touch_gpio_irq_out ( const struct touch_gpio * gpios, bool state )
if(gpios->irq_low_active)
pin_state=!pin_state;
gpio_set_value(gpios->irq_pin, pin_state);
gpio_set_value_cansleep(gpios->irq_pin, pin_state);
}
EXPORT_SYMBOL(touch_gpio_irq_out);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment