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
Kirill Smelkov
linux
Commits
4d348e6e
Commit
4d348e6e
authored
Dec 11, 2012
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'regmap/topic/domain' into regmap-next
parents
bcf86687
90f790d2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
0 deletions
+21
-0
drivers/base/regmap/regmap-irq.c
drivers/base/regmap/regmap-irq.c
+19
-0
include/linux/regmap.h
include/linux/regmap.h
+2
-0
No files found.
drivers/base/regmap/regmap-irq.c
View file @
4d348e6e
...
...
@@ -458,3 +458,22 @@ int regmap_irq_get_virq(struct regmap_irq_chip_data *data, int irq)
return
irq_create_mapping
(
data
->
domain
,
irq
);
}
EXPORT_SYMBOL_GPL
(
regmap_irq_get_virq
);
/**
* regmap_irq_get_domain(): Retrieve the irq_domain for the chip
*
* Useful for drivers to request their own IRQs and for integration
* with subsystems. For ease of integration NULL is accepted as a
* domain, allowing devices to just call this even if no domain is
* allocated.
*
* @data: regmap_irq controller to operate on.
*/
struct
irq_domain
*
regmap_irq_get_domain
(
struct
regmap_irq_chip_data
*
data
)
{
if
(
data
)
return
data
->
domain
;
else
return
NULL
;
}
EXPORT_SYMBOL_GPL
(
regmap_irq_get_domain
);
include/linux/regmap.h
View file @
4d348e6e
...
...
@@ -19,6 +19,7 @@
struct
module
;
struct
device
;
struct
i2c_client
;
struct
irq_domain
;
struct
spi_device
;
struct
regmap
;
struct
regmap_range_cfg
;
...
...
@@ -321,6 +322,7 @@ int regmap_add_irq_chip(struct regmap *map, int irq, int irq_flags,
void
regmap_del_irq_chip
(
int
irq
,
struct
regmap_irq_chip_data
*
data
);
int
regmap_irq_chip_get_base
(
struct
regmap_irq_chip_data
*
data
);
int
regmap_irq_get_virq
(
struct
regmap_irq_chip_data
*
data
,
int
irq
);
struct
irq_domain
*
regmap_irq_get_domain
(
struct
regmap_irq_chip_data
*
data
);
#else
...
...
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