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
9c2e0a6d
Commit
9c2e0a6d
authored
May 03, 2011
by
Marc Kleine-Budde
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
can: at91_can: let get_tx_* functions return unsigned int
Signed-off-by:
Marc Kleine-Budde
<
mkl@pengutronix.de
>
parent
e14ee40b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
drivers/net/can/at91_can.c
drivers/net/can/at91_can.c
+3
-3
No files found.
drivers/net/can/at91_can.c
View file @
9c2e0a6d
...
...
@@ -186,17 +186,17 @@ static struct can_bittiming_const at91_bittiming_const = {
.
brp_inc
=
1
,
};
static
inline
int
get_tx_next_mb
(
const
struct
at91_priv
*
priv
)
static
inline
unsigned
int
get_tx_next_mb
(
const
struct
at91_priv
*
priv
)
{
return
(
priv
->
tx_next
&
AT91_NEXT_MB_MASK
)
+
AT91_MB_TX_FIRST
;
}
static
inline
int
get_tx_next_prio
(
const
struct
at91_priv
*
priv
)
static
inline
unsigned
int
get_tx_next_prio
(
const
struct
at91_priv
*
priv
)
{
return
(
priv
->
tx_next
>>
AT91_NEXT_PRIO_SHIFT
)
&
0xf
;
}
static
inline
int
get_tx_echo_mb
(
const
struct
at91_priv
*
priv
)
static
inline
unsigned
int
get_tx_echo_mb
(
const
struct
at91_priv
*
priv
)
{
return
(
priv
->
tx_echo
&
AT91_NEXT_MB_MASK
)
+
AT91_MB_TX_FIRST
;
}
...
...
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