Jonathan Cameron
cada11fa20
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 >
2011-06-28 14:39:44 -07:00
Jonathan Cameron
f5730d52ba
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 >
2011-06-28 14:39:43 -07:00
Jonathan Cameron
86729fc46f
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 >
2011-06-28 14:39:43 -07:00
Jonathan Cameron
a3684ded4f
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 >
2011-06-28 14:39:43 -07:00
Jonathan Cameron
3ff242055b
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 >
2011-06-28 14:39:42 -07:00
Jonathan Cameron
d3de2935b6
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 >
2011-06-28 14:39:42 -07:00
Jonathan Cameron
70be42919a
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 >
2011-06-28 14:39:42 -07:00
Jonathan Cameron
7978f9f8f9
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 >
2011-06-28 14:39:41 -07:00
Jonathan Cameron
84e8d84d0f
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 >
2011-06-28 14:39:41 -07:00
Jonathan Cameron
b0011d6dba
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 >
2011-06-28 14:39:41 -07:00
Jonathan Cameron
febafb94d6
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 >
2011-06-28 14:39:40 -07:00
Jonathan Cameron
744e4a6b85
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 >
2011-06-28 14:39:39 -07:00
Jonathan Cameron
d439797281
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 >
2011-06-28 14:39:39 -07:00
Jonathan Cameron
f4c794a2c1
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 >
2011-06-28 14:39:38 -07:00
Jonathan Cameron
46a6af3820
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 >
2011-06-28 14:39:38 -07:00
Jonathan Cameron
d8aea29b62
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 >
2011-06-28 14:39:37 -07:00
Jonathan Cameron
f490f42bdf
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 >
2011-06-28 14:39:37 -07:00
Jonathan Cameron
67688105af
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 >
2011-06-28 14:39:37 -07:00
Jonathan Cameron
ed0c012b85
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 >
2011-06-28 14:39:36 -07:00
Jonathan Cameron
83f0422dc6
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 >
2011-06-28 14:39:36 -07:00
Jonathan Cameron
01a6721600
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 >
2011-06-28 14:39:35 -07:00
Jonathan Cameron
a22ff7066c
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 >
2011-06-28 14:39:35 -07:00
Jonathan Cameron
35212dfa6b
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 >
2011-06-28 14:39:35 -07:00
Jonathan Cameron
4de66bbb3e
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 >
2011-06-28 14:39:35 -07:00
Jonathan Cameron
6a0d8090a6
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 >
2011-06-28 14:39:34 -07:00
Michael Hennerich
5c04af0483
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 >
2011-06-28 14:39:34 -07:00
Michael Hennerich
43a4360ea8
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 >
2011-06-28 14:39:33 -07:00
Michael Hennerich
03e1672a70
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 >
2011-06-28 14:39:33 -07:00
Michael Hennerich
71646e2c7a
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 >
2011-06-28 14:39:32 -07:00
Peter Huewe
6263ba5519
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 >
2011-06-28 14:35:41 -07:00
Akshay Joshi
919ed52f33
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 >
2011-06-28 14:35:40 -07:00
Mark Einon
f4b70529be
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 >
2011-06-28 14:34:38 -07:00
Mark Einon
57ecdfa727
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 >
2011-06-28 14:34:38 -07:00
Mark Einon
2e861534ca
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 >
2011-06-28 14:34:37 -07:00
Mark Einon
76fb419e03
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 >
2011-06-28 14:34:37 -07:00
Mark Einon
47883130a0
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 >
2011-06-28 14:34:37 -07:00
Mark Einon
29667f30b2
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 >
2011-06-28 14:34:36 -07:00
Mark Einon
4ce6cc500c
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 >
2011-06-28 14:34:36 -07:00
Ken O'Brien
45ce3f6fb3
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 >
2011-06-28 14:33:37 -07:00
Ken O'Brien
dc6b15f322
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 >
2011-06-28 14:31:16 -07:00
Joseph Salisbury
23567c7528
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 >
2011-06-28 14:31:16 -07:00
Christian Dietrich
7a2eaf9358
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 >
2011-06-28 14:29:19 -07:00
Aviv Ben-Yosef
9d17653c72
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 >
2011-06-28 14:29:19 -07:00
Joe Perches
562d683cc7
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 >
2011-06-28 14:28:06 -07:00
Curtis McEnroe
d684aee316
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 >
2011-06-28 14:27:24 -07:00
Curtis McEnroe
41eb8d615b
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 >
2011-06-28 14:27:24 -07:00
Curtis McEnroe
0f063c68cc
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 >
2011-06-28 14:27:23 -07:00
Curtis McEnroe
94b276619b
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 >
2011-06-28 14:27:23 -07:00
Andre Bartke
3a5deac623
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 >
2011-06-28 14:19:42 -07:00
Alan Cox
ef41e3f4a5
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 >
2011-06-28 14:17:12 -07:00