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
8317d517
Commit
8317d517
authored
Mar 25, 2011
by
Samuel Ortiz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mfd: Clean up max8997 IRQ namespace
Signed-off-by:
Samuel Ortiz
<
sameo@linux.intel.com
>
parent
d6f7ce9f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
drivers/mfd/max8997-irq.c
drivers/mfd/max8997-irq.c
+8
-8
No files found.
drivers/mfd/max8997-irq.c
View file @
8317d517
...
...
@@ -115,14 +115,14 @@ static const struct max8997_irq_data max8997_irqs[] = {
static
void
max8997_irq_lock
(
struct
irq_data
*
data
)
{
struct
max8997_dev
*
max8997
=
get_irq
_chip_data
(
data
->
irq
);
struct
max8997_dev
*
max8997
=
irq_get
_chip_data
(
data
->
irq
);
mutex_lock
(
&
max8997
->
irqlock
);
}
static
void
max8997_irq_sync_unlock
(
struct
irq_data
*
data
)
{
struct
max8997_dev
*
max8997
=
get_irq
_chip_data
(
data
->
irq
);
struct
max8997_dev
*
max8997
=
irq_get
_chip_data
(
data
->
irq
);
int
i
;
for
(
i
=
0
;
i
<
MAX8997_IRQ_GROUP_NR
;
i
++
)
{
...
...
@@ -149,7 +149,7 @@ irq_to_max8997_irq(struct max8997_dev *max8997, int irq)
static
void
max8997_irq_mask
(
struct
irq_data
*
data
)
{
struct
max8997_dev
*
max8997
=
get_irq
_chip_data
(
data
->
irq
);
struct
max8997_dev
*
max8997
=
irq_get
_chip_data
(
data
->
irq
);
const
struct
max8997_irq_data
*
irq_data
=
irq_to_max8997_irq
(
max8997
,
data
->
irq
);
...
...
@@ -158,7 +158,7 @@ static void max8997_irq_mask(struct irq_data *data)
static
void
max8997_irq_unmask
(
struct
irq_data
*
data
)
{
struct
max8997_dev
*
max8997
=
get_irq
_chip_data
(
data
->
irq
);
struct
max8997_dev
*
max8997
=
irq_get
_chip_data
(
data
->
irq
);
const
struct
max8997_irq_data
*
irq_data
=
irq_to_max8997_irq
(
max8997
,
data
->
irq
);
...
...
@@ -332,14 +332,14 @@ int max8997_irq_init(struct max8997_dev *max8997)
/* Register with genirq */
for
(
i
=
0
;
i
<
MAX8997_IRQ_NR
;
i
++
)
{
cur_irq
=
i
+
max8997
->
irq_base
;
set_irq
_chip_data
(
cur_irq
,
max8997
);
set_irq
_chip_and_handler
(
cur_irq
,
&
max8997_irq_chip
,
irq_set
_chip_data
(
cur_irq
,
max8997
);
irq_set
_chip_and_handler
(
cur_irq
,
&
max8997_irq_chip
,
handle_edge_irq
);
set_irq
_nested_thread
(
cur_irq
,
1
);
irq_set
_nested_thread
(
cur_irq
,
1
);
#ifdef CONFIG_ARM
set_irq_flags
(
cur_irq
,
IRQF_VALID
);
#else
set_irq
_noprobe
(
cur_irq
);
irq_set
_noprobe
(
cur_irq
);
#endif
}
...
...
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