H Hartley Sweeten
2d504528f2
staging: comedi: me4000: remove struct me4000_ao_info
...
The me4000_ao_info in the boardinfo struct is used to indicate
the number of analog output channels and a couple other details
about them. Remove the extra struct and absorb the data into the
boardinfo struct.
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com >
Cc: Ian Abbott <abbotti@mev.co.uk >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-09-07 21:45:27 -07:00
H Hartley Sweeten
6ba8dfef57
staging: comedi: me4000: remove struct me4000_ai_info
...
The me4000_aio_info in the boardinfo struct is used to indicate
the number of analog input channels and a couple other details
about them. Remove the extra struct and absorb the data into the
boardinfo struct.
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com >
Cc: Ian Abbott <abbotti@mev.co.uk >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-09-07 21:45:27 -07:00
H Hartley Sweeten
898f51910d
staging: comedi: me4000: remove struct me4000_dio_info
...
The me4000_dio_info in the boardinfo struct is used to indicate
the number of 8 bit dio ports the the board has. Add a 'dio_nchan'
field to struct me4000_board and remove the struct me4000_dio_info.
The 'dio_nchan' value can then be used directly in the attach of
the board when setting the subdevice number of channels.
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com >
Cc: Ian Abbott <abbotti@mev.co.uk >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-09-07 21:45:27 -07:00
H Hartley Sweeten
eedf4299b5
staging: comedi: me4000: remove struct me4000_cnt_info
...
The me4000_cnt_info in the boardinfo struct is used to indicate
that the board has an 8254 counter. Add a 'has_counter' field
to struct me4000_board and remove the struct me4000_cnt_info.
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com >
Cc: Ian Abbott <abbotti@mev.co.uk >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-09-07 21:45:27 -07:00
H Hartley Sweeten
556e451d0d
staging: comedi: me4000: remove the '0' boardinfo data
...
Remove all the boardinfo data that is set to '0'.
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com >
Cc: Ian Abbott <abbotti@mev.co.uk >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-09-07 21:45:27 -07:00
H Hartley Sweeten
035d432a51
staging: comedi: me4000: convert boardinfo initialization to C99 format
...
Convert the boardinfo initialization to C99 format to make it
less error prone and easier to maintain.
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com >
Cc: Ian Abbott <abbotti@mev.co.uk >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-09-07 21:45:27 -07:00
H Hartley Sweeten
8293330230
staging: comedi: me4000: remove ME4000_BOARD_VERSIONS
...
Remove the terminating entry in the boardinfo so that ARRAY_SIZE
works correctly. Then remove ME4000_BOARD_VERSIONS and just use
ARRAY_SIZE in the probe.
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com >
Cc: Ian Abbott <abbotti@mev.co.uk >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-09-07 21:45:26 -07:00
Jens Taprogge
5948ae27fb
staging/ipack: Fix bug introduced by IPack device matching
...
~0 can not be casted to u8. Instead of using the IPACK_ANY_ID for the format
field we introduce a new IPACK_ANY_FORMAT specifically for that field and
defined as 0xff.
Reported-by: Dan Carpenter <dan.carpenter@oracle.com >
Signed-off-by: Jens Taprogge <jens.taprogge@taprogge.org >
Acked-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-09-07 08:27:34 -07:00
Jens Taprogge
7953e44cef
staging: ipack: only build on platforms that provide ioread/iowrite.
...
Do so by depending on HAS_IOMEM.
Reported-by: Geert Uytterhoeven <geert@linux-m68k.org >
Signed-off-by: Jens Taprogge <jens.taprogge@taprogge.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-09-06 15:31:43 -07:00
Greg Kroah-Hartman
13f7952f8f
staging: comedi: vmk80xx: fix compiler warning
...
gcc complains about some potentially uninitalized variables here, yet it
can not happen, due to an enumerated type (either the board is one type
or the other.) Make the compiler happy by providing a default case
option that makes the logic a bit simpler for it to determine that there
really isn't a problem here.
Cc: H Hartley Sweeten <hartleys@visionengravers.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-09-06 11:21:48 -07:00
navin patidar
107f04bbce
staging: usbip: vhci_hcd: fixed suspend-resume loop
...
USB autosuspend suspends vhci_hcd. In this process hcd_bus_suspend gets
executed which puts vhci_hcd in suspend state and calls vhci_hub_status.
vhci_hub_status function checks hub state and if it is in suspend state,
usb_hcd_resume_root_hub gets executed which resumes hub and if hub is
idle, again autosuspend puts it in suspend state and this goes on.
vhci_hub_status should resume hub only when hub port is in suspend state
and hub port status has changed.
Signed-off-by: navin patidar <navinp@cdac.in >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-09-06 09:31:54 -07:00
Bernard Blackham
236742de5b
staging: usbip: avoid deadlock in vhci_device_unlink_cleanup()
...
Almost all of usbip assumes that the_controller->lock is acquired
before vdev->priv_lock. The exception is in
vhci_device_unlink_cleanup(), where locks are acquired in the
reverse order. This leads to occasional deadlocks.
Fixing this is a bit fiddly, as the_controller->lock can't be held
when calling usb_hcd_unlink_urb_from_ep() in the middle of the list
traversal. As I can't rule out concurrent callers to this function
(perhaps it is safe?), the code here becomes slightly uglier - when
locks are dropped in the middle so the list may have emptied itself
(not even list_for_each_entry_safe is safe here).
Signed-off-by: Bernard Blackham <b-linuxgit@largestprime.net >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-09-06 09:31:53 -07:00
Wei Yongjun
73295fe185
staging: gdm72xx: use list_move instead of list_del/list_add
...
Using list_move() instead of list_del() + list_add().
spatch with a semantic match is used to found this problem.
(http://coccinelle.lip6.fr/ )
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-09-06 09:25:22 -07:00
Wei Yongjun
84bda90931
staging: wlags49_h2: use list_move instead of list_del/list_add
...
Using list_move() instead of list_del() + list_add().
spatch with a semantic match is used to found this problem.
(http://coccinelle.lip6.fr/ )
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-09-06 09:25:22 -07:00
Dan Carpenter
f0290de23d
staging: ramster: fix range checks in zcache_autocreate_pool()
...
If "pool_id" is negative then it leads to a read before the start of the
array. If "cli_id" is out of bounds then it leads to a NULL dereference
of "cli". GCC would have warned about that bug except that we
initialized the warning message away.
Also it's better to put the parameter names into the function
declaration in the .h file. It serves as a kind of documentation.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-09-06 09:25:22 -07:00
H Hartley Sweeten
d08d6cfe3b
staging: comedi: range: remove subdevice pointer math
...
Convert the comedi_subdevice access from pointer math to array
access.
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-09-05 20:06:32 -07:00
H Hartley Sweeten
5818e7090b
staging: comedi: kcomedilib: remove subdevice pointer math
...
Convert the comedi_subdevice access from pointer math to array
access.
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-09-05 20:06:32 -07:00
H Hartley Sweeten
d3d1e2532f
staging: comedi: vmk80xx: remove subdevice pointer math
...
Convert the comedi_subdevice access from pointer math to array
access.
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-09-05 20:06:32 -07:00
H Hartley Sweeten
ae4498216b
staging: comedi: usbduxsigma: remove subdevice pointer math
...
Convert the comedi_subdevice access from pointer math to array
access.
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-09-05 20:06:32 -07:00
H Hartley Sweeten
bbea99d9c7
staging: comedi: usbduxfast: remove subdevice pointer math
...
Convert the comedi_subdevice access from pointer math to array
access.
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-09-05 20:06:32 -07:00
H Hartley Sweeten
4760904fb4
staging: comedi: usbdux: remove subdevice pointer math
...
Convert the comedi_subdevice access from pointer math to array
access.
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-09-05 20:06:32 -07:00
H Hartley Sweeten
015ebbe86d
staging: comedi: ssv_dnp: remove subdevice pointer math
...
Convert the comedi_subdevice access from pointer math to array
access.
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-09-05 20:06:32 -07:00
H Hartley Sweeten
0f72ca312b
staging: comedi: skel: remove subdevice pointer math
...
Convert the comedi_subdevice access from pointer math to array
access.
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-09-05 20:06:31 -07:00
H Hartley Sweeten
8e27a730df
staging: comedi: serial2002: remove subdevice pointer math
...
Convert the comedi_subdevice access from pointer math to array
access.
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-09-05 20:06:31 -07:00
H Hartley Sweeten
97073c05d4
staging: comedi: s526: remove subdevice pointer math
...
Convert the comedi_subdevice access from pointer math to array
access.
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-09-05 20:06:31 -07:00
H Hartley Sweeten
7badc90d21
staging: comedi: rti802: remove subdevice pointer math
...
Convert the comedi_subdevice access from pointer math to array
access.
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-09-05 20:06:31 -07:00
H Hartley Sweeten
13bee03ef9
staging: comedi: rti800: remove subdevice pointer math
...
Convert the comedi_subdevice access from pointer math to array
access.
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-09-05 20:06:31 -07:00
H Hartley Sweeten
58f2045935
staging: comedi: rtd520: remove subdevice pointer math
...
Convert the comedi_subdevice access from pointer math to array
access.
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-09-05 20:06:31 -07:00
H Hartley Sweeten
123c0e03a4
staging: comedi: quatech_daqp_cs: remove subdevice pointer math
...
Convert the comedi_subdevice access from pointer math to array
access.
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-09-05 20:06:31 -07:00
H Hartley Sweeten
eb31b63a76
staging: comedi: poc: remove subdevice pointer math
...
Convert the comedi_subdevice access from pointer math to array
access.
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-09-05 20:06:31 -07:00
H Hartley Sweeten
68720ae68a
staging: comedi: pcmuio: remove subdevice pointer math
...
Convert the comedi_subdevice access from pointer math to array
access.
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-09-05 20:06:31 -07:00
H Hartley Sweeten
33e101ad9d
staging: comedi: pcmmio: remove subdevice pointer math
...
Convert the comedi_subdevice access from pointer math to array
access.
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-09-05 20:06:31 -07:00
H Hartley Sweeten
623733ffc0
staging: comedi: pcmda12: remove subdevice pointer math
...
Convert the comedi_subdevice access from pointer math to array
access.
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-09-05 20:06:30 -07:00
H Hartley Sweeten
86bb856a02
staging: comedi: pcmad: remove subdevice pointer math
...
Convert the comedi_subdevice access from pointer math to array
access.
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-09-05 20:06:30 -07:00
H Hartley Sweeten
edb9dac794
staging: comedi: pcm3730: remove subdevice pointer math
...
Convert the comedi_subdevice access from pointer math to array
access.
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-09-05 20:06:30 -07:00
H Hartley Sweeten
0a96639fe7
staging: comedi: pcm3724: remove subdevice pointer math
...
Convert the comedi_subdevice access from pointer math to array
access.
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-09-05 20:06:30 -07:00
H Hartley Sweeten
9fab612335
staging: comedi: pcl818: remove subdevice pointer math
...
Convert the comedi_subdevice access from pointer math to array
access.
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-09-05 20:06:30 -07:00
H Hartley Sweeten
9417de06e0
staging: comedi: pcl816: remove subdevice pointer math
...
Convert the comedi_subdevice access from pointer math to array
access.
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-09-05 20:06:30 -07:00
H Hartley Sweeten
93a37955bc
staging: comedi: pcl812: remove subdevice pointer math
...
Convert the comedi_subdevice access from pointer math to array
access.
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-09-05 20:06:30 -07:00
H Hartley Sweeten
dda841ff2f
staging: comedi: pcl730: remove subdevice pointer math
...
Convert the comedi_subdevice access from pointer math to array
access.
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-09-05 20:06:30 -07:00
H Hartley Sweeten
95ce832a81
staging: comedi: pcl726: remove subdevice pointer math
...
Convert the comedi_subdevice access from pointer math to array
access.
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-09-05 20:06:30 -07:00
H Hartley Sweeten
7d780555c0
staging: comedi: pcl725: remove subdevice pointer math
...
Convert the comedi_subdevice access from pointer math to array
access.
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-09-05 20:06:29 -07:00
H Hartley Sweeten
d533ef070d
staging: comedi: pcl724: remove subdevice pointer math
...
Convert the comedi_subdevice access from pointer math to array
access.
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-09-05 20:06:29 -07:00
H Hartley Sweeten
af77727a2b
staging: comedi: pcl711: remove subdevice pointer math
...
Convert the comedi_subdevice access from pointer math to array
access.
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-09-05 20:06:29 -07:00
H Hartley Sweeten
88892ca3ce
staging: comedi: ni_pcidio: remove subdevice pointer math
...
Convert the comedi_subdevice access from pointer math to array
access.
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-09-05 20:06:29 -07:00
H Hartley Sweeten
f9cd92eb81
staging: comedi: ni_mio_common: remove subdevice pointer math
...
Convert the comedi_subdevice access from pointer math to array
access.
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-09-05 20:06:29 -07:00
H Hartley Sweeten
c65e3be19a
staging: comedi: ni_labpc: remove subdevice pointer math
...
Convert the comedi_subdevice access from pointer math to array
access.
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-09-05 20:06:29 -07:00
H Hartley Sweeten
06e915e2ac
staging: comedi: ni_daq_dio24: remove subdevice pointer math
...
Convert the comedi_subdevice access from pointer math to array
access.
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-09-05 20:06:29 -07:00
H Hartley Sweeten
fe2e334a33
staging: comedi: ni_daq_700: remove subdevice pointer math
...
Convert the comedi_subdevice access from pointer math to array
access.
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-09-05 20:06:29 -07:00
H Hartley Sweeten
3f507ce1ac
staging: comedi: ni_atmio16d: remove subdevice pointer math
...
Convert the comedi_subdevice access from pointer math to array
access.
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-09-05 20:06:29 -07:00