[PATCH 1/1] drivers: staging: fbtft: fbtft-bus.c: Fix different address space warning on I/O mem

2015-05-01 Thread Tolga Ceylan
To fix sparse warning of incorrect type in assignment (different address space), added annotation __iomem to vmem8 and modified direct reads with ioread8(). Signed-off-by: Tolga Ceylan --- drivers/staging/fbtft/fbtft-bus.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --g

Re: [HPDD-discuss] [PATCH 2/11] Staging: lustre: fld: Use kzalloc and kfree

2015-05-01 Thread Julia Lawall
> Yes, I imagine Julia will include that as the new lustre_kvzalloc() define > to be used in all OBD_ALLOC_LARGE instances. > I can provide the desired code if necessary (it's actually a bit less than > trivial > because in some cases we also have that numa-aware node thing). Oleg, If you could

RE: [HPDD-discuss] [PATCH 2/11] Staging: lustre: fld: Use kzalloc and kfree

2015-05-01 Thread Simmons, James A.
>> >We are hopefully going to get rid of OBD_ALLOC_LARGE() as well, though. >> > >> >It's simple enough to write a function: >> > >> >void *obd_zalloc(size_t size) >> >{ >> >if (size > 4 * PAGE_CACHE_SIZE) >> >return vzalloc(size); >> >else >> >return kmalloc(size, G

RE: [HPDD-discuss] [PATCH 2/11] Staging: lustre: fld: Use kzalloc and kfree

2015-05-01 Thread Simmons, James A.
>> Yes the LARGE functions do the switching. I was expecting also patches to >> remove the >> OBD_ALLOC_LARGE functions as well which is not the case here. I do have one >> question still. The >> macro __OBD_MALLOC_VERBOSE allowed the ability to simulate memory allocation >> failures at >> a c

Re: [PATCH] staging: media: omap4iss: Constify platform_device_id

2015-05-01 Thread Laurent Pinchart
Hi Krzysztof, Thank you for the patch. On Saturday 02 May 2015 00:43:07 Krzysztof Kozlowski wrote: > The platform_device_id is not modified by the driver and core uses it as > const. > > Signed-off-by: Krzysztof Kozlowski Acked-by: Laurent Pinchart and applied to my tree. I'll send a pull re

RE: [HPDD-discuss] [PATCH 2/11] Staging: lustre: fld: Use kzalloc and kfree

2015-05-01 Thread Simmons, James A.
>> Yes the LARGE functions do the switching. I was expecting also patches to >> remove the >> OBD_ALLOC_LARGE functions as well which is not the case here. I do have one >> question still. The >> macro __OBD_MALLOC_VERBOSE allowed the ability to simulate memory allocation >> failures at >> a c

[PATCH 104/107] staging: comedi: ni_stc.h: tidy up the cs5529_configuration_bits

2015-05-01 Thread H Hartley Sweeten
For aesthetics, convert the enum into defines and the inline functions into macros. Use the BIT() macro to define the bits. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_common.c | 8 ++-- drivers/staging/comedi/drivers/ni_stc

[PATCH 106/107] staging: comedi: ni_stc.h: tidy up the windowed_regs_67xx_61xx

2015-05-01 Thread H Hartley Sweeten
Rename the CamelCase. For aesthetics, convert the enum into defines. Use the BIT() macro to define the bits. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_common.c | 51 + drivers/staging/comedi/drivers/

[PATCH 090/107] staging: comedi: ni_stc.h: tidy up 8255 register defines

2015-05-01 Thread H Hartley Sweeten
Only the 'Port_A' define is used. Rename the CamelCase and remove the unused defines. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_common.c | 3 ++- drivers/staging/comedi/drivers/ni_stc.h| 10 ++ 2 files chan

[PATCH 080/107] staging: comedi: ni_stc.h: tidy up AO_*_Save_Registers

2015-05-01 Thread H Hartley Sweeten
Rename the CamelCase. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_common.c | 6 +++--- drivers/staging/comedi/drivers/ni_stc.h| 8 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/stagin

[PATCH 102/107] staging: comedi: ni_stc.h: rename the NI-611x register defines

2015-05-01 Thread H Hartley Sweeten
Rename the CamelCase. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_common.c | 34 ++ drivers/staging/comedi/drivers/ni_stc.h| 23 - 2 files changed, 30 insertions(+), 27 deletion

[PATCH 103/107] staging: comedi: ni_stc.h: rename the NI-6143 register defines

2015-05-01 Thread H Hartley Sweeten
Rename the CamelCase. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_common.c | 54 --- drivers/staging/comedi/drivers/ni_pcimio.c | 15 +++ drivers/staging/comedi/drivers/ni_stc.h| 60 +++

[PATCH 099/107] staging: comedi: ni_stc.h: tidy up G0_G1_Select register and bits

2015-05-01 Thread H Hartley Sweeten
Rename the CamelCase. Convert the inline helper functions into macros. Tidy up the driver code to use the new macros. For consistency, make the ni_set_gpct_dma_channel() helper follow the same style as the ni_set_ai_dma_channel() and ni_set_ao_dma_channel() helpers. Signed-off-by: H Hartley Sweet

[PATCH 098/107] staging: comedi: ni_stc.h: tidy up AI_AO_Select register and bits

2015-05-01 Thread H Hartley Sweeten
Rename the CamelCase and convert the enum into macros. Tidy up the driver code to use the new macros. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_common.c | 28 +++--- drivers/staging/comedi/drivers/ni_st

[PATCH 094/107] staging: comedi: ni_stc.h: tidy up AO_Configuration register and bits

2015-05-01 Thread H Hartley Sweeten
Rename the CamelCase. Use the BIT() macro to define the bits. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_common.c | 16 drivers/staging/comedi/drivers/ni_stc.h| 14 +++--- 2 files changed, 15

[PATCH 101/107] staging: comedi: ni_stc.h: remove unused _bit* defines

2015-05-01 Thread H Hartley Sweeten
Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_stc.h | 17 - 1 file changed, 17 deletions(-) diff --git a/drivers/staging/comedi/drivers/ni_stc.h b/drivers/staging/comedi/drivers/ni_stc.h index dc95e6a..4f4a902 1006

[PATCH 093/107] staging: comedi: ni_stc.h: tidy up Configuration_Memory_High register and bits

2015-05-01 Thread H Hartley Sweeten
Rename the CamelCase. Use the BIT() macro to define the bits. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_common.c | 10 +- drivers/staging/comedi/drivers/ni_stc.h| 18 +++--- 2 files changed, 12 i

[PATCH 100/107] staging: comedi: ni_mio_common: move ni_stc_dma_channel_select_bitfield()

2015-05-01 Thread H Hartley Sweeten
Move this inline helper function from ni_stc.h. It does not need to be exposed outside of this file. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_common.c | 11 +++ drivers/staging/comedi/drivers/ni_stc.h| 12 -

[PATCH 107/107] staging: comedi: ni_stc.h: final cleanup

2015-05-01 Thread H Hartley Sweeten
1) Move the enum's to a better location and tidy up the whitespace. 2) Tidy up the defines used for some array sizes in the private data. 3) Add comments for the spinlock_t variables in the private data. 4) Move the forward declaration to the end of the file. Signed-off-by: H Hartley Sweeten Cc:

[PATCH 088/107] staging: comedi: ni_stc.h: tidy up Serial_Command register and bits

2015-05-01 Thread H Hartley Sweeten
Rename the CamelCase. Use the BIT() macro to define the bits. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_common.c | 34 +++--- drivers/staging/comedi/drivers/ni_stc.h| 8 -- 2 files changed,

[PATCH 096/107] staging: comedi: ni_stc.h: tidy up DAC[01]_Direct_Data registers

2015-05-01 Thread H Hartley Sweeten
Rename the CamelCase and convert the defines into a macro. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_common.c | 2 +- drivers/staging/comedi/drivers/ni_stc.h| 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-)

[PATCH 092/107] staging: comedi: ni_stc.h: tidy up Configuration_Memory_Low register and bits

2015-05-01 Thread H Hartley Sweeten
Rename the CamelCase. Use the BIT() macro to define the bits. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_common.c | 9 + drivers/staging/comedi/drivers/ni_stc.h| 12 ++-- 2 files changed, 11 insertio

[PATCH 105/107] staging: comedi: ni_stc.h: tidy up the cs5529_command_bits

2015-05-01 Thread H Hartley Sweeten
For aesthetics, convert the enum into defines. Use the BIT() macro to define the bits. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_common.c | 12 ++-- drivers/staging/comedi/drivers/ni_stc.h| 25 ++

[PATCH 078/107] staging: comedi: ni_stc.h: tidy up G_HW_Save_Register

2015-05-01 Thread H Hartley Sweeten
Rename the CamelCase and define the G0 and G1 registers to add clarity to the mio_regmap tables. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_common.c | 8 drivers/staging/comedi/drivers/ni_stc.h| 6 +++--- 2

[PATCH 083/107] staging: comedi: ni_stc.h: tidy up Joint_Status_2_Register and bits

2015-05-01 Thread H Hartley Sweeten
Rename the CamelCase. Use the BIT() macro to define the bits. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_common.c | 8 drivers/staging/comedi/drivers/ni_stc.h| 8 +++- 2 files changed, 7 insertions(+), 9

[PATCH 089/107] staging: comedi: ni_stc.h: tidy up Misc_Command register and bits

2015-05-01 Thread H Hartley Sweeten
Rename the CamelCase. Use the BIT() macro to define the bits. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_common.c | 2 +- drivers/staging/comedi/drivers/ni_stc.h| 6 +- 2 files changed, 6 insertions(+), 2 deletio

[PATCH 091/107] staging: comedi: ni_stc.h: tidy up ADC_FIFO_Data_Register

2015-05-01 Thread H Hartley Sweeten
Rename the CamelCase. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_common.c | 6 +++--- drivers/staging/comedi/drivers/ni_stc.h| 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/come

[PATCH 086/107] staging: comedi: ni_stc.h: tidy up Window_{Address, Data} defines

2015-05-01 Thread H Hartley Sweeten
Rename the CamelCase. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_common.c | 8 drivers/staging/comedi/drivers/ni_stc.h| 10 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/

[PATCH 097/107] staging: comedi: ni_mio_common: remove BUG_ON(gpct_index ...) checks

2015-05-01 Thread H Hartley Sweeten
The gpct_index will always be 0 or 1. Remove the unnecessary BUG_ON() checks. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_common.c | 2 -- drivers/staging/comedi/drivers/ni_stc.h| 2 -- 2 files changed, 4 deletions(-)

[PATCH 087/107] staging: comedi: ni_stc.h: tidy up XXX_Status register and bits

2015-05-01 Thread H Hartley Sweeten
Rename the CamelCase. Use the BIT() macro to define the bits. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_common.c | 7 --- drivers/staging/comedi/drivers/ni_stc.h| 10 +++--- 2 files changed, 7 insertions(+)

[PATCH 079/107] staging: comedi: ni_stc.h: tidy up G_Save_Register

2015-05-01 Thread H Hartley Sweeten
Rename the CamelCase and define the G0 and G1 registers to add clarity to the mio_regmap tables. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_common.c | 8 drivers/staging/comedi/drivers/ni_stc.h| 7 +++ 2

[PATCH 095/107] staging: comedi: ni_stc.h: tidy up DAC_FIFO_Data register

2015-05-01 Thread H Hartley Sweeten
Rename the CamelCase. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_common.c | 2 +- drivers/staging/comedi/drivers/ni_stc.h| 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/comedi/d

[PATCH 075/107] staging: comedi: ni_stc.h: tidy up AI_Status_2_Register

2015-05-01 Thread H Hartley Sweeten
Rename the CamelCase. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_common.c | 2 +- drivers/staging/comedi/drivers/ni_stc.h| 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/comedi/d

[PATCH 085/107] staging: comedi: ni_stc.h: remove unused GPCT register bit defines

2015-05-01 Thread H Hartley Sweeten
The bit defines in this header for the GPCT registers are not used. The ones in ni_tio_internal.h are used instead. Remove them from this header. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_stc.h | 68

[PATCH 068/107] staging: comedi: ni_stc.h: tidy up RTSI_Board_Register

2015-05-01 Thread H Hartley Sweeten
Rename the CamelCase. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_common.c | 10 +- drivers/staging/comedi/drivers/ni_stc.h| 3 ++- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/drivers/stagi

[PATCH 081/107] staging: comedi: ni_stc.h: tidy up Joint_Status_1_Register

2015-05-01 Thread H Hartley Sweeten
Rename the CamelCase. Use the BIT() macro to define the bits. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_common.c | 18 ++ drivers/staging/comedi/drivers/ni_stc.h| 6 +++--- 2 files changed, 13 inser

[PATCH 059/107] staging: comedi: ni_stc.h: tidy up AO_Mode_3_Register and bits

2015-05-01 Thread H Hartley Sweeten
Rename the CamelCase. Use the BIT() macro to define the bits. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_common.c | 20 ++-- drivers/staging/comedi/drivers/ni_stc.h| 22 +++--- 2 files

[PATCH 063/107] staging: comedi: ni_stc.h: tidy up Interrupt_B_Enable_Register and bits

2015-05-01 Thread H Hartley Sweeten
Rename the CamelCase. Use the BIT() macro to define the bits. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_common.c | 30 +- drivers/staging/comedi/drivers/ni_stc.h| 28

[PATCH 065/107] staging: comedi: ni_stc.h: tidy up AI_Personal_Register and bits

2015-05-01 Thread H Hartley Sweeten
Rename the CamelCase. Use the BIT() macro to define the bits. Tidy up ni_ai_reset() by using a local var to set the common bits and programming the register in the common code path. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mi

[PATCH 069/107] staging: comedi: ni_stc.h: tidy up Write_Strobe_*_Register

2015-05-01 Thread H Hartley Sweeten
The Write_Strobe_*_Register defines are noy used. Instead the more descriptive Configuration_Memory_Clear, ADC_FIFO_Clear and DAC_FIFO_Clear defines are used. Remove the unused defines and rename the CamelCase. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/

[PATCH 073/107] staging: comedi: ni_stc.h: tidy up AO_Status_1_Register and bits

2015-05-01 Thread H Hartley Sweeten
Rename the CamelCase. Use the BIT() marco to define the bits. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_common.c | 32 +++ drivers/staging/comedi/drivers/ni_stc.h| 36 +-

[PATCH 047/107] staging: comedi: ni_stc.h: tidy up IO_Bidirection_Pin_Register

2015-05-01 Thread H Hartley Sweeten
Rename the CamelCase. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_common.c | 10 +- drivers/staging/comedi/drivers/ni_stc.h| 3 ++- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/drivers/stagi

[PATCH 066/107] staging: comedi: ni_stc.h: tidy up AO_Personal_Register and bits

2015-05-01 Thread H Hartley Sweeten
Rename the CamelCase. Use the BIT() macro to define the bits. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_common.c | 29 ++-- drivers/staging/comedi/drivers/ni_stc.h| 31 +-

[PATCH 042/107] staging: comedi: ni_stc.h: tidy up AO_Mode_1_Register and bits

2015-05-01 Thread H Hartley Sweeten
Rename the CamelCase. Use the BIT() macro to define the bits. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_common.c | 35 +- drivers/staging/comedi/drivers/ni_stc.h| 22 2 files

[PATCH 001/107] staging: comedi: ni_mio_common: refactor m-series stc register handling

2015-05-01 Thread H Hartley Sweeten
For M-Series boards (devpriv->is_m_series), the STC registers need to be remapped. This is currently handled with some big switch statements to convert the STC register offset to the M-Series offset. Some of the registers also need special handling due to differences in the register size on the M-S

[PATCH 061/107] staging: comedi: ni_stc.h: tidy up Interrupt_A_Enable_Register and bits

2015-05-01 Thread H Hartley Sweeten
Rename the CamelCase. Use the BIT() macro to define the bits. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_common.c | 29 ++-- drivers/staging/comedi/drivers/ni_stc.h| 31 --

[PATCH 071/107] staging: comedi: ni_stc.h: tidy up AI_Mode_3_Register and bits

2015-05-01 Thread H Hartley Sweeten
Rename the CamelCase. Use the BIT() marco to define the bits. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_common.c | 29 +++--- drivers/staging/comedi/drivers/ni_stc.h| 33 +- 2

[PATCH 084/107] staging: comedi: ni_stc.h: tidy up AI_*_Save_Registers

2015-05-01 Thread H Hartley Sweeten
Rename the CamelCase. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_common.c | 4 ++-- drivers/staging/comedi/drivers/ni_stc.h| 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/come

[PATCH 039/107] staging: comedi: ni_stc.h: tidy up AI_Mode_2_Register and bits

2015-05-01 Thread H Hartley Sweeten
Rename the CamelCase. Use the BIT() macro to define the bits. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_common.c | 43 -- drivers/staging/comedi/drivers/ni_stc.h| 28 - 2 file

[PATCH 072/107] staging: comedi: ni_stc.h: tidy up AI_Status_1_Register and bits

2015-05-01 Thread H Hartley Sweeten
Rename the CamelCase. Use the BIT() marco to define the bits. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_common.c | 65 +- drivers/staging/comedi/drivers/ni_stc.h| 38 --- 2 files

[PATCH 062/107] staging: comedi: ni_stc.h: tidy up Second_IRQ_A_Enable_Register and bits

2015-05-01 Thread H Hartley Sweeten
Rename the CamelCase. The bit defines are identical to NISTC_INTA_ENA_REG. Reuse them. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_common.c | 6 +++--- drivers/staging/comedi/drivers/ni_stc.h| 15 +-- 2 f

[PATCH 051/107] staging: comedi: ni_stc.h: tidy up AI_Output_Control_Register and bits

2015-05-01 Thread H Hartley Sweeten
Rename the CamelCase. Use the BIT() macro to define the bits. Tidy up the programming of this register un ni_ai_reset() by using a local variable to set the common bits then writing the register in the common code path. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman ---

[PATCH 064/107] staging: comedi: ni_stc.h: tidy up Second_IRQ_B_Enable_Register and bits

2015-05-01 Thread H Hartley Sweeten
Rename the CamelCase. The bit defines are identical to NISTC_INTB_ENA_REG. Reuse them. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_common.c | 6 +++--- drivers/staging/comedi/drivers/ni_stc.h| 17 + 2

[PATCH 060/107] staging: comedi: ni_stc.h: tidy up Joint_Reset_Register and bits

2015-05-01 Thread H Hartley Sweeten
Rename the CamelCase. Use the BIT() macro to define the bits. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_common.c | 26 -- drivers/staging/comedi/drivers/ni_stc.h| 22 +++--- 2

[PATCH 070/107] staging: comedi: ni_stc.h: tidy up AO_Output_Control_Register and bits

2015-05-01 Thread H Hartley Sweeten
Rename the CamelCase. Convert the inline helper function into a macro and use the BIT() marco to define the bits. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_common.c | 18 +++ drivers/staging/comedi/drivers/ni_st

[PATCH 021/107] staging: comedi: ni_stc.h: tidy up NI_M_CDIO_STATUS_REG bits

2015-05-01 Thread H Hartley Sweeten
Rename the CamelCase and convert enums into defines. Use the BIT() macro to define the bits. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_common.c | 7 --- drivers/staging/comedi/drivers/ni_stc.h| 27 +

[PATCH 046/107] staging: comedi: ni_mio_common: use 'reg' in ni_set_bitfield()

2015-05-01 Thread H Hartley Sweeten
Use the passed 'reg' parameter to write to the STC registers instead of duplicating the case symbol. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_common.c | 13 + 1 file changed, 5 insertions(+), 8 deletions(-) di

[PATCH 053/107] staging: comedi: ni_stc.h: tidy up AI_START_STOP_Select_Register and bits

2015-05-01 Thread H Hartley Sweeten
Rename the CamelCase. Use the BIT() macro to define the bits. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_common.c | 61 +- drivers/staging/comedi/drivers/ni_stc.h| 20 - 2 files change

[PATCH 082/107] staging: comedi: ni_stc.h: tidy up DIO_Serial_Input_Register

2015-05-01 Thread H Hartley Sweeten
Rename the CamelCase. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: 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/comed

[PATCH 074/107] staging: comedi: ni_stc.h: tidy up G_Status_Register

2015-05-01 Thread H Hartley Sweeten
Rename the CamelCase. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: 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/comed

[PATCH 058/107] staging: comedi: ni_stc.h: tidy up G_Autoincrement_Register

2015-05-01 Thread H Hartley Sweeten
Rename the CamelCase and define the G0 and G1 registers to add clarity to the mio_regmap tables. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_common.c | 8 drivers/staging/comedi/drivers/ni_stc.h| 4 +++- 2 fi

[PATCH 049/107] staging: comedi: ni_stc.h: tidy up RTSI_Trig_Direction_Register and bits

2015-05-01 Thread H Hartley Sweeten
Rename the CamelCase and convert the enum and inline function into defines. Use the BIT() macro to define the bits. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_common.c | 67 -- drivers/staging/comedi/

[PATCH 076/107] staging: comedi: ni_stc.h: tidy up AO_Status_2_Register

2015-05-01 Thread H Hartley Sweeten
Rename the CamelCase. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_common.c | 4 ++-- drivers/staging/comedi/drivers/ni_stc.h| 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/comedi

[PATCH 057/107] staging: comedi: ni_stc.h: tidy up AO_Trigger_Select_Register and bits

2015-05-01 Thread H Hartley Sweeten
Rename the CamelCase. Use the BIT() macro to define the bits. Tidy up the ni_ao_cmd() by using a local var to mask/set the bits then programming the register in the common code path. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_m

[PATCH 054/107] staging: comedi: ni_stc.h: tidy up AI_Trigger_Select_Register and bits

2015-05-01 Thread H Hartley Sweeten
Rename the CamelCase. Use the BIT() macro to define the bits. Tidy up ni_ai_cmd() by using a local var to set the common bits and programming the register in the common code path. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_

[PATCH 035/107] staging: comedi: ni_stc.h: tidy up AO_Command_1_Register and bits

2015-05-01 Thread H Hartley Sweeten
Rename the CamelCase. Use the BIT() macro to define the bits. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_common.c | 38 +++--- drivers/staging/comedi/drivers/ni_stc.h| 36

[PATCH 041/107] staging: comedi: ni_stc.h: tidy up G_{Mode, Load, Input}*_Register

2015-05-01 Thread H Hartley Sweeten
Rename the CamelCase and define he G0 and G1 registers to add clarity to the mio_regmap tables. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_common.c | 32 +- drivers/staging/comedi/drivers/ni_stc.h

[PATCH 038/107] staging: comedi: ni_stc.h: tidy up AI_Mode_1_Register and bits

2015-05-01 Thread H Hartley Sweeten
Rename the CamelCase. Use the BIT() macro to define the bits. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_common.c | 29 +++--- drivers/staging/comedi/drivers/ni_stc.h| 20 +- 2 fil

[PATCH 056/107] staging: comedi: ni_stc.h: tidy up AO_Start_Select_Register and bits

2015-05-01 Thread H Hartley Sweeten
Rename the CamelCase. Use the BIT() macro to define the bits. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_common.c | 6 +++--- drivers/staging/comedi/drivers/ni_stc.h| 20 ++-- 2 files changed, 13 ins

[PATCH 034/107] staging: comedi: ni_stc.h: tidy up AI_Command_1_Register and bits

2015-05-01 Thread H Hartley Sweeten
Rename the CamelCase. Use the BIT() macro to define the bits. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_common.c | 60 +- drivers/staging/comedi/drivers/ni_stc.h| 34 +++ 2 files

[PATCH 032/107] staging: comedi: ni_stc.h: tidy up AO_Command_2_Register and bits

2015-05-01 Thread H Hartley Sweeten
Rename the CamelCase. Use the BIT() macro to define the bits. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_common.c | 14 +-- drivers/staging/comedi/drivers/ni_stc.h| 34 +- 2 files chan

[PATCH 052/107] staging: comedi: ni_stc.h: tidy up Analog_Trigger_Etc_Register and bits

2015-05-01 Thread H Hartley Sweeten
Rename the CamelCase. Use the BIT() macro to define the bits. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_common.c | 7 +++ drivers/staging/comedi/drivers/ni_stc.h| 19 +-- 2 files changed, 12 ins

[PATCH 077/107] staging: comedi: ni_stc.h: tidy up DIO_Parallel_Input_Register

2015-05-01 Thread H Hartley Sweeten
Rename the CamelCase. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_common.c | 7 +++ drivers/staging/comedi/drivers/ni_stc.h| 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/staging/com

[PATCH 050/107] staging: comedi: ni_stc.h: tidy up Interrupt_Control_Register and bits

2015-05-01 Thread H Hartley Sweeten
Rename the CamelCase. Use the BIT() macro to define the bits. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_common.c | 15 --- drivers/staging/comedi/drivers/ni_pcimio.c | 2 +- drivers/staging/comedi/drivers/n

[PATCH 015/107] staging: comedi: ni_stc.h: tidy up NI_M_AO_CFG_BANK_REG bits

2015-05-01 Thread H Hartley Sweeten
Rename the CamelCase and convert the enum into defines. Use the BIT() macro to define the bits. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_common.c | 16 drivers/staging/comedi/drivers/ni_stc.h| 21 +

[PATCH 019/107] staging: comedi: ni_stc.h: tidy up NI_M_PFI_FILTER_REG bits

2015-05-01 Thread H Hartley Sweeten
Rename the CamelCase and convert the inline helper functions that set the bits in this register to macros. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_common.c | 4 ++-- drivers/staging/comedi/drivers/ni_stc.h| 14 ++

[PATCH 037/107] staging: comedi: ni_stc.h: tidy up DIO_Control_Register and bits

2015-05-01 Thread H Hartley Sweeten
Rename the CamelCase. Use the BIT() macro to define the bits. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_common.c | 46 +- drivers/staging/comedi/drivers/ni_stc.h| 16 - 2 files change

[PATCH 067/107] staging: comedi: ni_stc.h: tidy up RTSI_Trig_[AB]_Output_Register and bits

2015-05-01 Thread H Hartley Sweeten
Rename the CamelCase. Convert the inline helper functions to macros and use the BIT() macro to define the bits. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_common.c | 55 +++--- drivers/staging/comedi/driv

[PATCH 040/107] staging: comedi: ni_stc.h: tidy up AI_*_Load_[AB]_Registers

2015-05-01 Thread H Hartley Sweeten
Rename the CamelCase. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_common.c | 22 +++--- drivers/staging/comedi/drivers/ni_stc.h| 14 +++--- 2 files changed, 18 insertions(+), 18 deletions(-) d

[PATCH 024/107] staging: comedi: ni_mio_common: remove BUG() check in ni_cdio_cmd()

2015-05-01 Thread H Hartley Sweeten
The cmd->scan_begin_src was validated in ni_cdio_cmdtest() and can only be TRIG_EXT. Remove the switch statement and unnecessary BUG() check. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_common.c | 12 ++-- 1 file chan

[PATCH 045/107] staging: comedi: ni_stc.h: tidy up Clock_and_FOUT_Register and bits

2015-05-01 Thread H Hartley Sweeten
Rename the CamelCase and convert the enum and inline function into defines. Use the BIT() macro to define the bits. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_common.c | 62 +- drivers/staging/comedi/

[PATCH 044/107] staging: comedi: ni_stc.h: tidy up AO_*_Load_[AB]_Register

2015-05-01 Thread H Hartley Sweeten
Rename the CamelCase. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_common.c | 34 +- drivers/staging/comedi/drivers/ni_stc.h| 21 ++-- 2 files changed, 24 insertions(+), 31 deletions

[PATCH 036/107] staging: comedi: ni_stc.h: tidy up DIO_Output_Register and bits

2015-05-01 Thread H Hartley Sweeten
Rename the CamelCase. Use the BIT() macro to define the bits. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_common.c | 28 ++ drivers/staging/comedi/drivers/ni_stc.h| 16 +++ 2 files

[PATCH 022/107] staging: comedi: ni_stc.h: tidy up NI_M_CDIO_CMD_REG bits

2015-05-01 Thread H Hartley Sweeten
Rename the CamelCase and convert enums into defines. Use the BIT() macro to define the bits. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_common.c | 23 -- drivers/staging/comedi/drivers/ni_stc.h| 43 ++

[PATCH 055/107] staging: comedi: ni_stc.h: tidy up AI_DIV_Load_A_Register

2015-05-01 Thread H Hartley Sweeten
Rename the CamelCase. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_common.c | 2 +- drivers/staging/comedi/drivers/ni_stc.h| 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/comedi

[PATCH 029/107] staging: comedi: ni_stc.h: tidy up Interrupt_A_Ack_Register and bits

2015-05-01 Thread H Hartley Sweeten
Rename the CamelCase. Use the BIT() macro to define the bits. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_common.c | 37 -- drivers/staging/comedi/drivers/ni_stc.h| 37 -

[PATCH 043/107] staging: comedi: ni_stc.h: tidy up AO_Mode_2_Register and bits

2015-05-01 Thread H Hartley Sweeten
Rename the CamelCase and convert the enum into defines. Use the BIT() macro to define the bits. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_common.c | 28 +- drivers/staging/comedi/drivers/ni_stc.h| 41

[PATCH 025/107] staging: comedi: ni_stc.h: tidy up NI_M_CDO_MODE_REG bits

2015-05-01 Thread H Hartley Sweeten
Rename the CamelCase and convert enums into defines. Use the BIT() macro to define the bits. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_common.c | 11 +- drivers/staging/comedi/drivers/ni_stc.h| 29 ++

[PATCH 033/107] staging: comedi: ni_stc.h: tidy up G_Command_Register

2015-05-01 Thread H Hartley Sweeten
Rename the CamelCase and define the G0 and G1 registers to add clarity to the mio_regmap tables. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_common.c | 8 drivers/staging/comedi/drivers/ni_stc.h| 4 +++- 2 fi

[PATCH 010/107] staging: comedi: ni_stc.h: tidy up NI_M_AI_CFG_FIFO_DATA_REG bits

2015-05-01 Thread H Hartley Sweeten
Rename all the CamelCase and convert the enum and helper functions into defines. Use the BIT() macro to define the bits. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_common.c | 21 ++--- drivers/staging/comedi/drivers/

[PATCH 027/107] staging: comedi: ni_stc.h: tidy up NI_M_INTC_STATUS_REG bits

2015-05-01 Thread H Hartley Sweeten
Rename the CamelCase and convert enums into defines. Use the BIT() macro to define the bits. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_stc.h | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/stagin

[PATCH 031/107] staging: comedi: ni_stc.h: tidy up AI_Command_2_Register and bits

2015-05-01 Thread H Hartley Sweeten
Rename the CamelCase. Use the BIT() macro to define the bits. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_common.c | 22 ++-- drivers/staging/comedi/drivers/ni_stc.h| 28 +- 2 f

[PATCH 007/107] staging: comedi: ni_stc.h: reg_type is not needed by MSeries_AI_Config_Bank_Bits()

2015-05-01 Thread H Hartley Sweeten
This helper function sets the bits in the M_Offset_AI_Config_FIFO_Data register to select the correct bank to configure a given analog output channel. The NI M Series boards are defined by the boardinfo to have 16, 32, or 80 channels. Only 2 of the M Series boards have 80 channels, those boards hap

[PATCH 030/107] staging: comedi: ni_stc.h: tidy up Interrupt_B_Ack_Register and bits

2015-05-01 Thread H Hartley Sweeten
Rename the CamelCase. Use the BIT() macro to define the bits. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_common.c | 28 drivers/staging/comedi/drivers/ni_stc.h| 45 +++--- 2 files

[PATCH 016/107] staging: comedi: ni_stc.h: tidy up NI_M_AO_REF_ATTENUATION_REG bits

2015-05-01 Thread H Hartley Sweeten
Rename the CamelCase and convert the enum into defines. Use the BIT() macro to define the bits. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_common.c | 4 ++-- drivers/staging/comedi/drivers/ni_stc.h| 5 + 2 files

[PATCH 009/107] staging: comedi: ni_stc.h: rename M_Offset_* symbols

2015-05-01 Thread H Hartley Sweeten
Renamme these CamelCase symbols. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_common.c | 129 - drivers/staging/comedi/drivers/ni_stc.h| 95 +- 2 files changed, 110 insertions(+

[PATCH 028/107] staging: comedi: ni_mio_common: remove disabled GPCT functions

2015-05-01 Thread H Hartley Sweeten
The GPCT (general purpose counter timer) is handled by the ni_tio and ni_tiocmd modules. Remove the old disabled code in this file. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_common.c | 82 -- 1 file

[PATCH 017/107] staging: comedi: ni_stc.h: tidy up NI_M_CAL_PWM_REG bits

2015-05-01 Thread H Hartley Sweeten
Rename the CamelCase and convert the inline helper functions that set the bits in this register to macros. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_common.c | 4 ++-- drivers/staging/comedi/drivers/ni_stc.h| 12 ++

[PATCH 018/107] staging: comedi: ni_stc.h: tidy up NI_M_PFI_OUT_SEL_REG bits

2015-05-01 Thread H Hartley Sweeten
Rename the CamelCase and convert the inline helper functions that set/get the bits in this register to macros. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_common.c | 6 +++--- drivers/staging/comedi/drivers/ni_stc.h|

[PATCH 023/107] staging: comedi: ni_stc.h: tidy up NI_M_CDI_MODE_REG bits

2015-05-01 Thread H Hartley Sweeten
Rename the CamelCase and convert enums into defines. Use the BIT() macro to define the bits. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_stc.h | 27 +-- 1 file changed, 13 insertions(+), 14 deletions(-) d

  1   2   >