From 0e0d6408082cf7f88259c49738cbc9c58a920238 Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Wed, 15 Aug 2007 21:20:57 +0000 Subject: [PATCH] Added comment describing purpose of comedi_set_hw_dev(). --- include/linux/comedidev.h | 2 ++ 1 file changed, 2 insertions(+) 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) -- 2.26.2