On 29 August 2013 03:45, Greg KH wrote:
> On Wed, Aug 28, 2013 at 10:35:46AM +0530, Sachin Kamat wrote:
>> Include version.h header file as detected by versioncheck.
>>
>> Cc: Lidza Louina
>> Signed-off-by: Sachin Kamat
>> ---
>> drivers/staging/dgap/dgap_kcompat.h |2 ++
>> 1 file changed,
On Wed, Aug 28, 2013 at 4:30 AM, Dan Carpenter wrote:
> On Tue, Aug 27, 2013 at 10:13:27PM -0400, Lidza Louina wrote:
>> @@ -501,7 +501,7 @@ static int dgnc_found_board(struct pci_dev *pdev, int id)
>>
>> /* get the board structure and prep it */
>> brd = dgnc_Board[dgnc_NumBoards] =
>
On Wed, Aug 28, 2013 at 4:30 AM, Dan Carpenter wrote:
> On Tue, Aug 27, 2013 at 10:13:27PM -0400, Lidza Louina wrote:
>> @@ -501,7 +501,7 @@ static int dgnc_found_board(struct pci_dev *pdev, int id)
>>
>> /* get the board structure and prep it */
>> brd = dgnc_Board[dgnc_NumBoards] =
>
On Wed, Aug 28, 2013 at 12:54 AM, Greg KH wrote:
> I'll take this for now, but all of these casts of the kzalloc() call
> need to go away, as they are pointless (kzalloc() returns a void *,
> which automatically can be assigned to any pointer type, no need to be
> explicit about it.)
>
> So that m
The control register for the parallel port is readable so there is no need
to cache the current value in the private data.
Signed-off-by: H Hartley Sweeten
Cc: Ian Abbott
Cc: Greg Kroah-Hartman
---
drivers/staging/comedi/drivers/comedi_parport.c | 34 ++---
1 file changed,
Change the MODULE_DESCRIPTION to something useful instead of the
generic "Comedi low-level driver".
Signed-off-by: H Hartley Sweeten
Cc: Ian Abbott
Cc: Greg Kroah-Hartman
---
drivers/staging/comedi/drivers/comedi_parport.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dri
Use the core provided helper function instead of duplicating it as
a private function.
Signed-off-by: H Hartley Sweeten
Cc: Ian Abbott
Cc: Greg Kroah-Hartman
---
drivers/staging/comedi/drivers/ni_labpc.c | 10 ++
1 file changed, 2 insertions(+), 8 deletions(-)
diff --git a/drivers/sta
Use the new comedi_dio_insn_bits() and comedi_dio_insn_config() helpers
to tidy up the digital subdevices in this driver.
Remove the need for the kzalloc'd private data.
H Hartley Sweeten (15):
staging: comedi: comedi_parport: tidy up the register map
staging: comedi: comedi_parport: remove '
Rename this function to better describe it's use.
Tidy it up to follow the normal comedi (*insn_bits) for DI subdevices.
Signed-off-by: H Hartley Sweeten
Cc: Ian Abbott
Cc: Greg Kroah-Hartman
---
drivers/staging/comedi/drivers/comedi_parport.c | 15 ++-
1 file changed, 6 insertion
On Wed, Aug 28, 2013 at 06:50:44PM -0400, Lidza Louina wrote:
> On Wed, Aug 28, 2013 at 6:34 PM, Lidza Louina wrote:
> > On Wed, Aug 28, 2013 at 12:57 AM, Greg KH
> > wrote:
> >> On Tue, Aug 27, 2013 at 10:13:28PM -0400, Lidza Louina wrote:
> >>> This patch removes the dgnc_driver_kzmalloc funct
On Wed, Aug 28, 2013 at 6:34 PM, Lidza Louina wrote:
> On Wed, Aug 28, 2013 at 12:57 AM, Greg KH wrote:
>> On Tue, Aug 27, 2013 at 10:13:28PM -0400, Lidza Louina wrote:
>>> This patch removes the dgnc_driver_kzmalloc function from
>>> driver.c and driver.h. A previous patch replaced all
>>> dgnc_
On Wed, Aug 28, 2013 at 12:57 AM, Greg KH wrote:
> On Tue, Aug 27, 2013 at 10:13:28PM -0400, Lidza Louina wrote:
>> This patch removes the dgnc_driver_kzmalloc function from
>> driver.c and driver.h. A previous patch replaced all
>> dgnc_driver_kzmalloc function calls with kzalloc.
>>
>> Signed-of
On Wed, Aug 28, 2013 at 10:35:46AM +0530, Sachin Kamat wrote:
> Include version.h header file as detected by versioncheck.
>
> Cc: Lidza Louina
> Signed-off-by: Sachin Kamat
> ---
> drivers/staging/dgap/dgap_kcompat.h |2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/drivers/stagin
Use the core provided helper function instead of duplicating it as
a private function.
Signed-off-by: H Hartley Sweeten
Cc: Ian Abbott
Cc: Greg Kroah-Hartman
---
drivers/staging/comedi/drivers/pcmad.c | 8 +---
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/drivers/staging/co
The current code would attempt to negotiate a different protocol version if
the current negotiation timed out. This triggers an assert in the host (on debug
builds). Avoid this by negotiating a newer version only if the host properly
rejects the current version being negotiated.
Signed-off-by: K.
Use the dev->read_subdev to get the comedi_subdevice instead of accessing
the dev->subdevices array directly.
Signed-off-by: H Hartley Sweeten
Cc: Ian Abbott
Cc: Greg Kroah-Hartman
---
drivers/staging/comedi/drivers/comedi_parport.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff -
For aesthetic reasons, rename this function.
Signed-off-by: H Hartley Sweeten
Cc: Ian Abbott
Cc: Greg Kroah-Hartman
---
drivers/staging/comedi/drivers/comedi_parport.c | 9 +
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/drivers/staging/comedi/drivers/comedi_parport.c
For aesthetic reasons, reorder the #include list.
Signed-off-by: H Hartley Sweeten
Cc: Ian Abbott
Cc: Greg Kroah-Hartman
---
drivers/staging/comedi/drivers/comedi_parport.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/staging/comedi/drivers/comedi_parport.c
b/
Tidy up the multi-line comments to follow the CodingStyle.
Signed-off-by: H Hartley Sweeten
Cc: Ian Abbott
Cc: Greg Kroah-Hartman
---
drivers/staging/comedi/drivers/comedi_parport.c | 136 +++-
1 file changed, 62 insertions(+), 74 deletions(-)
diff --git a/drivers/staging/
Add some whitespace to tidy up the subdevice init.
Signed-off-by: H Hartley Sweeten
Cc: Ian Abbott
Cc: Greg Kroah-Hartman
---
drivers/staging/comedi/drivers/comedi_parport.c | 64 +
1 file changed, 34 insertions(+), 30 deletions(-)
diff --git a/drivers/staging/comedi/d
Interrupt support in this driver is optional. Don't fail the attach of the
board if the request_irq() fails.
Only allocate and setup the subdevice for the interrupt if the request_irq()
was successful.
Signed-off-by: H Hartley Sweeten
Cc: Ian Abbott
Cc: Greg Kroah-Hartman
---
drivers/staging/
The enabled state of the interrupt can be checked by reading the control
register.
Remove 'enabled_irq' from the private data.
Since the private data is now empty, remove it completely and remove the
allocation of it in parport_attach().
Signed-off-by: H Hartley Sweeten
Cc: Ian Abbott
Cc: Greg
Rename this function to better describe it's use.
Use comedi_dio_insn_bits() to handle the boilerplate code to update
the subdevice s->state.
Signed-off-by: H Hartley Sweeten
Cc: Ian Abbott
Cc: Greg Kroah-Hartman
---
drivers/staging/comedi/drivers/comedi_parport.c | 18 +-
1 f
Rename this function to better describe it's use.
Use comedi_dio_insn_bits() to handle the boilerplate code to update
the subdevice s->state.
Signed-off-by: H Hartley Sweeten
Cc: Ian Abbott
Cc: Greg Kroah-Hartman
---
drivers/staging/comedi/drivers/comedi_parport.c | 14 ++
1 file
This is the (*insn_config) function for a DIO subdevice. It should be
using the data[0] value as the "instruction" to perform on the subdevice.
Use the comedi_dio_insn_config() helper to properly handle instructions.
Also, rename the function to better describe it's use.
Signed-off-by: H Hartley
Use the subdevice s->state to hold the current state of the data register
outputs instead of carrying it in the private data.
Signed-off-by: H Hartley Sweeten
Cc: Ian Abbott
Cc: Greg Kroah-Hartman
---
drivers/staging/comedi/drivers/comedi_parport.c | 12
1 file changed, 4 insertio
Rename the register map defines to better describe the hardware.
Add defines for the control register bits that enable the irq and
change the direction of the data register. This gets rid of the
"magic" numbers.
Remove PARPORT_SIZE, it's only used when requesting the i/o region
with comedi_reques
The (*insn_bits) functions for DIO and DO subdevices typically use
the subdevice 's->state' to hold the current state of the output
channels. The 'insn' passed to these functions, INSN_BITS, specifies
two parameters passed in the 'data'.
data[0] = 'mask', the channels to update
data[1] = 'bits
The subdevice 'io_bits' is a bit mask of the i/o configuration for
digital subdevices. '0' values indicate that a channel is configured
as an input and '1' values that the channel is an output. Since the
subdevice data is kzalloc()'d, all channels default as inputs.
Modify __comedi_device_postconf
Use comedi_dio_insn_bits() to handle the boilerplate code to update
the subdevice s->state.
Signed-off-by: H Hartley Sweeten
Cc: Ian Abbott
Cc: Greg Kroah-Hartman
---
drivers/staging/comedi/drivers/ssv_dnp.c | 51 +---
1 file changed, 20 insertions(+), 31 deletions(
Use comedi_dio_insn_bits() to handle the boilerplate code to update
the subdevice s->state.
Signed-off-by: H Hartley Sweeten
Cc: Ian Abbott
Cc: Greg Kroah-Hartman
---
drivers/staging/comedi/drivers/adq12b.c | 22 ++
1 file changed, 10 insertions(+), 12 deletions(-)
diff --
Use the subdevice 'state' to hold the digital output state instead
of carrying it in the private data.
Signed-off-by: H Hartley Sweeten
Cc: Ian Abbott
Cc: Greg Kroah-Hartman
---
drivers/staging/comedi/drivers/adq12b.c | 9 +++--
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a
Use comedi_dio_insn_bits() to handle the boilerplate code to update
the subdevice s->state for DIO subdevices.
Signed-off-by: H Hartley Sweeten
Cc: Ian Abbott
Cc: Greg Kroah-Hartman
---
drivers/staging/comedi/drivers/addi_apci_16xx.c | 11 +-
drivers/staging/comedi/drivers/addi_apci_3xxx.c
Convert a couple more comedi drivers to use comedi_dio_insn_bits() to
handle the boilerplate code to update the subdevice s->state.
Signed-off-by: H Hartley Sweeten
Cc: Ian Abbott
Cc: Greg Kroah-Hartman
---
.../staging/comedi/drivers/amplc_dio200_common.c | 22 +-
drivers
Make sure only the state of the channels configured as outputs is updated
by comedi_dio_insn_bits().
Signed-off-by: H Hartley Sweeten
Cc: Ian Abbott
Cc: Greg Kroah-Hartman
---
drivers/staging/comedi/drivers.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/c
Use comedi_dio_insn_bits() to handle the boilerplate code to update
the subdevice s->state for DIO and DO subdevices.
Signed-off-by: H Hartley Sweeten
Cc: Ian Abbott
Cc: Greg Kroah-Hartman
---
drivers/staging/comedi/drivers/8255.c | 25 ++--
.../comedi/drivers/addi-data/hwdrv_
Use comedi_dio_insn_bits() to handle the boilerplate code to update
the subdevice s->state.
These drivers always need to update the hardware in order to update
the i/o configuration regardless of if the state has changed.
Signed-off-by: H Hartley Sweeten
Cc: Ian Abbott
Cc: Greg Kroah-Hartman
-
Convert this driver to use the comedi_dio_insn_bits() helper function.
Tidy up the comments to reflect the new code.
Signed-off-by: H Hartley Sweeten
Cc: Ian Abbott
Cc: Greg Kroah-Hartman
---
drivers/staging/comedi/drivers/skel.c | 43 +++
1 file changed, 28 in
Consolidate the boilerplate code used to mask and set the output channels
of DIO and DO subdevices.
H Hartley Sweeten (11):
staging: comedi: core: introduce comedi_dio_insn_bits()
staging: comedi: skel: use comedi_dio_insn_bits()
staging: comedi: usbdux drivers: use comedi_dio_insn_bits()
On Thu, 22 Aug 2013 18:00:14 +0200, Wolfram Sang wrote:
> I2C of helpers used to live in of_i2c.c but experience (from SPI) shows
> that it is much cleaner to have this in the core. This also removes a
> circular dependency between the helpers and the core, and so we can
> finally register child n
Fixed 3 instances of user-visible string being broken into two string.
Fixed 2 instances of illegal whitespace.
---
drivers/staging/crystalhd/crystalhd_cmds.c |3 +--
drivers/staging/crystalhd/crystalhd_hw.c |7 +++
drivers/staging/crystalhd/crystalhd_lnx.c |3 +--
3 files chang
On 08/28/2013 12:55 AM, Sachin Kamat wrote:
Removed the header files included twice.
Signed-off-by: Sachin Kamat
Cc: Larry Finger
---
drivers/staging/rtl8188eu/os_dep/ioctl_linux.c |2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/staging/rtl8188eu/os_dep/ioctl_linux.c
b/driv
On 08/28/2013 12:35 AM, Sachin Kamat wrote:
Include version.h header file as detected by versioncheck.
Signed-off-by: Sachin Kamat
---
drivers/staging/rtl8188eu/os_dep/xmit_linux.c |1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/staging/rtl8188eu/os_dep/xmit_linux.c
b/drivers
Return error if we receive write(), while PD is not connected.
Signed-off-by: Rupesh Gujare
---
drivers/staging/ozwpan/ozcdev.c |2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/staging/ozwpan/ozcdev.c b/drivers/staging/ozwpan/ozcdev.c
index 50722ea..6ccb64f 100644
--- a/drivers/s
Incorrect error number was returned here (EPERM), ENXIO is more
appropriate.
Signed-off-by: Rupesh Gujare
---
drivers/staging/ozwpan/ozcdev.c |2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/ozwpan/ozcdev.c b/drivers/staging/ozwpan/ozcdev.c
index 03b41ee..50
Buffer depth of 50 units is not sufficient when there is considerable delay
occuring on air due to interference, increase ISOC IN buffer depth to 100 units.
Signed-off-by: Rupesh Gujare
---
drivers/staging/ozwpan/ozhcd.c |2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/driv
On Tue, Aug 27, 2013 at 10:13:27PM -0400, Lidza Louina wrote:
> @@ -501,7 +501,7 @@ static int dgnc_found_board(struct pci_dev *pdev, int id)
>
> /* get the board structure and prep it */
> brd = dgnc_Board[dgnc_NumBoards] =
> - (struct board_t *) dgnc_driver_kzmalloc(sizeof(struc
wlan_bssdef.h was included twice.
Signed-off-by: Sachin Kamat
Cc: Larry Finger
---
drivers/staging/rtl8188eu/include/drv_types.h |1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/staging/rtl8188eu/include/drv_types.h
b/drivers/staging/rtl8188eu/include/drv_types.h
index 6e49359..ad
48 matches
Mail list logo