Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
2307f3aa
Commit
2307f3aa
authored
Feb 20, 2016
by
Linus Walleij
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "gpio: remove broken irq_to_gpio() interface"
This reverts commit
ee2204a3
.
parent
bd203bd5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
include/linux/gpio.h
include/linux/gpio.h
+12
-0
No files found.
include/linux/gpio.h
View file @
2307f3aa
...
...
@@ -70,6 +70,11 @@ static inline int gpio_to_irq(unsigned int gpio)
return
__gpio_to_irq
(
gpio
);
}
static
inline
int
irq_to_gpio
(
unsigned
int
irq
)
{
return
-
EINVAL
;
}
#endif
/* ! CONFIG_ARCH_HAVE_CUSTOM_GPIO_H */
/* CONFIG_GPIOLIB: bindings for managed devices that want to request gpios */
...
...
@@ -217,6 +222,13 @@ static inline void gpiochip_unlock_as_irq(struct gpio_chip *chip,
WARN_ON
(
1
);
}
static
inline
int
irq_to_gpio
(
unsigned
irq
)
{
/* irq can never have been returned from gpio_to_irq() */
WARN_ON
(
1
);
return
-
EINVAL
;
}
static
inline
int
gpiochip_add_pin_range
(
struct
gpio_chip
*
chip
,
const
char
*
pinctl_name
,
unsigned
int
gpio_offset
,
unsigned
int
pin_offset
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment