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
nexedi
linux
Commits
ecfe20db
Commit
ecfe20db
authored
Apr 30, 2010
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Staging: comedi: fix up coding style issues in range.c
Signed-off-by:
Greg Kroah-Hartman
<
gregkh@suse.de
>
parent
787ae4e2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
12 deletions
+8
-12
drivers/staging/comedi/range.c
drivers/staging/comedi/range.c
+8
-12
No files found.
drivers/staging/comedi/range.c
View file @
ecfe20db
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
*/
*/
#include "comedidev.h"
#include "comedidev.h"
#include <
asm
/uaccess.h>
#include <
linux
/uaccess.h>
const
struct
comedi_lrange
range_bipolar10
=
{
1
,
{
BIP_RANGE
(
10
)}
};
const
struct
comedi_lrange
range_bipolar10
=
{
1
,
{
BIP_RANGE
(
10
)}
};
const
struct
comedi_lrange
range_bipolar5
=
{
1
,
{
BIP_RANGE
(
5
)}
};
const
struct
comedi_lrange
range_bipolar5
=
{
1
,
{
BIP_RANGE
(
5
)}
};
...
@@ -130,14 +130,10 @@ int check_chanlist(struct comedi_subdevice *s, int n, unsigned int *chanlist)
...
@@ -130,14 +130,10 @@ int check_chanlist(struct comedi_subdevice *s, int n, unsigned int *chanlist)
if
(
CR_CHAN
(
chanlist
[
i
])
>=
s
->
n_chan
||
if
(
CR_CHAN
(
chanlist
[
i
])
>=
s
->
n_chan
||
CR_RANGE
(
chanlist
[
i
])
>=
s
->
range_table
->
length
CR_RANGE
(
chanlist
[
i
])
>=
s
->
range_table
->
length
||
aref_invalid
(
s
,
chanlist
[
i
]))
{
||
aref_invalid
(
s
,
chanlist
[
i
]))
{
printk
printk
(
KERN_ERR
"bad chanlist[%d]=0x%08x "
(
"bad chanlist[%d]=0x%08x n_chan=%d range length=%d
\n
"
,
"in_chan=%d range length=%d
\n
"
,
i
,
i
,
chanlist
[
i
],
s
->
n_chan
,
chanlist
[
i
],
s
->
n_chan
,
s
->
range_table
->
length
);
s
->
range_table
->
length
);
#if 0
for (i = 0; i < n; i++)
printk("[%d]=0x%08x\n", i, chanlist[i]);
#endif
return
-
EINVAL
;
return
-
EINVAL
;
}
}
}
else
if
(
s
->
range_table_list
)
{
}
else
if
(
s
->
range_table_list
)
{
...
@@ -147,13 +143,13 @@ int check_chanlist(struct comedi_subdevice *s, int n, unsigned int *chanlist)
...
@@ -147,13 +143,13 @@ int check_chanlist(struct comedi_subdevice *s, int n, unsigned int *chanlist)
CR_RANGE
(
chanlist
[
i
])
>=
CR_RANGE
(
chanlist
[
i
])
>=
s
->
range_table_list
[
chan
]
->
length
s
->
range_table_list
[
chan
]
->
length
||
aref_invalid
(
s
,
chanlist
[
i
]))
{
||
aref_invalid
(
s
,
chanlist
[
i
]))
{
printk
(
"bad chanlist[%d]=0x%08x
\n
"
,
i
,
printk
(
KERN_ERR
"bad chanlist[%d]=0x%08x
\n
"
,
chanlist
[
i
]);
i
,
chanlist
[
i
]);
return
-
EINVAL
;
return
-
EINVAL
;
}
}
}
}
}
else
{
}
else
{
printk
(
"comedi: (bug) no range type list!
\n
"
);
printk
(
KERN_ERR
"comedi: (bug) no range type list!
\n
"
);
return
-
EINVAL
;
return
-
EINVAL
;
}
}
return
0
;
return
0
;
...
...
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