projects
/
comedi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8662f84
)
Fixed bytes_per_sample to return correct value in lsampl_t case, was
author
Frank Mori Hess
<fmhess@speakeasy.net>
Wed, 16 Aug 2006 15:21:20 +0000
(15:21 +0000)
committer
Frank Mori Hess
<fmhess@speakeasy.net>
Wed, 16 Aug 2006 15:21:20 +0000
(15:21 +0000)
broken due to confusion between subdev->flags and subdev->subdev_flags.
include/linux/comedidev.h
patch
|
blob
|
history
diff --git
a/include/linux/comedidev.h
b/include/linux/comedidev.h
index 848a352619db3a34499a46767504e603a9a025f1..0d1c21389563638cb6400d7e5e7f777f40f106d4 100644
(file)
--- a/
include/linux/comedidev.h
+++ b/
include/linux/comedidev.h
@@
-345,7
+345,7
@@
static inline int alloc_private(comedi_device *dev,int size)
static inline unsigned int bytes_per_sample( const comedi_subdevice *subd )
{
- if( subd->flags & SDF_LSAMPL )
+ if( subd->
subdev_
flags & SDF_LSAMPL )
return sizeof( lsampl_t );
else
return sizeof( sampl_t );