Commit 6c381c57 authored by Roel Kluin's avatar Roel Kluin Committed by Greg Kroah-Hartman

Staging: Comedi: G1-3 status registers not read in ni_gpct_to_660x_register()

Read from the right status register
Signed-off-by: default avatarRoel Kluin <roel.kluin@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 615d5b6c
...@@ -691,13 +691,13 @@ static enum NI_660x_Register ni_gpct_to_660x_register(enum ni_gpct_register reg) ...@@ -691,13 +691,13 @@ static enum NI_660x_Register ni_gpct_to_660x_register(enum ni_gpct_register reg)
ni_660x_register = G0StatusRegister; ni_660x_register = G0StatusRegister;
break; break;
case NITIO_G1_Status_Reg: case NITIO_G1_Status_Reg:
ni_660x_register = G0StatusRegister; ni_660x_register = G1StatusRegister;
break; break;
case NITIO_G2_Status_Reg: case NITIO_G2_Status_Reg:
ni_660x_register = G0StatusRegister; ni_660x_register = G2StatusRegister;
break; break;
case NITIO_G3_Status_Reg: case NITIO_G3_Status_Reg:
ni_660x_register = G0StatusRegister; ni_660x_register = G3StatusRegister;
break; break;
case NITIO_G0_Interrupt_Enable_Reg: case NITIO_G0_Interrupt_Enable_Reg:
ni_660x_register = G0InterruptEnable; ni_660x_register = G0InterruptEnable;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment