From: Frank Mori Hess Date: Wed, 15 Aug 2007 21:20:57 +0000 (+0000) Subject: Added comment describing purpose of comedi_set_hw_dev(). X-Git-Tag: r0_7_75~46 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0e0d6408082cf7f88259c49738cbc9c58a920238;p=comedi.git Added comment describing purpose of comedi_set_hw_dev(). --- diff --git a/include/linux/comedidev.h b/include/linux/comedidev.h index 10cf384d..86d24dce 100644 --- a/include/linux/comedidev.h +++ b/include/linux/comedidev.h @@ -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)