Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 353950
b: refs/heads/master
c: 21f181f
h: refs/heads/master
v: v3
  • Loading branch information
Lijo Antony authored and Greg Kroah-Hartman committed Jan 7, 2013
1 parent 938b855 commit b06359e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 90a35c15c5d7d5c6254772d2752975dda185710c
refs/heads/master: 21f181f16cea4a4cbaea25409ddb044a4ad5cd34
8 changes: 4 additions & 4 deletions trunk/drivers/staging/comedi/comedidev.h
Original file line number Diff line number Diff line change
Expand Up @@ -464,17 +464,17 @@ static inline unsigned comedi_buf_read_n_allocated(struct comedi_async *async)
static inline void *comedi_aux_data(int options[], int n)
{
unsigned long address;
unsigned long addressLow;
unsigned long address_low;
int bit_shift;
if (sizeof(int) >= sizeof(void *))
address = options[COMEDI_DEVCONF_AUX_DATA_LO];
else {
address = options[COMEDI_DEVCONF_AUX_DATA_HI];
bit_shift = sizeof(int) * 8;
address <<= bit_shift;
addressLow = options[COMEDI_DEVCONF_AUX_DATA_LO];
addressLow &= (1UL << bit_shift) - 1;
address |= addressLow;
address_low = options[COMEDI_DEVCONF_AUX_DATA_LO];
address_low &= (1UL << bit_shift) - 1;
address |= address_low;
}
if (n >= 1)
address += options[COMEDI_DEVCONF_AUX_DATA0_LENGTH];
Expand Down

0 comments on commit b06359e

Please sign in to comment.