Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
touchgpio
Manage
Activity
Members
Labels
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SECO Northern Europe
Kernel
modules
touchgpio
Commits
4d9c37b1
Commit
4d9c37b1
authored
1 year ago
by
Tobias Kahlki
Browse files
Options
Downloads
Patches
Plain Diff
driver: Replace set/get functions with cansleep equivalents
parent
7d53e5be
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
touch_gpio.c
+4
-4
4 additions, 4 deletions
touch_gpio.c
with
4 additions
and
4 deletions
touch_gpio.c
+
4
−
4
View file @
4d9c37b1
...
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment