Added comment describing purpose of comedi_set_hw_dev().
authorFrank Mori Hess <fmhess@speakeasy.net>
Wed, 15 Aug 2007 21:20:57 +0000 (21:20 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Wed, 15 Aug 2007 21:20:57 +0000 (21:20 +0000)
include/linux/comedidev.h

index 10cf384daaa0fccb4746b767aff11c52b3d78479..86d24dced38e286c0a79592562ed5daa943b2926 100644 (file)
@@ -451,6 +451,8 @@ static inline unsigned int bytes_per_sample( const comedi_subdevice *subd )
                return sizeof( sampl_t );
 }
 
+/* must be used in attach to set dev->hw_dev if you wish to dma directly
+into comedi's buffer */
 static inline void comedi_set_hw_dev(comedi_device *dev, struct device *hw_dev)
 {
        if(dev->hw_dev)