From 2b56bcbe6caed05a7e22b3c45b72ca587f0ddd78 Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Wed, 16 Aug 2006 15:21:20 +0000 Subject: [PATCH] Fixed bytes_per_sample to return correct value in lsampl_t case, was broken due to confusion between subdev->flags and subdev->subdev_flags. --- include/linux/comedidev.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); -- 2.26.2