From: H Hartley Sweeten Date: Fri, 1 May 2015 21:59:39 +0000 (-0700) Subject: staging: comedi: ni_stc.h: tidy up G_Status_Register X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=7f0e1bac320430cb94316057e91c1f15cc6e19cf;p=linux-beck.git staging: comedi: ni_stc.h: tidy up G_Status_Register Rename the CamelCase. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/ni_mio_common.c b/drivers/staging/comedi/drivers/ni_mio_common.c index d7a723256e1a..a71a697f2b9b 100644 --- a/drivers/staging/comedi/drivers/ni_mio_common.c +++ b/drivers/staging/comedi/drivers/ni_mio_common.c @@ -412,7 +412,7 @@ static void m_series_stc_write(struct comedi_device *dev, static const struct mio_regmap m_series_stc_read_regmap[] = { [NISTC_AI_STATUS1_REG] = { 0x104, 2 }, [NISTC_AO_STATUS1_REG] = { 0x106, 2 }, - [G_Status_Register] = { 0x108, 2 }, + [NISTC_G01_STATUS_REG] = { 0x108, 2 }, [AI_Status_2_Register] = { 0, 0 }, /* Unknown */ [AO_Status_2_Register] = { 0x10c, 2 }, [DIO_Parallel_Input_Register] = { 0, 0 }, /* Unknown */ @@ -3723,7 +3723,7 @@ static const struct mio_regmap ni_gpct_to_stc_regmap[] = { [NITIO_G1_CNT_MODE] = { 0x1b2, 2 }, /* M-Series only */ [NITIO_G0_GATE2] = { 0x1b4, 2 }, /* M-Series only */ [NITIO_G1_GATE2] = { 0x1b6, 2 }, /* M-Series only */ - [NITIO_G01_STATUS] = { G_Status_Register, 2 }, + [NITIO_G01_STATUS] = { NISTC_G01_STATUS_REG, 2 }, [NITIO_G01_RESET] = { NISTC_RESET_REG, 2 }, [NITIO_G01_STATUS1] = { Joint_Status_1_Register, 2 }, [NITIO_G01_STATUS2] = { Joint_Status_2_Register, 2 }, diff --git a/drivers/staging/comedi/drivers/ni_stc.h b/drivers/staging/comedi/drivers/ni_stc.h index e1f4b66144ba..5950bab41c77 100644 --- a/drivers/staging/comedi/drivers/ni_stc.h +++ b/drivers/staging/comedi/drivers/ni_stc.h @@ -532,6 +532,8 @@ #define NISTC_AO_STATUS1_FIFO_REQ BIT(1) #define NISTC_AO_STATUS1_PASSTHRU1 BIT(0) +#define NISTC_G01_STATUS_REG 4 + #define AI_Status_2_Register 5 #define AO_Status_2_Register 6 @@ -560,7 +562,6 @@ enum Joint_Status_2_Bits { #define G_Save_Register(a) (12+(a)*2) #define G_Save_Register_High(a) (12+(a)*2) #define G_Save_Register_Low(a) (13+(a)*2) -#define G_Status_Register 4 /* command register */ #define G_Disarm_Copy _bit15 /* strobe */