From 8fbb015484a5d8038ced1d0bb81041e6b7437ccc Mon Sep 17 00:00:00 2001 From: H Hartley Sweeten Date: Fri, 1 May 2015 14:59:47 -0700 Subject: [PATCH] staging: comedi: ni_stc.h: tidy up DIO_Serial_Input_Register Rename the CamelCase. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_common.c | 4 ++-- drivers/staging/comedi/drivers/ni_stc.h | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/staging/comedi/drivers/ni_mio_common.c b/drivers/staging/comedi/drivers/ni_mio_common.c index 9051477f7ac6..cb4aed174648 100644 --- a/drivers/staging/comedi/drivers/ni_mio_common.c +++ b/drivers/staging/comedi/drivers/ni_mio_common.c @@ -424,7 +424,7 @@ static const struct mio_regmap m_series_stc_read_regmap[] = { [NISTC_AO_BC_SAVE_REG] = { 0x124, 4 }, [NISTC_AO_UC_SAVE_REG] = { 0x128, 4 }, [NISTC_STATUS1_REG] = { 0x136, 2 }, - [DIO_Serial_Input_Register] = { 0x009, 1 }, + [NISTC_DIO_SERIAL_IN_REG] = { 0x009, 1 }, [Joint_Status_2_Register] = { 0x13a, 2 }, [AI_SI_Save_Registers] = { 0x180, 4 }, [AI_SC_Save_Registers] = { 0x184, 4 }, @@ -3552,7 +3552,7 @@ static int ni_serial_hw_readwrite8(struct comedi_device *dev, udelay((devpriv->serial_interval_ns + 999) / 1000); if (data_in) - *data_in = ni_stc_readw(dev, DIO_Serial_Input_Register); + *data_in = ni_stc_readw(dev, NISTC_DIO_SERIAL_IN_REG); Error: ni_stc_writew(dev, devpriv->dio_control, NISTC_DIO_CTRL_REG); diff --git a/drivers/staging/comedi/drivers/ni_stc.h b/drivers/staging/comedi/drivers/ni_stc.h index 2d7f342790fa..509578c46a64 100644 --- a/drivers/staging/comedi/drivers/ni_stc.h +++ b/drivers/staging/comedi/drivers/ni_stc.h @@ -553,10 +553,11 @@ #define NISTC_STATUS1_REG 27 #define NISTC_STATUS1_SERIO_IN_PROG BIT(12) +#define NISTC_DIO_SERIAL_IN_REG 28 + #define AI_SI_Save_Registers 64 #define AI_SC_Save_Registers 66 -#define DIO_Serial_Input_Register 28 #define Joint_Status_2_Register 29 enum Joint_Status_2_Bits { AO_TMRDACWRs_In_Progress_St = 0x20, -- 2.39.5