Skip to content

Commit

Permalink
Staging: Comedi: G1-3 status registers not read in ni_gpct_to_660x_re…
Browse files Browse the repository at this point in the history
…gister()

Read from the right status register

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Roel Kluin authored and Greg Kroah-Hartman committed Mar 4, 2010
1 parent 615d5b6 commit 6c381c5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/staging/comedi/drivers/ni_660x.c
Original file line number Diff line number Diff line change
Expand Up @@ -691,13 +691,13 @@ static enum NI_660x_Register ni_gpct_to_660x_register(enum ni_gpct_register reg)
ni_660x_register = G0StatusRegister;
break;
case NITIO_G1_Status_Reg:
ni_660x_register = G0StatusRegister;
ni_660x_register = G1StatusRegister;
break;
case NITIO_G2_Status_Reg:
ni_660x_register = G0StatusRegister;
ni_660x_register = G2StatusRegister;
break;
case NITIO_G3_Status_Reg:
ni_660x_register = G0StatusRegister;
ni_660x_register = G3StatusRegister;
break;
case NITIO_G0_Interrupt_Enable_Reg:
ni_660x_register = G0InterruptEnable;
Expand Down

0 comments on commit 6c381c5

Please sign in to comment.