Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
PPSi
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
50
Issues
50
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
PPSi
Commits
7ce1eb1d
Commit
7ce1eb1d
authored
Mar 01, 2016
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
arch-wrpc: trivial: removed redundant variable/define
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
0a50c6d3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
9 deletions
+3
-9
wrc_ptp_ppsi.c
arch-wrpc/wrc_ptp_ppsi.c
+3
-4
wrpc.h
arch-wrpc/wrpc.h
+0
-5
No files found.
arch-wrpc/wrc_ptp_ppsi.c
View file @
7ce1eb1d
...
...
@@ -26,7 +26,6 @@
extern
int32_t
cal_phase_transition
;
int
ptp_mode
=
WRC_MODE_UNKNOWN
;
int
ptp_sync_mech
=
WRC_E2E
;
static
int
ptp_enabled
=
0
;
static
struct
wr_operations
wrpc_wr_operations
=
{
...
...
@@ -196,14 +195,14 @@ void wrc_ptp_set_sync_mech(int mech)
struct
pp_globals
*
ppg
=
ppi
->
glbs
;
wrc_ptp_stop
();
ppg
->
delay_mech
=
mech
;
ptp_sync_mech
=
mech
;
}
int
wrc_ptp_get_sync_mech
()
{
return
ptp_sync_mech
;
struct
pp_instance
*
ppi
=
&
ppi_static
;
struct
pp_globals
*
ppg
=
ppi
->
glbs
;
return
ppg
->
delay_mech
;
}
int
wrc_ptp_start
()
...
...
arch-wrpc/wrpc.h
View file @
7ce1eb1d
...
...
@@ -18,13 +18,8 @@
#define WRC_MODE_GM 1
#define WRC_MODE_MASTER 2
#define WRC_MODE_SLAVE 3
#define WRC_MODE_PCLOCK 4
#define WRC_E2E 0
#define WRC_P2P 1
extern
int
ptp_mode
;
extern
int
ptp_sync_mech
;
int
wrc_ptp_init
(
void
);
int
wrc_ptp_set_mode
(
int
mode
);
...
...
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