Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Software for White Rabbit PTP Core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
32
Issues
32
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Schedules
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
Software for White Rabbit PTP Core
Commits
47bdfbb2
Commit
47bdfbb2
authored
Apr 11, 2017
by
Alessandro Rubini
Committed by
Adam Wujek
Jun 22, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
trivial: sfp.c: make two function static
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
94d709f8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
8 deletions
+2
-8
sfp.c
dev/sfp.c
+2
-2
sfp.h
include/sfp.h
+0
-6
No files found.
dev/sfp.c
View file @
47bdfbb2
...
...
@@ -26,12 +26,12 @@ int32_t sfp_in_db = 0;
char
sfp_pn
[
SFP_PN_LEN
];
int
sfp_present
(
void
)
static
int
sfp_present
(
void
)
{
return
!
gpio_in
(
GPIO_SFP_DET
);
}
int
sfp_read_part_id
(
char
*
part_id
)
static
int
sfp_read_part_id
(
char
*
part_id
)
{
int
i
;
uint8_t
data
,
sum
;
...
...
include/sfp.h
View file @
47bdfbb2
...
...
@@ -23,12 +23,6 @@ extern int32_t sfp_alpha;
extern
int32_t
sfp_deltaTx
;
extern
int32_t
sfp_deltaRx
;
/* Returns 1 if there's a SFP transceiver inserted in the socket. */
int
sfp_present
(
void
);
/* Reads the part ID of the SFP from its configuration EEPROM */
int
sfp_read_part_id
(
char
*
part_id
);
/* Match plugged SFP with a DB entry */
int
sfp_match
(
void
);
...
...
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