GitHub/MotorolaMobilityLLC/kernel-slsi.git
13 years agoiio: dac: New driver for AD5686R, AD5685R, AD5684R Digital to analog converters
Michael Hennerich [Fri, 10 Jun 2011 13:40:49 +0000 (15:40 +0200)]
iio: dac: New driver for AD5686R, AD5685R, AD5684R Digital to analog converters

New driver for AD5686R, AD5685R, AD5684R Quad channel digital to analog converters

Changes since V1:

drop header file
use strtobool()
Fix dev attribute macros
Reorder probe() function

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Acked-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoiio: industrialio-core: Add IIO_OUT type
Michael Hennerich [Fri, 10 Jun 2011 13:40:48 +0000 (15:40 +0200)]
iio: industrialio-core: Add IIO_OUT type

Add IIO_OUT type for DAC like devices
In case of IIO_OUT make sure the channel device attribute is writable

Ideally we add a flag to iio_chan_spec that tells the core that
the channel device attribute is writable...

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Acked-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoIIO: ADC: New driver for AD7792/AD7793 3 Channel SPI ADC
Michael Hennerich [Wed, 8 Jun 2011 14:12:44 +0000 (16:12 +0200)]
IIO: ADC: New driver for AD7792/AD7793 3 Channel SPI ADC

New driver for AD7792/AD7793 3-Channel, Low Noise,
Low Power, 16-/24-Bit Sigma-Delta ADC with On-Chip In-Amp
and Reference.

The AD7792/AD7793 features a dual use data out ready DOUT/RDY output.
In order to avoid contentions on the SPI bus, it's necessary to use
spi bus locking. The DOUT/RDY output must also be wired to an
interrupt capable GPIO.

In INDIO_RING_TRIGGERED mode, this driver may block its SPI bus segment
for an extended period of time.

Changes since V1:

Use bool where applicable.
Use data buffer that lives in their own cache line.
Restructure ad7793_calibrate_all to use an array.
Use msleep.
Query REG_ID instead of doing a write/read This is a test.
Add support for unipolar mode.
Drop range attribute in favor of write scale.
Add proper locking.
Use new validate_trigger callbacks.
Use IIO_IN_DIFF for differential channels.
Change attribute naming.
Use available_scan_masks.
Some other miscellaneous cleanup (none functional changes).

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Acked-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging:iio:accel:kxsd9 replace kmallocs in power_up with use of already allocated...
anish kumar [Mon, 27 Jun 2011 12:08:00 +0000 (13:08 +0100)]
staging:iio:accel:kxsd9 replace kmallocs in power_up with use of already allocated buffer.

Signed-off-by: anish kumar <anish198519851985@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: IIO corrected the spelling in iio-trig-gpio
anish [Mon, 27 Jun 2011 12:07:59 +0000 (13:07 +0100)]
staging: IIO corrected the spelling in iio-trig-gpio

Corrected the spelling.

Signed-off-by: anish kumar <anish198519851985@gmail.com>
Acked-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging:iio:accel:adis16201 general cleanup, move to iio_priv and buffers in adis1620...
Jonathan Cameron [Mon, 27 Jun 2011 12:07:58 +0000 (13:07 +0100)]
staging:iio:accel:adis16201 general cleanup, move to iio_priv and buffers in adis16201_state

Basically use various new facilities to tidy up.

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Acked-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging:iio:light:isl29018: allocate device state with iio_dev
Jonathan Cameron [Mon, 27 Jun 2011 12:07:57 +0000 (13:07 +0100)]
staging:iio:light:isl29018: allocate device state with iio_dev

V2: Actually allocate the space for iio_priv

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging:iio:magnetometer:hmc5843: allocate device state with iio_dev.
Jonathan Cameron [Mon, 27 Jun 2011 12:07:56 +0000 (13:07 +0100)]
staging:iio:magnetometer:hmc5843: allocate device state with iio_dev.

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging:iio:meter:ade7759: allocate state with iio_dev
Jonathan Cameron [Mon, 27 Jun 2011 12:07:55 +0000 (13:07 +0100)]
staging:iio:meter:ade7759: allocate state with iio_dev

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Acked-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging:iio:magnetometer:ak8975: allocate chip state with iio_dev.
Jonathan Cameron [Mon, 27 Jun 2011 12:07:54 +0000 (13:07 +0100)]
staging:iio:magnetometer:ak8975: allocate chip state with iio_dev.

Here the ordering is a little tricky, so to keep changes minimal, a copy of the gpio
number is introduced.

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging:iio:resolver:ad2s90 general cleanup
Jonathan Cameron [Mon, 27 Jun 2011 12:07:53 +0000 (13:07 +0100)]
staging:iio:resolver:ad2s90 general cleanup

Very simple driver, so not much to do.

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Acked-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging:iio:resolver:ad2s120x cleanup.
Jonathan Cameron [Mon, 27 Jun 2011 12:07:52 +0000 (13:07 +0100)]
staging:iio:resolver:ad2s120x cleanup.

I've currently squashed the vel + pos combined attribute.  If people need them
precisely paired I doubt they will get them from the sysfs interface anyway.
If that is a requirement it should come via a buffer implementation.

Note this patch leaves the completely non standard interface alone.
That will get fixed later.

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Acked-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging:iio:resolver:ad2s1210 general driver cleanup.
Jonathan Cameron [Mon, 27 Jun 2011 12:07:51 +0000 (13:07 +0100)]
staging:iio:resolver:ad2s1210 general driver cleanup.

Note I haven't made any changes to the userspace interface as yet.
This is all about cleaning up what was actually there (handling
all errors etc).

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Acked-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging:iio:meter:ade7854: Allocate buffers in state and state with iio_dev.
Jonathan Cameron [Mon, 27 Jun 2011 12:07:50 +0000 (13:07 +0100)]
staging:iio:meter:ade7854: Allocate buffers in state and state with iio_dev.

Requires moving a few things around, but should be no functional changes.

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Acked-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging:iio:meter:ade7754: allocate state with iio_dev and buffers in state.
Jonathan Cameron [Mon, 27 Jun 2011 12:07:49 +0000 (13:07 +0100)]
staging:iio:meter:ade7754: allocate state with iio_dev and buffers in state.

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Acked-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging:iio:meter:ade7753 allocate chip state with iio_dev; allocate buffers within...
Jonathan Cameron [Mon, 27 Jun 2011 12:07:48 +0000 (13:07 +0100)]
staging:iio:meter:ade7753 allocate chip state with iio_dev; allocate buffers within state

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Acked-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging:iio:gyro:adxrs450: allocate chip state with iio_dev
Jonathan Cameron [Mon, 27 Jun 2011 12:07:47 +0000 (13:07 +0100)]
staging:iio:gyro:adxrs450: allocate chip state with iio_dev

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Acked-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging:iio:gyro:adis16260: allocate chip state with iio_dev and use iio_priv to...
Jonathan Cameron [Mon, 27 Jun 2011 12:07:46 +0000 (13:07 +0100)]
staging:iio:gyro:adis16260: allocate chip state with iio_dev and use iio_priv to access.

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Acked-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging:iio:gyro:adis16130: allocate chip state with iio_dev and use iio_priv to...
Jonathan Cameron [Mon, 27 Jun 2011 12:07:45 +0000 (13:07 +0100)]
staging:iio:gyro:adis16130: allocate chip state with iio_dev and use iio_priv to access it.

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Acked-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging:iio:gyro:adis16080: allocate chip state with iio_dev
Jonathan Cameron [Mon, 27 Jun 2011 12:07:44 +0000 (13:07 +0100)]
staging:iio:gyro:adis16080: allocate chip state with iio_dev

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Acked-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging:iio:gyro:adis16060 allocate chip state with iio_dev.
Jonathan Cameron [Mon, 27 Jun 2011 12:07:43 +0000 (13:07 +0100)]
staging:iio:gyro:adis16060 allocate chip state with iio_dev.

This is still a very odd driver.

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Acked-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging:iio:dds:ad9951: allocate chip state with iio_dev
Jonathan Cameron [Mon, 27 Jun 2011 12:07:42 +0000 (13:07 +0100)]
staging:iio:dds:ad9951: allocate chip state with iio_dev

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Acked-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging:iio:dds:ad9910: allocate chip state with iio_dev
Jonathan Cameron [Mon, 27 Jun 2011 12:07:41 +0000 (13:07 +0100)]
staging:iio:dds:ad9910: allocate chip state with iio_dev

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Acked-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging:iio:dds:ad9810: allocate chip state with iio_dev and use iio_priv for access.
Jonathan Cameron [Mon, 27 Jun 2011 12:07:40 +0000 (13:07 +0100)]
staging:iio:dds:ad9810: allocate chip state with iio_dev and use iio_priv for access.

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Acked-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging:iio:dds:ad9850 allocate chip state with iio_dev + fix name of attr group.
Jonathan Cameron [Mon, 27 Jun 2011 12:07:39 +0000 (13:07 +0100)]
staging:iio:dds:ad9850 allocate chip state with iio_dev + fix name of attr group.

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Acked-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging:iio:ad9834: allocate chip state with iio_dev and use iio_priv to access.
Jonathan Cameron [Mon, 27 Jun 2011 12:07:38 +0000 (13:07 +0100)]
staging:iio:ad9834: allocate chip state with iio_dev and use iio_priv to access.

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Acked-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging:iio:dds:ad9832: allocate chip state with iio_dev and use iio_priv to access.
Jonathan Cameron [Mon, 27 Jun 2011 12:07:37 +0000 (13:07 +0100)]
staging:iio:dds:ad9832: allocate chip state with iio_dev and use iio_priv to access.

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Acked-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging:iio:dds:ad5930 Fix attr group location + allocate state with iio_dev
Jonathan Cameron [Mon, 27 Jun 2011 12:07:36 +0000 (13:07 +0100)]
staging:iio:dds:ad5930 Fix attr group location + allocate state with iio_dev

The main attribute group was placed under driver name for some reason.

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Acked-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging:iio:dac:max517: allocate chip state with iio_dev and use iio_priv to access it.
Jonathan Cameron [Mon, 27 Jun 2011 12:07:35 +0000 (13:07 +0100)]
staging:iio:dac:max517: allocate chip state with iio_dev and use iio_priv to access it.

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging:iio:dac:ad5791: allocate chip state with iio_dev and use iio_priv for access.
Jonathan Cameron [Mon, 27 Jun 2011 12:07:34 +0000 (13:07 +0100)]
staging:iio:dac:ad5791: allocate chip state with iio_dev and use iio_priv for access.

Slightly fiddly case with two regulators - could reorder, but this is the approach with
smallest likely impact.

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Acked-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging:iio:dac:ad5446: allocate chip state with iio_dev and use iio_priv for access.
Jonathan Cameron [Mon, 27 Jun 2011 12:07:33 +0000 (13:07 +0100)]
staging:iio:dac:ad5446: allocate chip state with iio_dev and use iio_priv for access.

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Acked-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging:iio:dac:ad5504: allocate chip state with iio_dev and use iio_priv for access.
Jonathan Cameron [Mon, 27 Jun 2011 12:07:32 +0000 (13:07 +0100)]
staging:iio:dac:ad5504: allocate chip state with iio_dev and use iio_priv for access.

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Acked-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging:iio:dac:ad5624r: allocate chip state with iio_dev and use iio_priv for access.
Jonathan Cameron [Mon, 27 Jun 2011 12:07:31 +0000 (13:07 +0100)]
staging:iio:dac:ad5624r: allocate chip state with iio_dev and use iio_priv for access.

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Acked-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging:iio:adc:adt7410 allocate chip state with iio_dev and use iio_priv to access.
Jonathan Cameron [Mon, 27 Jun 2011 12:07:30 +0000 (13:07 +0100)]
staging:iio:adc:adt7410 allocate chip state with iio_dev and use iio_priv to access.

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Acked-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging:iio:addac:adt7316: allocate chip state with iio_dev and use iio_priv to access.
Jonathan Cameron [Mon, 27 Jun 2011 12:07:29 +0000 (13:07 +0100)]
staging:iio:addac:adt7316: allocate chip state with iio_dev and use iio_priv to access.

Various minor cleanups needed to deal with removal of iio_dev pointer from chip state.

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Acked-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging:iio:adc:adt7310: allocate chip state with iio_dev and use iio_priv for access.
Jonathan Cameron [Mon, 27 Jun 2011 12:07:28 +0000 (13:07 +0100)]
staging:iio:adc:adt7310: allocate chip state with iio_dev and use iio_priv for access.

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Acked-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging:iio:adc:adt75: allocate chip state with iio_dev and cleanup some function...
Jonathan Cameron [Mon, 27 Jun 2011 12:07:27 +0000 (13:07 +0100)]
staging:iio:adc:adt75: allocate chip state with iio_dev and cleanup some function calls.

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Acked-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging:iio:adc:ad7816: allocate chip state with iio_dev and use iio_priv to access.
Jonathan Cameron [Mon, 27 Jun 2011 12:07:26 +0000 (13:07 +0100)]
staging:iio:adc:ad7816: allocate chip state with iio_dev and use iio_priv to access.

Again, get rid of unwanted iio_dev pointer in state.

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Acked-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging:iio:adc:ad7745 allocate chip state with iio_dev and use iio_priv to access.
Jonathan Cameron [Mon, 27 Jun 2011 12:07:25 +0000 (13:07 +0100)]
staging:iio:adc:ad7745 allocate chip state with iio_dev and use iio_priv to access.

Also remove the iio_dev pointer from chip state as never needed.

V2: Actually allocate the space for iio_priv data.

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Acked-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging:iio:adc:ad7314 allocate chip state with iio_dev and use iio_priv to access.
Jonathan Cameron [Mon, 27 Jun 2011 12:07:24 +0000 (13:07 +0100)]
staging:iio:adc:ad7314 allocate chip state with iio_dev and use iio_priv to access.

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Acked-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging:iio:adc:ad7291: allocate chip state with iio_dev and use iio_priv for access.
Jonathan Cameron [Mon, 27 Jun 2011 12:07:23 +0000 (13:07 +0100)]
staging:iio:adc:ad7291: allocate chip state with iio_dev and use iio_priv for access.

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Acked-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging:iio:adc:ad7152: allocate chip state with iio_dev and use iio_priv for access.
Jonathan Cameron [Mon, 27 Jun 2011 12:07:22 +0000 (13:07 +0100)]
staging:iio:adc:ad7152: allocate chip state with iio_dev and use iio_priv for access.

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Acked-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging:iio:adc:ad7150: allocate chip state with iio_dev and use iio_priv to access.
Jonathan Cameron [Mon, 27 Jun 2011 12:07:21 +0000 (13:07 +0100)]
staging:iio:adc:ad7150: allocate chip state with iio_dev and use iio_priv to access.

V2 - actually allocate some space for the iio_priv data.

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Acked-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging:iio:adc:ad799x clear out last few uses of iio_dev->dev_data.
Jonathan Cameron [Mon, 27 Jun 2011 12:07:20 +0000 (13:07 +0100)]
staging:iio:adc:ad799x clear out last few uses of iio_dev->dev_data.

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Acked-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging:iio:adc:ad7887 clear out last few uses of iio_dev->dev_data.
Jonathan Cameron [Mon, 27 Jun 2011 12:07:19 +0000 (13:07 +0100)]
staging:iio:adc:ad7887 clear out last few uses of iio_dev->dev_data.

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Acked-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging:iio:adc:ad7476 allocate state with iio_dev and use iio_priv to access.
Jonathan Cameron [Mon, 27 Jun 2011 12:07:18 +0000 (13:07 +0100)]
staging:iio:adc:ad7476 allocate state with iio_dev and use iio_priv to access.

Reg handling is a little fiddly given the ordering of calls.

All part of getting rid of iio_dev->dev_data

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Acked-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging:iio:accel:kxsd9: allocate state with iio_dev and use iio_priv to access.
Jonathan Cameron [Mon, 27 Jun 2011 12:17:56 +0000 (13:17 +0100)]
staging:iio:accel:kxsd9: allocate state with iio_dev and use iio_priv to access.

V2: Actually allocate the storage.

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging:iio:accel:sca3000: allocate state in iio_dev and use iio_priv to access.
Jonathan Cameron [Mon, 27 Jun 2011 12:07:16 +0000 (13:07 +0100)]
staging:iio:accel:sca3000: allocate state in iio_dev and use iio_priv to access.

Mechanical change.

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging:iio:accel:adis16220 allocate tx and rx in state plus state via iio_priv
Jonathan Cameron [Mon, 27 Jun 2011 12:07:15 +0000 (13:07 +0100)]
staging:iio:accel:adis16220 allocate tx and rx in state plus state via iio_priv

Few other misc cleanups.

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Acked-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging:iio:accel:adis16240 allocate tx and rx in state plus state via iio_priv
Jonathan Cameron [Mon, 27 Jun 2011 12:07:14 +0000 (13:07 +0100)]
staging:iio:accel:adis16240 allocate tx and rx in state plus state via iio_priv

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Acked-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging:iio:accel:adis16209 allocate tx and rx in state plus state via iio_priv
Jonathan Cameron [Mon, 27 Jun 2011 12:07:13 +0000 (13:07 +0100)]
staging:iio:accel:adis16209 allocate tx and rx in state plus state via iio_priv

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Acked-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging:iio:accel:adis16204 allocate tx and rx in state plus state via iio_priv
Jonathan Cameron [Mon, 27 Jun 2011 12:07:12 +0000 (13:07 +0100)]
staging:iio:accel:adis16204 allocate tx and rx in state plus state via iio_priv

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Acked-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging:iio:accel:adis16203 move buffers into state and use iio_priv to avoid allocat...
Jonathan Cameron [Mon, 27 Jun 2011 12:07:11 +0000 (13:07 +0100)]
staging:iio:accel:adis16203 move buffers into state and use iio_priv to avoid allocating state separately.

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Acked-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoiio: industrialio-core: iio_write_channel_info accept IIO_VAL_INT_PLUS_NANO
Michael Hennerich [Mon, 27 Jun 2011 12:07:10 +0000 (13:07 +0100)]
iio: industrialio-core: iio_write_channel_info accept IIO_VAL_INT_PLUS_NANO

Allow iio_write_channel_info() to accept IIO_VAL_INT_PLUS_NANO

Changes since V1:
use callback to query expected format/precision

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Acked-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoiio: trigger: Add filter callback
Michael Hennerich [Mon, 27 Jun 2011 12:07:09 +0000 (13:07 +0100)]
iio: trigger: Add filter callback

Allow devices to reject triggers and vice versa.

Changes since V1:
Added kernel-doc
Moved callback into iio_info
Changed function naming
Revised return value passing
Add forward declaration to avoid warnings

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Acked-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoiio: trigger: Move declaration of struct iio_poll_func to avoid warnings
Michael Hennerich [Mon, 27 Jun 2011 12:07:08 +0000 (13:07 +0100)]
iio: trigger: Move declaration of struct iio_poll_func to avoid warnings

Move declaration of struct iio_poll_func to avoid warnings

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Acked-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoiio: industrialio-core: introduce IIO_VAL_INT_PLUS_NANO
Michael Hennerich [Mon, 27 Jun 2011 12:07:07 +0000 (13:07 +0100)]
iio: industrialio-core: introduce IIO_VAL_INT_PLUS_NANO

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Acked-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: speakup: Use kstrtoul_from_user
Peter Huewe [Mon, 6 Jun 2011 19:32:32 +0000 (21:32 +0200)]
staging: speakup: Use kstrtoul_from_user

This patch replaces the code for getting an unsigned long from a
userspace buffer by a simple call to kstroul_from_user.
This makes it easier to read and less error prone.

Kernel Version: staging of 20110606

Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: Winbond: Fix assorted spacing issues.
Akshay Joshi [Tue, 7 Jun 2011 08:51:55 +0000 (04:51 -0400)]
Staging: Winbond: Fix assorted spacing issues.

Fix the phy_calibration.c file's spacing issues and convert the spaces
to tabs. This reduces the number of errors and warnings returned by
checkpatch.pl.

Signed-off-by: Akshay Joshi <me@akshayjoshi.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: et131x: Removing '_t' from ce_stats_t struct
Mark Einon [Mon, 6 Jun 2011 18:07:04 +0000 (19:07 +0100)]
staging: et131x: Removing '_t' from ce_stats_t struct

Removing '_t' from ce_stats_t struct name and renaming et131x_adapter ce_stats member from
 'Stats' to 'stats'

Signed-off-by: Mark Einon <mark.einon@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: et131x: Fixes multiple 'WARNING: do not add new typedefs'.
Mark Einon [Mon, 6 Jun 2011 18:07:03 +0000 (19:07 +0100)]
staging: et131x: Fixes multiple 'WARNING: do not add new typedefs'.

Removes unions, and uses definitions for bit manipulations.

Signed-off-by: Mark Einon <mark.einon@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: et131x: et131x_netdev.c checkpatch fixes
Mark Einon [Mon, 6 Jun 2011 18:07:02 +0000 (19:07 +0100)]
staging: et131x: et131x_netdev.c checkpatch fixes

Signed-off-by: Mark Einon <mark.einon@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: et131x: et131x_initpci.c checkpatch fixes
Mark Einon [Mon, 6 Jun 2011 18:07:01 +0000 (19:07 +0100)]
staging: et131x: et131x_initpci.c checkpatch fixes

Signed-off-by: Mark Einon <mark.einon@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: et131x: et131x_adapter.h checkpatch fixes
Mark Einon [Mon, 6 Jun 2011 18:07:00 +0000 (19:07 +0100)]
staging: et131x: et131x_adapter.h checkpatch fixes

Signed-off-by: Mark Einon <mark.einon@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: et131x: et1310_rx.c checkpatch fixes
Mark Einon [Mon, 6 Jun 2011 18:06:59 +0000 (19:06 +0100)]
staging: et131x: et1310_rx.c checkpatch fixes

Signed-off-by: Mark Einon <mark.einon@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: et131x: checkpatch fixes for et1310_address_map.h (All 'do not add new typed...
Mark Einon [Mon, 6 Jun 2011 18:06:58 +0000 (19:06 +0100)]
staging: et131x: checkpatch fixes for et1310_address_map.h (All 'do not add new typedefs')

Signed-off-by: Mark Einon <mark.einon@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: rtl8192e: Fixed numerous coding style issues
Ken O'Brien [Sun, 5 Jun 2011 17:24:33 +0000 (18:24 +0100)]
Staging: rtl8192e: Fixed numerous coding style issues

Fixed all coding style issues thrown by checkpatch.pl.

Signed-off-by: Ken O'Brien <kernel@kenobrien.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: rtl8192e: Fixed numerous coding style issues
Ken O'Brien [Sun, 5 Jun 2011 17:24:32 +0000 (18:24 +0100)]
Staging: rtl8192e: Fixed numerous coding style issues

Coding style review: fixed all warnings, and all but three
typedef errors.

Signed-off-by: Ken O'Brien <kernel@kenobrien.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: wlan-ng: fix brace coding style issue in prism2fw.c
Joseph Salisbury [Sun, 5 Jun 2011 16:28:12 +0000 (17:28 +0100)]
Staging: wlan-ng: fix brace coding style issue in prism2fw.c

This is a patch to the prism2fw.c file that fixes up a brace
warning found by the checkpatch.pl tool.

Signed-off-by: Joseph Salisbury <salisbury.joseph@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: octeon: use printk_ratelimited instead of printk_ratelimit
Christian Dietrich [Sat, 4 Jun 2011 15:35:58 +0000 (17:35 +0200)]
staging: octeon: use printk_ratelimited instead of printk_ratelimit

As per printk_ratelimit comment, it should not be used

Signed-off-by: Christian Dietrich <christian.dietrich@informatik.uni-erlangen.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: tty: epca: fixing return code-style issue
Aviv Ben-Yosef [Sat, 4 Jun 2011 12:09:33 +0000 (05:09 -0700)]
Staging: tty: epca: fixing return code-style issue

Fixed a coding-style issue, ``return'' with parens.

Signed-off-by: Aviv Ben-Yosef <aviv.by@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: msm: Use angle brackets for system includes
Joe Perches [Fri, 3 Jun 2011 09:28:50 +0000 (02:28 -0700)]
staging: msm: Use angle brackets for system includes

Use the normal include style.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agotm6000: Cleaned up code style in tm6000-alsa.c
Curtis McEnroe [Fri, 3 Jun 2011 00:33:34 +0000 (20:33 -0400)]
tm6000: Cleaned up code style in tm6000-alsa.c

Fixed all errors but one (possibly a mistake by the checker) reported by
the checker.

Signed-off-by: Curtis McEnroe <programble@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agotm6000: Clean up code style in tm6000-input.c
Curtis McEnroe [Fri, 3 Jun 2011 00:33:33 +0000 (20:33 -0400)]
tm6000: Clean up code style in tm6000-input.c

Removed unnecessary braces.

Signed-off-by: Curtis McEnroe <programble@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agotm6000: Cleaned up code style in tm6000-i2c.c
Curtis McEnroe [Fri, 3 Jun 2011 00:33:32 +0000 (20:33 -0400)]
tm6000: Cleaned up code style in tm6000-i2c.c

Replaced __FUNCTION__ with __func__

Signed-off-by: Curtis McEnroe <programble@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agotm6000: Cleaned up code style in tm6000-dbv.c
Curtis McEnroe [Fri, 3 Jun 2011 00:33:31 +0000 (20:33 -0400)]
tm6000: Cleaned up code style in tm6000-dbv.c

Replaced usage of __FUNCTION__ with __func__

Signed-off-by: Curtis McEnroe <programble@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agogma500: Fix uninitialized variable and style issues
Andre Bartke [Thu, 16 Jun 2011 16:07:45 +0000 (17:07 +0100)]
gma500: Fix uninitialized variable and style issues

The return variable of psb_gtt_pin() may be used
uninitialized. Also fixed some coding style issues.

Signed-off-by: Andre Bartke <andre.bartke@gmail.com>
[Reapplied by hand due to other changes]
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agogma500: Set the correct bits according to the pipe
Alan Cox [Thu, 16 Jun 2011 16:07:27 +0000 (17:07 +0100)]
gma500: Set the correct bits according to the pipe

Squash a hardcoded assumption we shouldn't really make

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agogma500: Make GTT pages uncached
Alan Cox [Thu, 16 Jun 2011 16:06:31 +0000 (17:06 +0100)]
gma500: Make GTT pages uncached

Clean up the GTT code a bit, make the pages uncached and go via the proper
interfaces. This avoids any aliasing problems.

On the CPU side we need to access the pages via their true addresses not via
the GTT. This is fine for GEM created fb objects for X. For the kernel fb
when not in stolen RAM we are going to need to use vm_map_ram() and hope we
have enough virtual address space to steal.

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agogma500: fix warnings
Alan Cox [Thu, 16 Jun 2011 16:06:09 +0000 (17:06 +0100)]
gma500: fix warnings

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: VME: Introduce IOCTL to generate VME interrupts.
Vincent Bossier [Thu, 9 Jun 2011 13:49:30 +0000 (15:49 +0200)]
Staging: VME: Introduce IOCTL to generate VME interrupts.

The vme_irq_set is oblviously not needed (a remnant from old tests) and the
IOCTL exchange types have been updated following Greg's comments.

Allow the IOCTL call to generate VME interrupts when called on the vme/ctl
device with the right arguments.

Signed-off-by: Vincent Bossier <vincent.bossier@gmail.com>
Acked-by: Martyn Welch <martyn.welch@ge.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: VME: Fix ca91cx42 VME interrupt generation.
Vincent Bossier [Thu, 9 Jun 2011 07:59:43 +0000 (08:59 +0100)]
Staging: VME: Fix ca91cx42 VME interrupt generation.

The wait_event_interruptible call requires a condition as second argument that
needs to be true sometimes, which is obviously not the case with '0'. The new
logic is inspired from the tsi148 driver and takes into account Universe II chip
specifics.

Signed-off-by: Vincent Bossier <vincent.bossier@gmail.com>
Acked-by: Martyn Welch <martyn.welch@ge.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: VME: Make vme/ctl device available for IOCTL operations only.
Vincent Bossier [Thu, 9 Jun 2011 08:20:31 +0000 (09:20 +0100)]
Staging: VME: Make vme/ctl device available for IOCTL operations only.

Resurrect the vme/ctl device by allowing to open it even if it has no resources
and make related read/write/llseek operations dummy.

Signed-off-by: Vincent Bossier <vincent.bossier@gmail.com>
Acked-by: Martyn Welch <martyn.welch@ge.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: VME: Fix Universe II int ack logic.
Vincent Bossier [Thu, 2 Jun 2011 10:30:02 +0000 (12:30 +0200)]
Staging: VME: Fix Universe II int ack logic.

The driver must acknowledge the interrupts that have been actually serviced, not
the ones active. The current code could acknowledge an interrupt that has not
been serviced at all.

Signed-off-by: Vincent Bossier <vincent.bossier@gmail.com>
Acked-by: Martyn Welch <martyn.welch@ge.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging VME: Fix remaining checkpatch.pl errors.
Vincent Bossier [Fri, 3 Jun 2011 09:07:39 +0000 (10:07 +0100)]
Staging VME: Fix remaining checkpatch.pl errors.

This patch solves all the existing issues reported by checkpatch.pl in the VME
sub-system.

Signed-off-by: Vincent Bossier <vincent.bossier@gmail.com>
Acked-by: Martyn Welch <martyn.welch@ge.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: tm6000: cleaned up code in tm6000-video.c according to coding style
Curtis McEnroe [Thu, 2 Jun 2011 02:21:56 +0000 (22:21 -0400)]
staging: tm6000: cleaned up code in tm6000-video.c according to coding style

Fixed all errors reported by the checker in tm6000-video.c mostly relating
to whitespace.

Signed-off-by: Curtis McEnroe <programble@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: comedi (adv_pci1723): coding style, fix whitespace before quoted newline
Matt Billenstein [Wed, 1 Jun 2011 09:17:06 +0000 (09:17 +0000)]
staging: comedi (adv_pci1723): coding style, fix whitespace before quoted newline

Small fix in adv_pci1723.c for a "whitespace before quoted newline" warning
from checkpatch.pl

Signed-off-by: Matt Billenstein <matt@vazor.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: intel_sst: Fix memory leak
Andre Bartke [Tue, 31 May 2011 19:03:56 +0000 (21:03 +0200)]
staging: intel_sst: Fix memory leak

In case of an error stream_bufs is not freed here.

Signed-off-by: Andre Bartke <andre.bartke@gmail.com>
Acked-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: altera-stapl: Fix memory leak of altera_init()
Peter Huewe [Mon, 30 May 2011 23:11:17 +0000 (01:11 +0200)]
staging: altera-stapl: Fix memory leak of altera_init()

In case kzalloc() fails the second or third time
we should free the previous allocated resources.
In order to keep one return point and to keep the cleanup code to one
place, some reordering was necessary.

Also while at it, removed the *sizeof(char) - to quote Linus:
"" Also removed the silly "* sizeof(u8)".  If that isn't 1, we have way
   deeper problems than a simple multiplication can fix. """

Reported-by: Andre Bartke <andre.bartke@gmail.com>
Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: use videobuf2 framework for drivers/staging/dt3155v4l driver
Marin Mitov [Sat, 28 May 2011 18:45:27 +0000 (21:45 +0300)]
staging: use videobuf2 framework for drivers/staging/dt3155v4l driver

This patch transforms drivers/staging/dt3155v4l driver to use videobuf2 framework.
Tested and works with "xawtv -f".

Either streaming API or read method should be selected during kernel configuration.

If both are selected into the driver (not possible without another patching),
either due to my misunderstanding or problems in xawtv (or both), I get kernel panic
after some start/stop of xawtv (not strictly reproducible).

Signed-off-by: Marin Mitov <mitov@issp.bas.bg>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: synaptics: Implement error handling for rmi4 touch regulator
Naveen Kumar Gaddipati [Mon, 30 May 2011 12:16:50 +0000 (14:16 +0200)]
staging: synaptics: Implement error handling for rmi4 touch regulator

Implement the error handling for regulator in synaptics
rmi4 touch screen

Signed-off-by: Naveen Kumar Gaddipati <naveen.gaddipati@stericsson.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: sep: fix function name in kernel-doc
Jonathan Neuschäfer [Mon, 30 May 2011 18:41:02 +0000 (20:41 +0200)]
staging: sep: fix function name in kernel-doc

Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: sep: clean up some checkpatch.pl issues
Tim Retout [Sun, 29 May 2011 18:38:32 +0000 (19:38 +0100)]
staging: sep: clean up some checkpatch.pl issues

Use consistent spacing in array indexing, and a whitespace fix.

Signed-off-by: Tim Retout <tim@retout.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: Convert vmalloc/memset to vzalloc
Joe Perches [Sat, 28 May 2011 17:36:31 +0000 (10:36 -0700)]
staging: Convert vmalloc/memset to vzalloc

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: tty: fixed some whitespace coding style issues
Ralf Thielow [Fri, 27 May 2011 23:38:18 +0000 (01:38 +0200)]
staging: tty: fixed some whitespace coding style issues

Fixed some whitespace coding style issues.

Signed-off-by: Ralf Thielow <ralf.thielow@googlemail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: comedi: fixed a declaration coding style issue
Ralf Thielow [Fri, 27 May 2011 23:37:03 +0000 (01:37 +0200)]
staging: comedi: fixed a declaration coding style issue

Fixed a declaration coding style issue.

Signed-off-by: Ralf Thielow <ralf.thielow@googlemail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoRemove unneeded version.h include from drivers/staging/mei/main.c
Jesper Juhl [Thu, 23 Jun 2011 22:54:52 +0000 (00:54 +0200)]
Remove unneeded version.h include from drivers/staging/mei/main.c

It was pointed out by 'make versioncheck' that include of
linux/version.h is not needed in drivers/staging/mei/main.c .
This patch removes it.

Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: mei: fix possible usage of uninitialized variable
Tomas Winkler [Wed, 15 Jun 2011 21:46:03 +0000 (00:46 +0300)]
staging: mei: fix possible usage of uninitialized variable

Fix warning: reported in http://marc.info/?l=linux-kernel&m=130812960402606&w=2

drivers/staging/mei/interrupt.c: warning: 'buffer' may be used uninitialized in this function:  => 198

It is a real issue and wrong path in execution is taken when
list is empty or (cl && _mei_irq_thread_state_ok(cl, mei_hdr))
evaluates to false

Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: mei: io_list functions revamp
Tomas Winkler [Mon, 6 Jun 2011 07:44:34 +0000 (10:44 +0300)]
staging: mei: io_list functions revamp

1. remove list used for loop. There were only 2 loops used in non
   time critical places so we can safely unroll them
2. normalize functions names operating on io_list to mei_io_list_<op>
3. rename mei_fe_same_id to mei_cl_cmp_id  used for comparing list
   elements containing struct mei_cl
4. group together  io_list functions in the header file

Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Oren Weil <oren.jer.weil@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: mei: rename num_mei_me_clients to me_clients_num
Tomas Winkler [Mon, 6 Jun 2011 07:44:33 +0000 (10:44 +0300)]
staging: mei: rename num_mei_me_clients to me_clients_num

Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Oren Weil <oren.jer.weil@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>