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
db903b46
Commit
db903b46
authored
Jan 15, 2016
by
Yoshinori Sato
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
h8300: Restraint of warning.
Signed-off-by:
Yoshinori Sato
<
ysato@users.sourceforge.jp
>
parent
96ff2d70
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
arch/h8300/include/asm/io.h
arch/h8300/include/asm/io.h
+4
-4
No files found.
arch/h8300/include/asm/io.h
View file @
db903b46
...
@@ -44,17 +44,17 @@ static inline void __raw_writel(u32 b, const volatile void __iomem *addr)
...
@@ -44,17 +44,17 @@ static inline void __raw_writel(u32 b, const volatile void __iomem *addr)
static
inline
void
ctrl_bclr
(
int
b
,
void
__iomem
*
addr
)
static
inline
void
ctrl_bclr
(
int
b
,
void
__iomem
*
addr
)
{
{
if
(
__builtin_constant_p
(
b
))
if
(
__builtin_constant_p
(
b
))
__asm__
(
"bclr %1,%0"
:
"+WU"
(
*
addr
)
:
"i"
(
b
));
__asm__
(
"bclr %1,%0"
:
"+WU"
(
*
(
u8
*
)
addr
)
:
"i"
(
b
));
else
else
__asm__
(
"bclr %w1,%0"
:
"+WU"
(
*
addr
)
:
"r"
(
b
));
__asm__
(
"bclr %w1,%0"
:
"+WU"
(
*
(
u8
*
)
addr
)
:
"r"
(
b
));
}
}
static
inline
void
ctrl_bset
(
int
b
,
void
__iomem
*
addr
)
static
inline
void
ctrl_bset
(
int
b
,
void
__iomem
*
addr
)
{
{
if
(
__builtin_constant_p
(
b
))
if
(
__builtin_constant_p
(
b
))
__asm__
(
"bset %1,%0"
:
"+WU"
(
*
addr
)
:
"i"
(
b
));
__asm__
(
"bset %1,%0"
:
"+WU"
(
*
(
u8
*
)
addr
)
:
"i"
(
b
));
else
else
__asm__
(
"bset %w1,%0"
:
"+WU"
(
*
addr
)
:
"r"
(
b
));
__asm__
(
"bset %w1,%0"
:
"+WU"
(
*
(
u8
*
)
addr
)
:
"r"
(
b
));
}
}
#include <asm-generic/io.h>
#include <asm-generic/io.h>
...
...
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