H Hartley Sweeten | 21 Aug 2012 01:59
Favicon

[PATCH] staging: comedi: remove pointer math for subdevice access

Convert all the comedi_subdevice pointer access from pointer
math to array access.

Signed-off-by: H Hartley Sweeten <hsweeten <at> visionengravers.com>
Cc: Dan Carpenter <dan.carpenter <at> oracle.com>
Cc: Ian Abbott <abbotti <at> mev.co.uk>
Cc: Greg Kroah-Hartman <gregkh <at> linuxfoundation.org>
---
 drivers/staging/comedi/comedi_fops.c               | 28 ++++-----
 drivers/staging/comedi/drivers.c                   |  6 +-
 drivers/staging/comedi/drivers/8255.c              |  4 +-
 drivers/staging/comedi/drivers/acl7225b.c          |  6 +-
 .../staging/comedi/drivers/addi-data/addi_common.c | 14 ++---
 .../comedi/drivers/addi-data/hwdrv_APCI1710.c      | 21 +++----
 .../comedi/drivers/addi-data/hwdrv_apci3120.c      |  6 +-
 .../comedi/drivers/addi-data/hwdrv_apci3200.c      |  2 +-
 drivers/staging/comedi/drivers/adl_pci6208.c       |  6 +-
 drivers/staging/comedi/drivers/adl_pci7296.c       |  4 +-
 drivers/staging/comedi/drivers/adl_pci7x3x.c       |  8 +--
 drivers/staging/comedi/drivers/adl_pci8164.c       |  8 +--
 drivers/staging/comedi/drivers/adl_pci9111.c       |  8 +--
 drivers/staging/comedi/drivers/adl_pci9118.c       | 10 +--
 drivers/staging/comedi/drivers/adq12b.c            |  6 +-
 drivers/staging/comedi/drivers/adv_pci1710.c       | 14 ++---
 drivers/staging/comedi/drivers/adv_pci1723.c       |  4 +-
 drivers/staging/comedi/drivers/adv_pci_dio.c       | 20 +++---
 drivers/staging/comedi/drivers/aio_aio12_8.c       | 10 +--
 drivers/staging/comedi/drivers/aio_iiro_16.c       |  4 +-
 drivers/staging/comedi/drivers/amplc_dio200.c      |  6 +-
 drivers/staging/comedi/drivers/amplc_pc236.c       |  8 +--
(Continue reading)

Greg KH | 4 Sep 2012 20:33
Favicon
Gravatar

Re: [PATCH] staging: comedi: remove pointer math for subdevice access

On Mon, Aug 20, 2012 at 04:59:16PM -0700, H Hartley Sweeten wrote:
> Convert all the comedi_subdevice pointer access from pointer
> math to array access.
> 
> Signed-off-by: H Hartley Sweeten <hsweeten <at> visionengravers.com>
> Cc: Dan Carpenter <dan.carpenter <at> oracle.com>
> Cc: Ian Abbott <abbotti <at> mev.co.uk>

This patch doesn't seem to apply, care to break it up into smaller
pieces, and also fold in your "fix the build" patch as well?  That way
we have a chance to get it applied :)

thanks,

greg k-h
H Hartley Sweeten | 4 Sep 2012 20:39
Favicon

RE: [PATCH] staging: comedi: remove pointer math for subdevice access

On Tuesday, September 04, 2012 11:34 AM, Greg KH wrote:
> On Mon, Aug 20, 2012 at 04:59:16PM -0700, H Hartley Sweeten wrote:
>> Convert all the comedi_subdevice pointer access from pointer
>> math to array access.
>> 
>> Signed-off-by: H Hartley Sweeten <hsweeten <at> visionengravers.com>
>> Cc: Dan Carpenter <dan.carpenter <at> oracle.com>
>> Cc: Ian Abbott <abbotti <at> mev.co.uk>
>
> This patch doesn't seem to apply, care to break it up into smaller
> pieces, and also fold in your "fix the build" patch as well?  That way
> we have a chance to get it applied :)

Not a problem. Thanks!

Hartley

H Hartley Sweeten | 4 Sep 2012 20:39
Favicon

RE: [PATCH] staging: comedi: remove pointer math for subdevice access

On Tuesday, September 04, 2012 11:34 AM, Greg KH wrote:
> On Mon, Aug 20, 2012 at 04:59:16PM -0700, H Hartley Sweeten wrote:
>> Convert all the comedi_subdevice pointer access from pointer
>> math to array access.
>> 
>> Signed-off-by: H Hartley Sweeten <hsweeten <at> visionengravers.com>
>> Cc: Dan Carpenter <dan.carpenter <at> oracle.com>
>> Cc: Ian Abbott <abbotti <at> mev.co.uk>
>
> This patch doesn't seem to apply, care to break it up into smaller
> pieces, and also fold in your "fix the build" patch as well?  That way
> we have a chance to get it applied :)

Not a problem. Thanks!

Hartley
Greg KH | 4 Sep 2012 20:33
Favicon
Gravatar

Re: [PATCH] staging: comedi: remove pointer math for subdevice access

On Mon, Aug 20, 2012 at 04:59:16PM -0700, H Hartley Sweeten wrote:
> Convert all the comedi_subdevice pointer access from pointer
> math to array access.
> 
> Signed-off-by: H Hartley Sweeten <hsweeten <at> visionengravers.com>
> Cc: Dan Carpenter <dan.carpenter <at> oracle.com>
> Cc: Ian Abbott <abbotti <at> mev.co.uk>

This patch doesn't seem to apply, care to break it up into smaller
pieces, and also fold in your "fix the build" patch as well?  That way
we have a chance to get it applied :)

thanks,

greg k-h

Gmane