From: H Hartley Sweeten Date: Mon, 5 Oct 2015 21:23:02 +0000 (-0700) Subject: staging: comedi: quatech_daqp_cs: document the 16-bit registers X-Git-Tag: firefly_0821_release~176^2~802^2~924 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=c06c3c953a9b89c1ffe70ba57762fbaafdcd6613;p=firefly-linux-kernel-4.4.55.git staging: comedi: quatech_daqp_cs: document the 16-bit registers All the registers are 8-bit except for the analog output and timer registers. For clarity, add some comments. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/quatech_daqp_cs.c b/drivers/staging/comedi/drivers/quatech_daqp_cs.c index b7a20f7e9f35..c575104528cf 100644 --- a/drivers/staging/comedi/drivers/quatech_daqp_cs.c +++ b/drivers/staging/comedi/drivers/quatech_daqp_cs.c @@ -111,8 +111,10 @@ #define DAQP_CMD_SCANRATE_25KHZ DAQP_CMD_SCANRATE(2) #define DAQP_CMD_FIFO_DATA BIT(0) -#define DAQP_AO_REG 0x08 -#define DAQP_TIMER_REG 0x0a +#define DAQP_AO_REG 0x08 /* and 0x09 (16-bit) */ + +#define DAQP_TIMER_REG 0x0a /* and 0x0b (16-bit) */ + #define DAQP_AUX_REG 0x0f #define DAQP_AUX_TRIGGER_TTL 0x00