From: Frank Mori Hess Date: Wed, 16 Aug 2006 15:21:20 +0000 (+0000) Subject: Fixed bytes_per_sample to return correct value in lsampl_t case, was X-Git-Tag: r0_7_73~5 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2b56bcbe6caed05a7e22b3c45b72ca587f0ddd78;p=comedi.git Fixed bytes_per_sample to return correct value in lsampl_t case, was broken due to confusion between subdev->flags and subdev->subdev_flags. --- diff --git a/include/linux/comedidev.h b/include/linux/comedidev.h index 848a3526..0d1c2138 100644 --- 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 );