Re: [PATCH 01/21] staging: xgifb: document some LVDS data delay values

2012-09-10 Thread Tomas Winkler
> > diff --git a/drivers/staging/xgifb/vb_struct.h > b/drivers/staging/xgifb/vb_struct.h > index 22c8eb9..e2fa1ff 100644 > --- a/drivers/staging/xgifb/vb_struct.h > +++ b/drivers/staging/xgifb/vb_struct.h > @@ -137,10 +137,10 @@ struct XGI21_LVDSCapStruct { > unsigned short LVDSVSYNC; >

[PATCH v6 2/3] drivers/mmc: Add realtek pcie sdmmc host driver

2012-09-10 Thread wei_wang
From: Wei WANG Realtek PCI-E SD/MMC card host driver is used to access SD/MMC card, with the help of Realtek PCI-E card reader MFD driver. Signed-off-by: Wei WANG Reviewed-by: Arnd Bergmann Tested-by: Borislav Petkov --- drivers/mmc/host/Kconfig |7 + drivers/mmc/host/Makefile

[PATCH v6 3/3] drivers/memstick: Add realtek pcie memstick host driver

2012-09-10 Thread wei_wang
From: Wei WANG Realtek PCI-E Memstick card host driver is used to access Memstick card, with the help of Realtek PCI-E card reader MFD driver. Signed-off-by: Wei WANG --- drivers/memstick/host/Kconfig | 10 + drivers/memstick/host/Makefile |1 + drivers/memstick/host/rtsx_pci_

[PATCH v6 0/3] Add modules to support realtek PCIE card reader

2012-09-10 Thread wei_wang
From: Wei WANG Support for Realtek PCI-Express driver-based card readers including rts5209 and rts5229. v2: 1. Using platform device to replace realtek slot bus v3: 1. Fix a bug that DMA out of SW-IOMMU space in Lenovo Thinkpad x121e 2. Tested by Borislav Petkov v4: 1. Fulfill power manageme

Re: [PATCH] Staging: comedi: drivers: fl512: change printk(KERN_INFO ... for the prefered pr_info(...

2012-09-10 Thread Joe Perches
On Mon, 2012-09-10 at 20:44 -0700, Greg KH wrote: > On Mon, Sep 10, 2012 at 08:40:11PM -0700, Joe Perches wrote: > > On Mon, 2012-09-10 at 19:52 -0700, Greg KH wrote: > > > On Tue, Sep 11, 2012 at 04:50:15AM +0200, Bruce Humphrey wrote: > > > > Change 5 instances of printk(KERN_INFO, KERN_WARN and

Re: [PATCH] Staging: comedi: drivers: fl512: change printk(KERN_INFO ... for the prefered pr_info(...

2012-09-10 Thread Greg KH
On Mon, Sep 10, 2012 at 08:40:11PM -0700, Joe Perches wrote: > On Mon, 2012-09-10 at 19:52 -0700, Greg KH wrote: > > On Tue, Sep 11, 2012 at 04:50:15AM +0200, Bruce Humphrey wrote: > > > Change 5 instances of printk(KERN_INFO, KERN_WARN and KERN_ERROR for the > > > prefered pr_info, pr_warn and pr

Re: [PATCH] Staging: comedi: drivers: fl512: change printk(KERN_INFO ... for the prefered pr_info(...

2012-09-10 Thread Joe Perches
On Mon, 2012-09-10 at 19:52 -0700, Greg KH wrote: > On Tue, Sep 11, 2012 at 04:50:15AM +0200, Bruce Humphrey wrote: > > Change 5 instances of printk(KERN_INFO, KERN_WARN and KERN_ERROR for the > > prefered pr_info, pr_warn and pr_error [] > > diff --git a/drivers/staging/comedi/drivers/fl512.c >

Re: [PATCH 00/46] staging: comedi: adl_pci9111: cleanup the driver

2012-09-10 Thread Greg KH
On Mon, Sep 10, 2012 at 06:49:47PM -0700, H Hartley Sweeten wrote: > Remove the boardinfo and convert this driver to use the comedi attach_pci > auto config mechanism. > > Use the 8253 helpers and remove the code for programming the timers. > > Remove a bunch of debug code and all the i/o macros.

Re: [PATCH] Staging: comedi: drivers: fl512: change printk(KERN_INFO ... for the prefered pr_info(...

2012-09-10 Thread Greg KH
On Tue, Sep 11, 2012 at 04:50:15AM +0200, Bruce Humphrey wrote: > Change 5 instances of printk(KERN_INFO, KERN_WARN and KERN_ERROR for the > prefered pr_info, pr_warn and pr_error > > Signed-off-by: Bruce Humphrey Ventura > --- > drivers/staging/comedi/drivers/fl512.c | 10 +- > 1 fil

[PATCH] Staging: comedi: drivers: fl512: change printk(KERN_INFO ... for the prefered pr_info(...

2012-09-10 Thread Bruce Humphrey
Change 5 instances of printk(KERN_INFO, KERN_WARN and KERN_ERROR for the prefered pr_info, pr_warn and pr_error Signed-off-by: Bruce Humphrey Ventura --- drivers/staging/comedi/drivers/fl512.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/staging/comed

[PATCH 46/46] staging: comedi: adl_pci9111: remove unnecessary comments

2012-09-10 Thread H Hartley Sweeten
Remove some obvious comments. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adl_pci9111.c | 41 ++-- 1 file changed, 2 insertions(+), 39 deletions(-) diff --git a/drivers/staging/comedi/drivers/adl_pci9111.c

[PATCH 45/46] staging: comedi: adl_pci9111: remove extra i8253_cascade_ns_to_timer_2div()

2012-09-10 Thread H Hartley Sweeten
The comedi core always calls the 'do_cmdtest' function before it calls the 'do_cmd' function. The 'do_cmdtest' for this driver calls i8253_cascade_ns_to_timer_2div() to validate the cmd->convert_arg. This call sets the dev_private 'div1' and 'div2' values needed to program the 8254 timer. There is

[PATCH 44/46] staging: comedi: adl_pci9111: use cfc_check_trigger_is_unique

2012-09-10 Thread H Hartley Sweeten
Use the helper function cfc_check_trigger_is_unique. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adl_pci9111.c | 23 +-- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/drivers/staging/comedi/drive

[PATCH 43/46] staging: comedi: comedi_fc: introduce cfc_check_trigger_is_unique

2012-09-10 Thread H Hartley Sweeten
"Step 2" of each do_cmdtest checks that the trigger sources are unique by doing something like this for each trigger: if (cmd->start_src != TRIG_TIMER && cmd->start_src != TRIG_FOLLOW && cmd->start_src != TRIG_EXT) err++; /* Test the remainin

[PATCH 42/46] staging: comedi: adl_pci9111: single source triggers are already unique

2012-09-10 Thread H Hartley Sweeten
If a single source trigger passes "step 1" of the do_cmdtest they are already unique. There is no need to recheck them. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adl_pci9111.c | 6 -- 1 file changed, 6 deletions(-) diff --git

[PATCH 41/46] staging: comedi: adl_pci9111: use cfc_check_trigger_src

2012-09-10 Thread H Hartley Sweeten
Remove the pci9111_check_trigger_src macro and use the helper function cfc_check_trigger_src instead. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adl_pci9111.c | 29 +++- 1 file changed, 11 insertions(+), 18

[PATCH 40/46] staging: comedi: comedi_fc: introduce cfc_check_trigger_src

2012-09-10 Thread H Hartley Sweeten
All of the comedi drivers that support the 'cmd' callback also require a 'do_cmdtest' callback. The do_cmdtest validates the comedi_cmd before it is executed. "Step 1" of each do_cmdtest does a trivial validation of the trigger sources by doing something like this for each trigger: int er

[PATCH 39/46] staging: comedi: adl_pci9111: remove unnecessary 'is_valid'

2012-09-10 Thread H Hartley Sweeten
The 'is_valid' variable in the private data is only used in the detach of the board to determine if the pci9111_reset() function can be called. That function only requires a valid dev->iobase to work. Use that for the check instead and remove the unneeded variable from the private data. Signed-off

[PATCH 38/46] staging: comedi: adl_pci9111: cleanup timer_divisor_[12]

2012-09-10 Thread H Hartley Sweeten
For aesthetic reasons, rename the symbols. Remove the unnecessary () around the symbols in the calls to i8253_cascade_ns_to_timer_2div(). Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adl_pci9111.c | 25 +++-- 1 f

[PATCH 37/46] staging: comedi: adl_pci9111: cleanup pci9111_hr_ai_range

2012-09-10 Thread H Hartley Sweeten
For aesthetic reasons, rename the symbol and fix the whitespace. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adl_pci9111.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/staging/comedi/d

[PATCH 36/46] staging: comedi: adl_pci9111: cleanup the io register map

2012-09-10 Thread H Hartley Sweeten
Finish renaming the defines for the register map. Move the bit defines so that they are associated with the register. Remove the unneeded '0' bit defines. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adl_pci9111.c | 125 -

[PATCH 34/46] staging: comedi: adl_pci9111: remove pci9111_trigger_and_autoscan_[sg]et macros

2012-09-10 Thread H Hartley Sweeten
These macros rely on a local variable having a specific name. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adl_pci9111.c | 29 +++- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/drivers/stagi

[PATCH 35/46] staging: comedi: adl_pci9111: change pci9111_fifo_reset into a function

2012-09-10 Thread H Hartley Sweeten
This macro relies on a local variable having a specific name. It's used multiple places so change it into a function. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adl_pci9111.c | 34 1 file changed, 15 in

[PATCH 33/46] staging: comedi: adl_pci9111: remove pci9111_interrupt_and_fifo_[sg]et macros

2012-09-10 Thread H Hartley Sweeten
These macros rely on a local variable having a specific name. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adl_pci9111.c | 29 ++-- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/drivers/stagi

[PATCH 32/46] staging: comedi: adl_pci9111: remove pci9111_interrupt_clear macro

2012-09-10 Thread H Hartley Sweeten
This macro relies on a local variable having a specific name. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adl_pci9111.c | 12 +++- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/drivers/staging/comedi/drivers/

[PATCH 31/46] staging: comedi: adl_pci9111: remove pci9111_software_trigger macro

2012-09-10 Thread H Hartley Sweeten dev
This macro relies on a local variable having a specific name. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adl_pci9111.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/staging/comedi/drivers/adl_p

[PATCH 30/46] staging: comedi: adl_pci9111: remove pci9111_is_fifo_* macros

2012-09-10 Thread H Hartley Sweeten
These macros rely on a local variable having a specific name. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adl_pci9111.c | 30 1 file changed, 13 insertions(+), 17 deletions(-) diff --git a/drivers/stagi

[PATCH 29/46] staging: comedi: adl_pci9111: remove pci9111_ai_channel_[gs]et macros

2012-09-10 Thread H Hartley Sweeten
These macros rely on a local variable having a specific name. The comedi code makes sure the channel number is valid so the mask of PCI9111_CHANNEL_MASK can be remove. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adl_pci9111.c | 21

[PATCH 28/46] staging: comedi: adl_pci9111: remove pci9111_ai_range_[gs]et macros

2012-09-10 Thread H Hartley Sweeten
These macros rely on a local variable having a specific name. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adl_pci9111.c | 29 +--- 1 file changed, 13 insertions(+), 16 deletions(-) diff --git a/drivers/stagi

[PATCH 27/46] staging: comedi: adl_pci9111: use local variables for the chan/range

2012-09-10 Thread H Hartley Sweeten
Simplify the chan/range in pci9111_ai_insn_read() by using local variables for hold the values and by just passing insn->chanspec to the CR_* macros instead of using (&insn->chanspec)[0]. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/

[PATCH 26/46] staging: comedi: adl_pci9111: remove INTERRUPT_DEBUG code

2012-09-10 Thread H Hartley Sweeten
This debug output should be removed in the final driver. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adl_pci9111.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/staging/comedi/drivers/adl_pci9111.c b/drivers/stag

[PATCH 25/46] staging: comedi: adl_pci9111: remove AI_DO_CMD_DEBUG code

2012-09-10 Thread H Hartley Sweeten
This debug output should be removed in the final driver. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adl_pci9111.c | 28 1 file changed, 28 deletions(-) diff --git a/drivers/staging/comedi/drivers/adl_p

[PATCH 24/46] staging: comedi: adl_pci9111: use attach_pci callback

2012-09-10 Thread H Hartley Sweeten
Convert this PCI driver to use the comedi PCI auto config attach mechanism by adding an 'attach_pci' callback function. Since the driver does not require any external configuration options, and the legacy 'attach' callback is now optional, remove it. The boardinfo is also not needed now so remove i

[PATCH 23/46] staging: comedi: adl_pci9111: remove the io_range values from the private data

2012-09-10 Thread H Hartley Sweeten
These values are not used by the driver. Remove them. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adl_pci9111.c | 9 + 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/drivers/staging/comedi/drivers/adl_pci9111.c

[PATCH 22/46] staging: comedi: adl_pci9111: remove the board attach noise

2012-09-10 Thread H Hartley Sweeten
Remove the kernel messages about the io base/range for the pci resources. Move the board attach messages to the end of the attach and use a simple/clean dev_info message for it. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adl_pci91

[PATCH 21/46] staging: comedi: adl_pci9111: analog input subdevice is fixed

2012-09-10 Thread H Hartley Sweeten
The analog input subdevice is the same for all boards supported by this driver. Remove the boardinfo just open-code the values in the attach function. Note: the only other board that could be supported by this driver is the ADLink PCI-9111DG board. This board has 12-bit analog inputs instead of th

[PATCH 18/46] staging: comedi: adl_pci9111: digital input/output subdevices are fixed

2012-09-10 Thread H Hartley Sweeten
The digital input and output subdevices are the same for all boards supported by this driver. Remove the defines just open-code the values in the attach function. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adl_pci9111.c | 26 ++

[PATCH 20/46] staging: comedi: adl_pci9111: remove 'single' channel list check

2012-09-10 Thread H Hartley Sweeten
The comedi core verifies that the chanlist elements are inrange for the subdevice. Remove the redundant check in thie driver. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adl_pci9111.c | 8 1 file changed, 8 deletions(-) di

[PATCH 19/46] staging: comedi: adl_pci9111: remove chanlist_len checks

2012-09-10 Thread H Hartley Sweeten
The chanlist_len is validated by the comedi core before calling the do_cmdtest function. Remove these redundant checks. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adl_pci9111.c | 10 -- 1 file changed, 10 deletions(-) diff

[PATCH 17/46] staging: comedi: adl_pci9111: analog output subdevice is fixed

2012-09-10 Thread H Hartley Sweeten
The analog output subdevice is the same for all boards supported by this driver. Remove the boardinfo for it and just open-code the values in the attach function. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adl_pci9111.c | 23 ++

[PATCH 16/46] staging: comedi: adl_pci9111: cleanup ai read in pci9111_ai_insn_read()

2012-09-10 Thread H Hartley Sweeten
The shift, maxdata, and invert values, used to handle the 12-/16-bit analog input differences, can be calculated based on the subdevice maxdata value. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adl_pci9111.c | 19 +++---

[PATCH 15/46] staging: comedi: adl_pci9111: remove pci9111_{hr_, )ai* macros

2012-09-10 Thread H Hartley Sweeten
These macros rely on a local variable having a specific name. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adl_pci9111.c | 23 --- 1 file changed, 8 insertions(+), 15 deletions(-) diff --git a/drivers/staging/com

[PATCH 14/46] staging: comedi: adl_pci9111: cleanup pci9111_ai_munge()

2012-09-10 Thread H Hartley Sweeten
The shift, maxdata, and invert values, used to handle the 12-/16-bit analog input differences, can be calculated based on the subdevice maxdata value. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adl_pci9111.c | 22 --

[PATCH 13/46] staging: comedi: adl_pci9111: remove AI_INSN_DEBUG code

2012-09-10 Thread H Hartley Sweeten
This debug output should be removed in the final driver. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adl_pci9111.c | 14 -- 1 file changed, 14 deletions(-) diff --git a/drivers/staging/comedi/drivers/adl_pci9111.c b/dr

[PATCH 11/46] staging: comedi: adl_pci9111: cleanup ao resolution

2012-09-10 Thread H Hartley Sweeten
The 'ao_resolution' in the boardinfo is not used. Remove it. Rename the 'ao_resolution_mask' to 'ao_maxdata', this information is copied to the ao subdevice 'maxdata'. Remove the PCI9111_AO_RESOLUTION* defines and just open-code the maxdata in the boardinfo. Remove the mask of the output data in

[PATCH 12/46] staging: comedi: adl_pci9111: cleanup pci9111_ao_insn_write()

2012-09-10 Thread H Hartley Sweeten
Remove the unnecessary comment. Only the last data value written needs to be cached for readback. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adl_pci9111.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) d

[PATCH 10/46] staging: comedi: adl_pci9111: cleanup pci9111_ao_insn_read()

2012-09-10 Thread H Hartley Sweeten
Remove the unnecessary comments. The readback value does not need to be masked. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adl_pci9111.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/staging/

[PATCH 09/46] staging: comedi: adl_pci9111: remove pci9111_ao_set_data macro

2012-09-10 Thread H Hartley Sweeten
This macro relies on a local variable having a specific name. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adl_pci9111.c | 10 +++--- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/drivers/staging/comedi/drivers/ad

[PATCH 08/46] staging: comedi: adl_pci9111: cleanup pci9111_do_insn_bits()

2012-09-10 Thread H Hartley Sweeten
Remove the unnecessary comments. Cleanup the function to follow the comedi standard for digital outputs. The 'mask' does not need to be checked, the comedi core will make sure that it is valid based on the subdevice data. The outputs only need to be updated if the 'mask' indicates something is cha

[PATCH 07/46] staging: comedi: adl_pci9111: cleanup pci9111_di_insn_bits()

2012-09-10 Thread H Hartley Sweeten
Remove the unnecessary comments and remove the unneeded local variable. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adl_pci9111.c | 14 +++--- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/drivers/staging/co

[PATCH 06/46] staging: comedi: adl_pci9111: remove pci9111_d[io]_* i/o macros

2012-09-10 Thread H Hartley Sweeten
These macros rely on a local variable having a specific name. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adl_pci9111.c | 11 +++ 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/drivers/staging/comedi/drivers/a

[PATCH 05/46] staging: comedi: adl_pci9111: use 8253 helper functions

2012-09-10 Thread H Hartley Sweeten
The timer on this board is a standard 8254 compatible counter/timer. Instead of open-coding the 8254 timer io, use the helper functions provided by 8253.h. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adl_pci9111.c | 53 -

[PATCH 04/46] staging: comedi: adl_pci9111: remove pci9111_8254_* i/o macros

2012-09-10 Thread H Hartley Sweeten
These macros rely on a local variable having a specific name. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adl_pci9111.c | 65 ++-- 1 file changed, 24 insertions(+), 41 deletions(-) diff --git a/drivers/stagi

[PATCH 03/46] staging: comedi: adl_pci9111: remove PCI9111_IO_BASE macro

2012-09-10 Thread H Hartley Sweeten
This macro relies on a local variable having a specific name. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adl_pci9111.c | 60 ++-- 1 file changed, 29 insertions(+), 31 deletions(-) diff --git a/drivers/stagi

[PATCH 02/46] staging: comedi: adl_pci9111: remove pci9111_board_nbr macro

2012-09-10 Thread H Hartley Sweeten
This macro is an open-coded version of the kernels ARRAY_SIZE macro. Use the kernel provided macro instead. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adl_pci9111.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --

[PATCH 01/46] staging: comedi: adl_pci9111: remove dev_private macro

2012-09-10 Thread H Hartley Sweeten
This macro relies on a local variable having a specific name. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adl_pci9111.c | 32 1 file changed, 23 insertions(+), 9 deletions(-) diff --git a/drivers/stagin

[PATCH 00/46] staging: comedi: adl_pci9111: cleanup the driver

2012-09-10 Thread H Hartley Sweeten
Remove the boardinfo and convert this driver to use the comedi attach_pci auto config mechanism. Use the 8253 helpers and remove the code for programming the timers. Remove a bunch of debug code and all the i/o macros. Introduce two new helper functions to comedi_fc. These will be used to help c

[PATCH V2]staging: "wlags49_h2" Fix typos.

2012-09-10 Thread Justin P. Mattock
From: "Justin P. Mattock" Signed-off-by: Justin P. Mattock --- NOTE: Resend because the original created a new typo in the subject line. The below patch fixes typos while reading through staging "wlags49_h2". drivers/staging/wlags49_h2/README.ubuntu | 10 +- drivers/staging/wlags49

[PATCH 3.6rc5.linux-next] Staging: silicom: Header-cleanup

2012-09-10 Thread DanielC
Staging: silicom: Header cleanup of WD_STEP_COUNT_GET Signed-off-by: Daniel Cotey --- drivers/staging/silicom/bp_ioctl.h | 2 +- drivers/staging/silicom/libbp_sd.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/silicom/bp_ioctl.h b/drivers/staging/silicom/

Re: [PATCH 07/21] staging: xgifb: avoid copy-pasting LCD data

2012-09-10 Thread Aaro Koskinen
Hi, On Mon, Sep 10, 2012 at 11:31:42PM +0200, Peter Hüwe wrote: > Am Montag, 10. September 2012, 23:15:18 schrieb Aaro Koskinen: > > +#define XGI_CetLCD1400x1050Data XGI_CetLCD1280x1024Data > > Hi, > > why the define and not rewrite and maybe simplify the code? > (that they use the same table)

[PATCH 21/21] staging: xgifb: delete redundant casts

2012-09-10 Thread Aaro Koskinen
Delete some redundant casts. Signed-off-by: Aaro Koskinen --- drivers/staging/xgifb/vb_setmode.c | 83 --- 1 files changed, 29 insertions(+), 54 deletions(-) diff --git a/drivers/staging/xgifb/vb_setmode.c b/drivers/staging/xgifb/vb_setmode.c index ef8775e..e9

Re: [PATCH 07/21] staging: xgifb: avoid copy-pasting LCD data

2012-09-10 Thread Peter Hüwe
Am Montag, 10. September 2012, 23:15:18 schrieb Aaro Koskinen: > Share the common data tables instead of having the same data in multiple > tables. > > Signed-off-by: Aaro Koskinen > --- > drivers/staging/xgifb/vb_table.h | 37 > +++-- 1 files changed, 3 insertio

[PATCH 16/21] staging: xgifb: use "else if"

2012-09-10 Thread Aaro Koskinen
Use "else if" when possible to reduce nesting. Signed-off-by: Aaro Koskinen --- drivers/staging/xgifb/XGI_main_26.c |7 +- drivers/staging/xgifb/vb_setmode.c | 164 +++ 2 files changed, 74 insertions(+), 97 deletions(-) diff --git a/drivers/staging/xgifb/XG

[PATCH 18/21] staging: xgifb: mark constant data with const

2012-09-10 Thread Aaro Koskinen
Mark some data tables as const. Signed-off-by: Aaro Koskinen --- drivers/staging/xgifb/vb_setmode.c |4 ++-- drivers/staging/xgifb/vb_table.h | 28 ++-- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/drivers/staging/xgifb/vb_setmode.c b/drivers/

[PATCH 13/21] staging: xgifb: XGI_GetLcdPtr: delete dead code

2012-09-10 Thread Aaro Koskinen
Only table values 0..5 are ever used. Signed-off-by: Aaro Koskinen --- drivers/staging/xgifb/vb_setmode.c | 10 ++ 1 files changed, 2 insertions(+), 8 deletions(-) diff --git a/drivers/staging/xgifb/vb_setmode.c b/drivers/staging/xgifb/vb_setmode.c index a1ee4c1..c97e438 100644 --- a

[PATCH 17/21] staging: xgifb: access static data tables directly

2012-09-10 Thread Aaro Koskinen
Access some data tables directly instead of using pointers. Signed-off-by: Aaro Koskinen --- drivers/staging/xgifb/vb_setmode.c | 43 +++ drivers/staging/xgifb/vb_struct.h | 14 --- 2 files changed, 14 insertions(+), 43 deletions(-) diff --git a/driv

[PATCH 19/21] staging: xgifb: delete ISXPDOS

2012-09-10 Thread Aaro Koskinen
Delete unneeded flag. Signed-off-by: Aaro Koskinen --- drivers/staging/xgifb/vb_init.c|2 -- drivers/staging/xgifb/vb_setmode.c |4 +--- drivers/staging/xgifb/vb_struct.h |1 - 3 files changed, 1 insertions(+), 6 deletions(-) diff --git a/drivers/staging/xgifb/vb_init.c b/drive

[PATCH 10/21] staging: xgifb: use proper typing for TV data

2012-09-10 Thread Aaro Koskinen
There's a dangerous cast from XGI330_TVDataStruct to SiS_TVData. Use SiS_TVData everywhere, also the data can be made const. Signed-off-by: Aaro Koskinen --- drivers/staging/xgifb/vb_setmode.c |9 + drivers/staging/xgifb/vb_struct.h | 13 - drivers/staging/xgifb/vb_tab

[PATCH 15/21] staging: xgifb: delete XGI_LCDDataTablStruct

2012-09-10 Thread Aaro Koskinen
Delete an unused structure. Signed-off-by: Aaro Koskinen --- drivers/staging/xgifb/vb_struct.h |7 --- 1 files changed, 0 insertions(+), 7 deletions(-) diff --git a/drivers/staging/xgifb/vb_struct.h b/drivers/staging/xgifb/vb_struct.h index 2eaeb26..3780a42 100644 --- a/drivers/staging

[PATCH 11/21] staging: xgifb: use a real pointer for TV DATAPTR

2012-09-10 Thread Aaro Koskinen
Replace DATAPTR numbers with a real pointer to make code simpler. Signed-off-by: Aaro Koskinen --- drivers/staging/xgifb/vb_setmode.c | 48 +--- drivers/staging/xgifb/vb_struct.h |2 +- drivers/staging/xgifb/vb_table.h | 30 +++--- 3 fil

[PATCH 03/21] staging: xgifb: delete IF_DEF_ExpLink

2012-09-10 Thread Aaro Koskinen
Delete a flag which is never set. Signed-off-by: Aaro Koskinen --- drivers/staging/xgifb/vb_setmode.c | 14 -- drivers/staging/xgifb/vb_struct.h |1 - 2 files changed, 0 insertions(+), 15 deletions(-) diff --git a/drivers/staging/xgifb/vb_setmode.c b/drivers/staging/xgifb/vb

[PATCH 06/21] staging: xgifb: delete redundant chip type check

2012-09-10 Thread Aaro Koskinen
All chip type values are covered by (chip >= XG20 || chip >= XG40). Signed-off-by: Aaro Koskinen --- drivers/staging/xgifb/vb_setmode.c |4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/drivers/staging/xgifb/vb_setmode.c b/drivers/staging/xgifb/vb_setmode.c index 3cba1

[PATCH 20/21] staging: xgifb: use correct type for VBVCLKData

2012-09-10 Thread Aaro Koskinen
Use correct type to eliminate casting. Signed-off-by: Aaro Koskinen --- drivers/staging/xgifb/vb_setmode.c |6 +++--- drivers/staging/xgifb/vb_table.h |2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/xgifb/vb_setmode.c b/drivers/staging/xgifb/vb_se

[PATCH 14/21] staging: xgifb: delete LCDLenList

2012-09-10 Thread Aaro Koskinen
LCDLenList is redundant. It's only used for modifying a write-only stack variable. Delete also related #defines. Signed-off-by: Aaro Koskinen --- drivers/staging/xgifb/vb_def.h | 10 -- drivers/staging/xgifb/vb_setmode.c | 11 +-- drivers/staging/xgifb/vb_table.h | 13

[PATCH 12/21] staging: xgifb: delete Chrontel 7017 LCD data

2012-09-10 Thread Aaro Koskinen
Delete unused Chrontel 7017 LCD data. Signed-off-by: Aaro Koskinen --- drivers/staging/xgifb/vb_setmode.c | 13 - drivers/staging/xgifb/vb_table.h | 13 - 2 files changed, 0 insertions(+), 26 deletions(-) diff --git a/drivers/staging/xgifb/vb_setmode.c b/drivers/s

[PATCH 04/21] staging: xgifb: delete IF_DEF_LCDA

2012-09-10 Thread Aaro Koskinen
IF_DEF_LCDA is always true. Signed-off-by: Aaro Koskinen --- drivers/staging/xgifb/vb_setmode.c | 102 +--- drivers/staging/xgifb/vb_struct.h |3 +- 2 files changed, 37 insertions(+), 68 deletions(-) diff --git a/drivers/staging/xgifb/vb_setmode.c b/driver

[PATCH 08/21] staging: xgifb: XGI_GetTVPtr: drop the table parameter

2012-09-10 Thread Aaro Koskinen
Only one TV data table is used by the driver, delete unneeded complexity. Signed-off-by: Aaro Koskinen --- drivers/staging/xgifb/vb_setmode.c | 150 1 files changed, 50 insertions(+), 100 deletions(-) diff --git a/drivers/staging/xgifb/vb_setmode.c b/drive

[PATCH 02/21] staging: xgifb: replace XGI_XG21SetPanelDelay() with mdelay()

2012-09-10 Thread Aaro Koskinen
Eliminate a trivial wrapper function. Signed-off-by: Aaro Koskinen --- drivers/staging/xgifb/vb_setmode.c | 39 +-- 1 files changed, 6 insertions(+), 33 deletions(-) diff --git a/drivers/staging/xgifb/vb_setmode.c b/drivers/staging/xgifb/vb_setmode.c index e81

[PATCH 05/21] staging: xgifb: delete some unused #defines

2012-09-10 Thread Aaro Koskinen
Delete some unused #defines. Signed-off-by: Aaro Koskinen --- drivers/staging/xgifb/vb_def.h | 11 --- 1 files changed, 0 insertions(+), 11 deletions(-) diff --git a/drivers/staging/xgifb/vb_def.h b/drivers/staging/xgifb/vb_def.h index 69078d9..609ab70 100644 --- a/drivers/staging/xgi

[PATCH 09/21] staging: xgifb: delete Chrontel TV data

2012-09-10 Thread Aaro Koskinen
Delete unused Chrontel TV data. Signed-off-by: Aaro Koskinen --- drivers/staging/xgifb/vb_setmode.c |9 +++ drivers/staging/xgifb/vb_table.h | 45 2 files changed, 4 insertions(+), 50 deletions(-) diff --git a/drivers/staging/xgifb/vb_setmode.c

[PATCH 00/21] staging: xgifb: cleanups

2012-09-10 Thread Aaro Koskinen
Hi, Continuing cleanups for xgifb deleting redundant code and some refactoring. No changes in functionality. Static analysis done with checkpatch.pl (no errors/warnings), GCC 4.7.1 (no warnings), sparse 0.4.4 (no warnings). Basic frame buffer console functionality tested with Z9/XG21 with LVDS

[PATCH 01/21] staging: xgifb: document some LVDS data delay values

2012-09-10 Thread Aaro Koskinen
Document some delay values based on the comments in XGI_XG21SetPanelDelay(). Signed-off-by: Aaro Koskinen --- drivers/staging/xgifb/vb_struct.h |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/xgifb/vb_struct.h b/drivers/staging/xgifb/vb_struct.h i

[PATCH 07/21] staging: xgifb: avoid copy-pasting LCD data

2012-09-10 Thread Aaro Koskinen
Share the common data tables instead of having the same data in multiple tables. Signed-off-by: Aaro Koskinen --- drivers/staging/xgifb/vb_table.h | 37 +++-- 1 files changed, 3 insertions(+), 34 deletions(-) diff --git a/drivers/staging/xgifb/vb_table.h b/driv

Re: [PATCH 01/20] Staging: ipack/bridges/tpci200: Put the TPCI200 control registers into a struct.

2012-09-10 Thread Greg Kroah-Hartman
On Mon, Sep 10, 2012 at 10:51:39AM +0200, Samuel Iglesias Gonsálvez wrote: > From: Jens Taprogge > > This saves us from a little pointer arithmetic and cleans up the code a bit. > > Signed-off-by: Jens Taprogge > Signed-off-by: Samuel Iglesias Gonsálvez > --- > drivers/staging/ipack/bridges/t

[PATCH] staging: ipack: make function tables const.

2012-09-10 Thread Stephen Hemminger
Make some variables const: 1. bus oerations table 2. driver name 3. tpci control register table Signed-off-by: Stephen Hemminger --- Patch against current staging-next drivers/staging/ipack/bridges/tpci200.c |6 ++ drivers/staging/ipack/ipack.c |4 ++-- drivers/stag

Re: [PATCH]NEXT:staging "wlags49_h2" Fix ypos.

2012-09-10 Thread Greg KH
On Mon, Sep 10, 2012 at 09:04:26AM -0700, Justin P. Mattock wrote: > From: "Justin P. Mattock" > > Signed-off-by: Justin P. Mattock What's with the "NEXT" in the subject? That means I need to edit it by hand :( And, the main reason I'm rejecting this patch, you have a typo in your subject lin

[PATCH]NEXT:staging "wlags49_h2" Fix ypos.

2012-09-10 Thread Justin P. Mattock
From: "Justin P. Mattock" Signed-off-by: Justin P. Mattock --- The below patch fixes typos while reading through staging "wlags49_h2". drivers/staging/wlags49_h2/README.ubuntu | 10 +- drivers/staging/wlags49_h2/TODO | 10 +- drivers/staging/wlags49_h2/hcf.c

[PATCH -next] staging: fix ccg build when NET is not enabled

2012-09-10 Thread Randy Dunlap
OR: "skb_put" [drivers/staging/ccg/g_ccg.ko] undefined! ERROR: "eth_mac_addr" [drivers/staging/ccg/g_ccg.ko] undefined! ERROR: "dev_get_stats" [drivers/staging/ccg/g_ccg.ko] undefined! ERROR: "alloc_etherdev_mqs" [drivers/staging/ccg/g_ccg.ko] undefined! Signed-off-by: Ra

Re: [PATCH]NEXT:staging "winbond" Fix typos.

2012-09-10 Thread Pavel Machek
On Mon 2012-09-03 08:06:02, Justin P. Mattock wrote: > From: "Justin P. Mattock" > > Signed-off-by: Justin P. Mattock ACK. -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html _

Re: [PATCH v5 1/3] drivers/mfd: Add realtek pcie card reader driver

2012-09-10 Thread Dan Carpenter
I just had a couple few style comments is all, nothing that couldn't be fixed in a later patch. On Mon, Sep 10, 2012 at 04:03:29PM +0800, wei_w...@realsil.com.cn wrote: > +static int rts5209_extra_init_hw(struct rtsx_pcr *pcr) > +{ > + return 0; > +} It would be nicer if the caller checked w

Re: [PATCH v5 0/3] Add modules to support realtek PCIE card reader

2012-09-10 Thread Dan Carpenter
On Mon, Sep 10, 2012 at 05:25:43PM +0800, wwang wrote: > 于 2012年09月10日 17:21, Dan Carpenter 写道: > > These don't apply on top of linux-next. What do they apply on? > > > > regards, > > dan carpenter > > > Hi Dan: > > These can be applied on torvalds's linux tree, tag v3.6-rc5, that is: > http://gi

Re: [PATCH v5 0/3] Add modules to support realtek PCIE card reader

2012-09-10 Thread wwang
于 2012年09月10日 17:21, Dan Carpenter 写道: > These don't apply on top of linux-next. What do they apply on? > > regards, > dan carpenter > Hi Dan: These can be applied on torvalds's linux tree, tag v3.6-rc5, that is: http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=tag;h=refs/tags/v3.6-

Re: [PATCH v5 0/3] Add modules to support realtek PCIE card reader

2012-09-10 Thread Dan Carpenter
These don't apply on top of linux-next. What do they apply on? regards, dan carpenter ___ devel mailing list devel@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/devel

[PATCH 20/20] Staging: ipack/bridges/tpci200: Store the irq holder in slot_irq.

2012-09-10 Thread Samuel Iglesias Gonsálvez
From: Jens Taprogge This way we do no longer need to keep a dangling pointer to struct ipack_device in tpci200_slot after the device has been removed. Signed-off-by: Jens Taprogge Signed-off-by: Samuel Iglesias Gonsálvez --- drivers/staging/ipack/bridges/tpci200.c | 19 ---

[PATCH 19/20] Staging: ipack: delete .remove_device() callback

2012-09-10 Thread Samuel Iglesias Gonsálvez
As the IP module driver takes care of freeing its resources. Signed-off-by: Samuel Iglesias Gonsálvez --- drivers/staging/ipack/bridges/tpci200.c |1 - drivers/staging/ipack/ipack.h |3 --- 2 files changed, 4 deletions(-) diff --git a/drivers/staging/ipack/bridges/tpci200.c b

[PATCH 18/20] Staging: ipack/bridges/tpci200: remove tpci200_slot_unregister

2012-09-10 Thread Samuel Iglesias Gonsálvez
It is not needed as the IP module should free its IRQ using tpci200_free_irq callback. Signed-off-by: Samuel Iglesias Gonsálvez --- drivers/staging/ipack/bridges/tpci200.c | 24 +--- 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/drivers/staging/ipack/bridges

[PATCH 17/20] Staging: ipack/bridges/tpci200: delete ipack_device_unregister calls when exiting

2012-09-10 Thread Samuel Iglesias Gonsálvez
As the ipack_bus_unregister() takes care of unregistering the devices plugged in the carrier, it is not needed to do it in the carrier driver. Signed-off-by: Samuel Iglesias Gonsálvez --- drivers/staging/ipack/bridges/tpci200.c |7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff

[PATCH 16/20] Staging: ipack: unregister devices when uninstall the carrier device.

2012-09-10 Thread Samuel Iglesias Gonsálvez
Find the IP modules that are plugged to the carrier and unregister them. Signed-off-by: Samuel Iglesias Gonsálvez --- drivers/staging/ipack/ipack.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers/staging/ipack/ipack.c b/drivers/staging/ipack/ipack.c index b368a26..bf6

[PATCH 15/20] Staging: ipack/devices/ipoctal: free the IRQ.

2012-09-10 Thread Samuel Iglesias Gonsálvez
As the IRQ was requested by the driver, it should free it also. Signed-off-by: Samuel Iglesias Gonsálvez --- drivers/staging/ipack/devices/ipoctal.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/staging/ipack/devices/ipoctal.c b/drivers/staging/ipack/devices/ipoctal.c index 2

[PATCH 14/20] Staging: ipack/devices/ipoctal: change exiting procedure

2012-09-10 Thread Samuel Iglesias Gonsálvez
The ipoctal devices can be uninstalled from the ipack_driver_unregister() call as the device model calles the bus's .remove() function for each device registered by the driver and it will execute the .remove() function of the ipoctal driver. Signed-off-by: Samuel Iglesias Gonsálvez --- drivers/s

  1   2   >