Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-elphel
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
linux-elphel
Commits
a43adf2b
Commit
a43adf2b
authored
Jan 29, 2016
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
strnicmp -> strncasecmp
parent
35086086
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
clk-si5338.c
src/drivers/clk/clk-si5338.c
+4
-4
No files found.
src/drivers/clk/clk-si5338.c
View file @
a43adf2b
...
...
@@ -3272,7 +3272,7 @@ static int set_out_route(struct i2c_client *client, const char* route, int chn)
int
rc
;
if
(((
rc
=
_verify_output_channel
(
client
,
chn
)))
<
0
)
return
rc
;
/* parse string */
if
((
strn
i
cmp
(
cp
,
"in"
,
2
)
==
0
))
{
if
((
strn
case
cmp
(
cp
,
"in"
,
2
)
==
0
))
{
cp
+=
2
;
if
((
strncmp
(
cp
,
"12"
,
2
)
==
0
))
{
cp
+=
2
;
...
...
@@ -3288,11 +3288,11 @@ static int set_out_route(struct i2c_client *client, const char* route, int chn)
src
=
3
;
}
else
return
-
EINVAL
;
/* invalid input number(s) */
src_group
=
0
;
}
else
if
((
strn
i
cmp
(
cp
,
"xo"
,
2
)
==
0
))
{
}
else
if
((
strn
case
cmp
(
cp
,
"xo"
,
2
)
==
0
))
{
cp
+=
2
;
src_group
=
1
;
src
=
0
;
}
else
if
((
strn
i
cmp
(
cp
,
"ms"
,
2
)
==
0
))
{
}
else
if
((
strn
case
cmp
(
cp
,
"ms"
,
2
)
==
0
))
{
cp
+=
2
;
src
=
cp
[
0
]
-
'0'
;
cp
++
;
...
...
@@ -3301,7 +3301,7 @@ static int set_out_route(struct i2c_client *client, const char* route, int chn)
}
src_group
=
2
;
div1
=-
1
;
}
else
if
((
strn
i
cmp
(
cp
,
"no"
,
2
)
==
0
))
{
}
else
if
((
strn
case
cmp
(
cp
,
"no"
,
2
)
==
0
))
{
cp
+=
2
;
src_group
=
3
;
}
else
return
-
EINVAL
;
...
...
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