projects
/
comedi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
671fa15
)
fixed length of bitstream for ad8402 trimpot
author
Frank Mori Hess
<fmhess@speakeasy.net>
Sun, 23 Jun 2002 23:27:47 +0000
(23:27 +0000)
committer
Frank Mori Hess
<fmhess@speakeasy.net>
Sun, 23 Jun 2002 23:27:47 +0000
(23:27 +0000)
comedi/drivers/cb_pcidas.c
patch
|
blob
|
history
diff --git
a/comedi/drivers/cb_pcidas.c
b/comedi/drivers/cb_pcidas.c
index b02d46819189da343473c98534fe2f7b39439ae5..f18acac8266caef5991867f0eaf990ab17b80d73 100644
(file)
--- a/
comedi/drivers/cb_pcidas.c
+++ b/
comedi/drivers/cb_pcidas.c
@@
-1759,7
+1759,7
@@
static int trimpot_7376_write(comedi_device *dev, uint8_t value)
static int trimpot_8402_write(comedi_device *dev, unsigned int channel, uint8_t value)
{
// XXX check docs, this function is just a guess
- static const int bitstream_length =
9
;
+ static const int bitstream_length =
10
;
unsigned int bitstream = ( ( channel & 0x1 ) << 8 ) | ( value & 0xff );
unsigned int register_bits;
static const int ad8402_udelay = 1;