deliverable/linux.git
13 years agostaging: rtl8192e: Pass priv to IPSLeave
Mike McCormack [Tue, 8 Mar 2011 15:39:05 +0000 (00:39 +0900)] 
staging: rtl8192e: Pass priv to IPSLeave

Signed-off-by: Mike McCormack <mikem@ring3k.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: rtl8192e: Pass priv to UpdateReceivedRateHistogramStatistics8190
Mike McCormack [Tue, 8 Mar 2011 15:38:56 +0000 (00:38 +0900)] 
staging: rtl8192e: Pass priv to UpdateReceivedRateHistogramStatistics8190

Signed-off-by: Mike McCormack <mikem@ring3k.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: rtl8192e: Pass priv to TranslateRxSignalStuff819xpci
Mike McCormack [Tue, 8 Mar 2011 15:38:37 +0000 (00:38 +0900)] 
staging: rtl8192e: Pass priv to TranslateRxSignalStuff819xpci

Signed-off-by: Mike McCormack <mikem@ring3k.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: rtl8192e: Pass priv to rtl819xE_tx_cmd
Mike McCormack [Tue, 8 Mar 2011 15:38:23 +0000 (00:38 +0900)] 
staging: rtl8192e: Pass priv to rtl819xE_tx_cmd

Signed-off-by: Mike McCormack <mikem@ring3k.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: Remove the vm_device structure
K. Y. Srinivasan [Mon, 7 Mar 2011 21:35:48 +0000 (13:35 -0800)] 
Staging: hv: Remove the vm_device structure

Consolidate all device related state in struct hv_device by
moving the device field from struct vm_device to
struct hv_device. As part of this, also get rid of struct
vm_device since the consolidation is complete.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: Eliminate device_id from vm_device
K. Y. Srinivasan [Mon, 7 Mar 2011 21:35:30 +0000 (13:35 -0800)] 
Staging: hv: Eliminate device_id from vm_device

Both device abstractions: vm_device and hv_device maintain state
to reperesent the device instance (and they refer to them by different
names - device_id in vm_device and dev_instance in hv_device).
In preparation for consolidating all device state in
struct hv_device; eliminate device_id from struct vm_device.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: Get rid of class_id from vm_device
K. Y. Srinivasan [Mon, 7 Mar 2011 21:35:10 +0000 (13:35 -0800)] 
Staging: hv: Get rid of class_id from vm_device

Both device abstractions: vm_device and hv_device maintain state
to reperesent the device type (and they refer to them by different
names - class_id in vm_device and dev_type in hv_device).
In preparation for consolidating all device state in
struct hv_device; eliminate class_id from struct vm_device.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: Remove probe_error from vm_device
K. Y. Srinivasan [Mon, 7 Mar 2011 21:34:48 +0000 (13:34 -0800)] 
Staging: hv: Remove probe_error from vm_device

In preparation for consolidating all device related state into
struct hv_device, move probe_error from vm_device to
hv_device.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: Move probe_failed_work_item from vm_device
K. Y. Srinivasan [Mon, 7 Mar 2011 21:34:27 +0000 (13:34 -0800)] 
Staging: hv: Move probe_failed_work_item from vm_device

In preparation for consolidating all device related state into
struct hv_device, move probe_failed_work_item from vm_device to
hv_device.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: Eliminate storvsc_driver_context structure
K. Y. Srinivasan [Mon, 7 Mar 2011 21:34:01 +0000 (13:34 -0800)] 
Staging: hv: Eliminate storvsc_driver_context structure

With the consolidation of all driver state into one data structure;
storvsc_driver_context structure is not needed; get rid of it.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: Eliminate netvsc_driver_context
K. Y. Srinivasan [Mon, 7 Mar 2011 21:33:41 +0000 (13:33 -0800)] 
Staging: hv: Eliminate netvsc_driver_context

With the consolidation of all driver state into one data structure;
netvsc_driver_context structure is not needed; get rid of it.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: Eliminate mousevsc_driver_context
K. Y. Srinivasan [Mon, 7 Mar 2011 22:16:46 +0000 (14:16 -0800)] 
Staging: hv: Eliminate mousevsc_driver_context

With the consolidation of all driver state into one data structure;
mousevsc_driver_context structure is not needed; get rid of it.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: Eliminate blkvsc_driver_context structure
K. Y. Srinivasan [Mon, 7 Mar 2011 21:32:58 +0000 (13:32 -0800)] 
Staging: hv: Eliminate blkvsc_driver_context structure

With the consolidation of all driver state into one data structure;
blkvsc_driver_context structure is not needed; get rid of it.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: Eliminate driver_context structure
K. Y. Srinivasan [Mon, 7 Mar 2011 21:32:31 +0000 (13:32 -0800)] 
Staging: hv: Eliminate driver_context structure

We need to move the following elements from struct driver_context:
class_id and driver in one step. As part of this operation get rid of
the struct driver_context. With this patch we will have
consolidated all driver state into one data structure:
struct hv_driver.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: Change the signature for vmbus_child_driver_unregister
K. Y. Srinivasan [Mon, 7 Mar 2011 21:24:23 +0000 (13:24 -0800)] 
Staging: hv: Change the signature for vmbus_child_driver_unregister

In preperation for moving the element driver from the
struct driver_context to struct hv_driver, change the
signature for the function vmbus_child_driver_unregister()
to take a pointer to struct device_driver.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: Change the signature for vmbus_child_driver_register
K. Y. Srinivasan [Mon, 7 Mar 2011 21:23:43 +0000 (13:23 -0800)] 
Staging: hv: Change the signature for vmbus_child_driver_register

In preparation for moving the element driver from the
struct driver_context to struct hv_driver, change the
signature for the function vmbus_child_driver_register()
to take a pointer to struct device_driver.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: Remove unnecessary function pointers in driver_context
K. Y. Srinivasan [Mon, 7 Mar 2011 21:23:18 +0000 (13:23 -0800)] 
Staging: hv: Remove unnecessary function pointers in driver_context

Get rid of the unnecessary function pointers for probe(),
remove() and shutdown() from struct driver_context.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: Use generic device_driver shutdown function
K. Y. Srinivasan [Mon, 7 Mar 2011 21:22:20 +0000 (13:22 -0800)] 
Staging: hv: Use generic device_driver shutdown function

In preparation for moving all the state from struct driver_context
to struct hv_driver, eliminate the shutdown() function from
struct driver_context and use generic device_driver shutdown()
function.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: Use generic device_driver remove function
K. Y. Srinivasan [Mon, 7 Mar 2011 21:21:47 +0000 (13:21 -0800)] 
Staging: hv: Use generic device_driver remove function

In preparation for moving all the state from struct driver_context
to struct hv_driver, eliminate the remove() function from
struct driver_context and use generic device_driver remove()
function.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: Use generic device_driver probe function
K. Y. Srinivasan [Mon, 7 Mar 2011 21:20:57 +0000 (13:20 -0800)] 
Staging: hv: Use generic device_driver probe function

In preparation for moving all the state from struct driver_context
to struct hv_driver, eliminate the probe() function from
struct driver_context and use generic device_driver probe
function.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: samsung-laptop: Samsung R410P backlight driver
Alberto Mardegan [Mon, 7 Mar 2011 17:48:24 +0000 (19:48 +0200)] 
staging: samsung-laptop: Samsung R410P backlight driver

Here's a trivial patch which adds support to the backlight device found
in Samsung R410 Plus laptops.

Signed-off-by: Alberto Mardegan <mardy@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging/easycap: reduce code nesting in easycap_sound.c
Tomas Winkler [Sun, 6 Mar 2011 08:59:03 +0000 (10:59 +0200)] 
staging/easycap: reduce code nesting in easycap_sound.c

Reshuffle error handling to reduce indentation nesting
This reduce number of lines exceeding 80 characters
from 41 to 15

use:
if (error)
(return, goto, continue)
CODE

instead of:

if (good)
<CODE>
else
<EXCEPTION HANDLING>

Cc: Dan Carpenter <error27@gmail.com>
Cc: Mike Thomas <rmthomas@sciolus.org>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging/easycap: easycap_settings.c don't copy constant strings twice
Tomas Winkler [Sat, 5 Mar 2011 22:55:24 +0000 (00:55 +0200)] 
staging/easycap: easycap_settings.c don't copy constant strings twice

eliminate copying twice a constant string just capture it using
const char * pointer

piggyback some other style fixes

Cc: Mike Thomas <rmthomas@sciolus.org>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging/easycap: add first level indentation to easycap_settings.c
Tomas Winkler [Sat, 5 Mar 2011 22:55:23 +0000 (00:55 +0200)] 
staging/easycap: add first level indentation to easycap_settings.c

Add first level indentation to easycap_sound_settings with astyle -t8
10 lines over 80 characters were left out for further fix

Cc: Mike Thomas <rmthomas@sciolus.org>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging/easycap: kill EASYCAP_IS_VIDEODEV_CLIENT compilation conditional
Tomas Winkler [Sat, 5 Mar 2011 22:55:22 +0000 (00:55 +0200)] 
staging/easycap: kill EASYCAP_IS_VIDEODEV_CLIENT compilation conditional

remove EASYCAP_IS_VIDEODEV_CLIENT and irrelevant code as the define
is always set in the in-kernel driver

Cc: Mike Thomas <rmthomas@sciolus.org>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging/easycap: reduce code duplication for ssa stk settings
Tomas Winkler [Sat, 5 Mar 2011 22:55:21 +0000 (00:55 +0200)] 
staging/easycap: reduce code duplication for ssa stk settings

reduce code duplication in register settings

instead of
if (ntsc)
<CODE BLOCK>
else
<CODE BLOCK>
use

cfg = (ntsc) ? <chip>configNTSC : <chip>configPAL;
<CODE BLOCK>

in addition change while loops to more readable for loops

Cc: Mike Thomas <rmthomas@sciolus.org>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging/easycap: wait_i2c should be static
Tomas Winkler [Sat, 5 Mar 2011 22:55:20 +0000 (00:55 +0200)] 
staging/easycap: wait_i2c should be static

wait_i2c is only used from easycap_low.c
so remove it from the easycap.h and mark it static

Cc: Mike Thomas <rmthomas@sciolus.org>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: rtl8712: check _malloc return value
Xiaochen Wang [Sun, 6 Mar 2011 14:53:21 +0000 (22:53 +0800)] 
staging: rtl8712: check _malloc return value

Description: The original check is wrong.

Signed-off-by: Xiaochen Wang <wangxiaochen0@gmail.com>
Acked-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: rtl8712: check copy_from_user return value
Xiaochen Wang [Sun, 6 Mar 2011 14:24:14 +0000 (22:24 +0800)] 
staging: rtl8712: check copy_from_user return value

Description:return -EFAULT if copy_to_user() fails

Signed-off-by: Xiaochen Wang <wangxiaochen0@gmail.com>
Acked-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: rtl8192e use kmemdup and check its return value
Xiaochen Wang [Sun, 6 Mar 2011 14:04:15 +0000 (22:04 +0800)] 
staging: rtl8192e use kmemdup and check its return value

use kmemdup instead of kmalloc and memcpy,
and check its return value

Signed-off-by: Xiaochen Wang <wangxiaochen0@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: rtl8187se: check kmalloc return value
Xiaochen Wang [Fri, 4 Mar 2011 05:09:00 +0000 (13:09 +0800)] 
staging: rtl8187se: check kmalloc return value

check kmalloc return value

Signed-off-by: Xiaochen Wang <wangxiaochen0@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: brcm80211: FIX for bug that prevents system from entering suspend state
Dowan Kim [Sat, 5 Mar 2011 01:47:43 +0000 (17:47 -0800)] 
staging: brcm80211: FIX for bug that prevents system from entering suspend state

The attempt to enter to suspend mode can be hindered when the network
interface is disabled.

When system enters the suspend mode with the network interface
disabled, network layer calls ifdown() followed by cfg80211 layer
calling wl_cfg80211_suspend() which is registered as suspend handler
for cfg80211 layer.

ifdown() call ultimately funnels down to __wl_cfg80211_down() call
where WL_STATUS_READY bit is cleared via call to
"clear_bit(WL_STATUS_READY, &wl->status)"

But CHECK_SYS_UP()checks WL_STATUS_READY bit thinking it's not ready
and returns -EIO from suspend handler which intern prevents entering
into system suspend state

CHECK_SYS_UP() is mainly used in the code path where upper layer would
request certain wifi related activity to be performed by the firmware,
where this calls helps to make sure our firmware would be in ready
state to respond to those requests

But in the case of wl_cfg80211_suspend() code path there is no need to
check for firmware status for any reason

Signed-off-by: Dowan Kim <dowan@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: rts_pstor: fix a bug that a greenhouse sd card can't be recognized
wwang [Fri, 4 Mar 2011 02:56:36 +0000 (10:56 +0800)] 
staging: rts_pstor: fix a bug that a greenhouse sd card can't be recognized

A greenhouse sd card can't be recognized using rts5209.
To fix this bug, these modifications are applied:
1, Move some codes which clear sd internal variables from sd_init_type to
sd_prepare_reset. So sd_init_type is useless any more and is removed
entirely;
2, If a sd card can't pass sd3.0 mode, the action of tunning phase should be
avoided when retrying sd2.0 mode.

Signed-off-by: wwang <wei_wang@realsil.com.cn>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: sep: remove unused ioctls
Mark Allyn [Fri, 4 Mar 2011 00:38:28 +0000 (16:38 -0800)] 
staging: sep: remove unused ioctls

Also remove associated functions, structures, and defines

Signed-off-by: Mark Allyn <mark.a.allyn@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: Merge ENE UB6250 SD card codes from keucr to drivers/usb/storage
huajun li [Fri, 4 Mar 2011 02:56:18 +0000 (10:56 +0800)] 
Staging: Merge ENE UB6250 SD card codes from keucr to drivers/usb/storage

The usb portion of this driver can now go into drivers/usb/storage.
This leaves the non-usb portion of the code still in staging.

Signed-off-by: Huajun Li <huajun.li.lee@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: rtl8192e: unused Remove dot11PowerSaveMode and RT_PS_MODE
Mike McCormack [Thu, 3 Mar 2011 13:47:41 +0000 (22:47 +0900)] 
staging: rtl8192e: unused Remove dot11PowerSaveMode and RT_PS_MODE

Signed-off-by: Mike McCormack <mikem@ring3k.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: rtl8192e: Move card specific structures out of ieee80211 library header
Mike McCormack [Thu, 3 Mar 2011 13:47:29 +0000 (22:47 +0900)] 
staging: rtl8192e: Move card specific structures out of ieee80211 library header

Signed-off-by: Mike McCormack <mikem@ring3k.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: rtl8192e: Delete unused members from struct r8192_priv
Mike McCormack [Thu, 3 Mar 2011 13:47:16 +0000 (22:47 +0900)] 
staging: rtl8192e: Delete unused members from struct r8192_priv

Signed-off-by: Mike McCormack <mikem@ring3k.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: rtl8192e: Delete non-existing function declarations
Mike McCormack [Thu, 3 Mar 2011 13:46:42 +0000 (22:46 +0900)] 
staging: rtl8192e: Delete non-existing function declarations

Signed-off-by: Mike McCormack <mikem@ring3k.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: rtl8192e: Delete unused dm_change_dynamic_initgain_thresh
Mike McCormack [Thu, 3 Mar 2011 13:46:32 +0000 (22:46 +0900)] 
staging: rtl8192e: Delete unused dm_change_dynamic_initgain_thresh

Signed-off-by: Mike McCormack <mikem@ring3k.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: rtl8192e: Pass r8192_priv to MgntActSet_RF_State
Mike McCormack [Thu, 3 Mar 2011 13:46:17 +0000 (22:46 +0900)] 
staging: rtl8192e: Pass r8192_priv to MgntActSet_RF_State

Signed-off-by: Mike McCormack <mikem@ring3k.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: rtl8192e: Pass r8192_priv around instead of net_device
Mike McCormack [Thu, 3 Mar 2011 13:46:04 +0000 (22:46 +0900)] 
staging: rtl8192e: Pass r8192_priv around instead of net_device

Signed-off-by: Mike McCormack <mikem@ring3k.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: rtl8192e: Remove redundant function declarations
Mike McCormack [Thu, 3 Mar 2011 13:45:54 +0000 (22:45 +0900)] 
staging: rtl8192e: Remove redundant function declarations

Signed-off-by: Mike McCormack <mikem@ring3k.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: rtl8192e: Pass r8192_priv around instead of net_device
Mike McCormack [Thu, 3 Mar 2011 13:45:42 +0000 (22:45 +0900)] 
staging: rtl8192e: Pass r8192_priv around instead of net_device

Signed-off-by: Mike McCormack <mikem@ring3k.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: rtl8192e: Convert more functions to use r8192_priv
Mike McCormack [Thu, 3 Mar 2011 13:45:24 +0000 (22:45 +0900)] 
staging: rtl8192e: Convert more functions to use r8192_priv

Signed-off-by: Mike McCormack <mikem@ring3k.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: rtl8192e: Pass r8192e_priv to phy functions
Mike McCormack [Thu, 3 Mar 2011 13:45:08 +0000 (22:45 +0900)] 
staging: rtl8192e: Pass r8192e_priv to phy functions

Phy functions shouldn't be associated with net_device.

Signed-off-by: Mike McCormack <mikem@ring3k.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: rtl8192e: Pass r8192_priv to eprom_read
Mike McCormack [Thu, 3 Mar 2011 13:44:58 +0000 (22:44 +0900)] 
staging: rtl8192e: Pass r8192_priv to eprom_read

Signed-off-by: Mike McCormack <mikem@ring3k.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: rtl8192e: Move PowerSaveControl to r8192e_priv
Mike McCormack [Thu, 3 Mar 2011 13:44:47 +0000 (22:44 +0900)] 
staging: rtl8192e: Move PowerSaveControl to r8192e_priv

This variable is not used by the ieee80211 library, so
move it rtl8192e's private struct.

Signed-off-by: Mike McCormack <mikem@ring3k.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: rtl8192e: Move variables to ieee80211 struct
Mike McCormack [Thu, 3 Mar 2011 13:44:37 +0000 (22:44 +0900)] 
staging: rtl8192e: Move variables to ieee80211 struct

Move variables only accessed by the RTL ieee80211 library into its
private struct.

Signed-off-by: Mike McCormack <mikem@ring3k.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: rtl8192e: Move definition of RT_RF_CHANGE_SOURCE
Mike McCormack [Thu, 3 Mar 2011 13:44:28 +0000 (22:44 +0900)] 
staging: rtl8192e: Move definition of RT_RF_CHANGE_SOURCE

Signed-off-by: Mike McCormack <mikem@ring3k.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: rtl8192e: Move RfOffReason to r8192e_priv struct
Mike McCormack [Thu, 3 Mar 2011 13:41:53 +0000 (22:41 +0900)] 
staging: rtl8192e: Move RfOffReason to r8192e_priv struct

Signed-off-by: Mike McCormack <mikem@ring3k.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: rtl8192e: Move eRFPowerState to r8192e_priv struct
Mike McCormack [Thu, 3 Mar 2011 13:41:35 +0000 (22:41 +0900)] 
staging: rtl8192e: Move eRFPowerState to r8192e_priv struct

Signed-off-by: Mike McCormack <mikem@ring3k.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: rtl8192e: Remove pointless hw_sleep_wq
Mike McCormack [Thu, 3 Mar 2011 13:41:25 +0000 (22:41 +0900)] 
staging: rtl8192e: Remove pointless hw_sleep_wq

Signed-off-by: Mike McCormack <mikem@ring3k.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: rtl8192e: Remove unnecessary ps_lock
Mike McCormack [Thu, 3 Mar 2011 13:41:12 +0000 (22:41 +0900)] 
staging: rtl8192e: Remove unnecessary ps_lock

Signed-off-by: Mike McCormack <mikem@ring3k.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: rtl8192e: Use single spinlock in MgntActSet_RF_State
Mike McCormack [Thu, 3 Mar 2011 13:41:02 +0000 (22:41 +0900)] 
staging: rtl8192e: Use single spinlock in MgntActSet_RF_State

Signed-off-by: Mike McCormack <mikem@ring3k.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: rtl8192e: Remove SetRFPowerState
Mike McCormack [Thu, 3 Mar 2011 13:40:52 +0000 (22:40 +0900)] 
staging: rtl8192e: Remove SetRFPowerState

Signed-off-by: Mike McCormack <mikem@ring3k.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: rtl8192e: Remove SetRFPowerStateInProgress
Mike McCormack [Thu, 3 Mar 2011 13:40:41 +0000 (22:40 +0900)] 
staging: rtl8192e: Remove SetRFPowerStateInProgress

Signed-off-by: Mike McCormack <mikem@ring3k.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: rtl8192e: Add a spinlock around SetRFPowerState8190
Mike McCormack [Thu, 3 Mar 2011 13:40:30 +0000 (22:40 +0900)] 
staging: rtl8192e: Add a spinlock around SetRFPowerState8190

Signed-off-by: Mike McCormack <mikem@ring3k.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: gma500: fix build errors
Marek Belisko [Thu, 3 Mar 2011 12:38:17 +0000 (12:38 +0000)] 
staging: gma500: fix build errors

This patch will fix following compilation error:

drivers/staging/gma500/psb_drv.c:1635: error: unknown field â€˜pci_driver’ specified in initializer
drivers/staging/gma500/psb_drv.c:1636: error: unknown field â€˜name’ specified in initializer
drivers/staging/gma500/psb_drv.c:1636: warning: initialization from incompatible pointer type
drivers/staging/gma500/psb_drv.c:1637: error: unknown field â€˜id_table’ specified in initializer
drivers/staging/gma500/psb_drv.c:1637: warning: excess elements in union initializer
drivers/staging/gma500/psb_drv.c:1637: warning: (near initialization for â€˜driver.kdriver’)
drivers/staging/gma500/psb_drv.c:1638: error: unknown field â€˜resume’ specified in initializer
drivers/staging/gma500/psb_drv.c:1638: warning: excess elements in union initializer
drivers/staging/gma500/psb_drv.c:1638: warning: (near initialization for â€˜driver.kdriver’)
drivers/staging/gma500/psb_drv.c:1639: error: unknown field â€˜suspend’ specified in initializer
drivers/staging/gma500/psb_drv.c:1639: warning: excess elements in union initializer
drivers/staging/gma500/psb_drv.c:1639: warning: (near initialization for â€˜driver.kdriver’)
drivers/staging/gma500/psb_drv.c:1640: error: unknown field â€˜probe’ specified in initializer
drivers/staging/gma500/psb_drv.c:1640: warning: excess elements in union initializer
drivers/staging/gma500/psb_drv.c:1640: warning: (near initialization for â€˜driver.kdriver’)
drivers/staging/gma500/psb_drv.c:1641: error: unknown field â€˜remove’ specified in initializer
drivers/staging/gma500/psb_drv.c:1641: warning: excess elements in union initializer
drivers/staging/gma500/psb_drv.c:1641: warning: (near initialization for â€˜driver.kdriver’)
drivers/staging/gma500/psb_drv.c:1643: error: unknown field â€˜driver’ specified in initializer
drivers/staging/gma500/psb_drv.c:1643: warning: excess elements in union initializer
drivers/staging/gma500/psb_drv.c:1643: warning: (near initialization for â€˜driver.kdriver’)
drivers/staging/gma500/psb_drv.c: In function â€˜psb_init’:
drivers/staging/gma500/psb_drv.c:1664: error: implicit declaration of function â€˜drm_init’
drivers/staging/gma500/psb_drv.c: In function â€˜psb_exit’:
drivers/staging/gma500/psb_drv.c:1669: error: implicit declaration of function â€˜drm_exit’

Signed-off-by: Marek Belisko <marek.belisko@open-nandra.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: gma500: Resync the patch queue with GregKH's space cleanup.
Alan Cox [Thu, 3 Mar 2011 12:38:04 +0000 (12:38 +0000)] 
staging: gma500: Resync the patch queue with GregKH's space cleanup.

Remove all sorts of bits we can get rid of. We are now a very simple KMS
driver relying on the stolen memory for our framebuffer base (which is for
the moment hardcoded).

To support multiple frame buffers and some accel bits we will need some kind
of memory allocator, possibly a minimal use of GEM.

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: keucr: use kernel byteorder functions
Jonathan Neuschäfer [Thu, 3 Mar 2011 13:25:08 +0000 (14:25 +0100)] 
staging: keucr: use kernel byteorder functions

Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
Reviewed-by: Jack Stone <jwjstone@fastmail.fm>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: keucr: remove unused typedef VOID
Jonathan Neuschäfer [Thu, 3 Mar 2011 13:25:07 +0000 (14:25 +0100)] 
staging: keucr: remove unused typedef VOID

Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging/easycap: convert comparison to NULL into boolean
Tomas Winkler [Wed, 2 Mar 2011 22:10:51 +0000 (00:10 +0200)] 
staging/easycap: convert comparison to NULL into boolean

convert if (NULL != ptr) to if (ptr)
convert if (NULL == ptr) to if (!ptr)

Cc: Mike Thomas <rmthomas@sciolus.org>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging/easycap: replace if(false == var) with if (!var)
Tomas Winkler [Wed, 2 Mar 2011 22:10:50 +0000 (00:10 +0200)] 
staging/easycap: replace if(false == var) with if (!var)

    's/(false == \([^ ]\+\))/(!\1)/g'

Cc: Mike Thomas <rmthomas@sciolus.org>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging/easycap: replace if(true == var) with if (var)
Tomas Winkler [Wed, 2 Mar 2011 22:10:49 +0000 (00:10 +0200)] 
staging/easycap: replace if(true == var) with if (var)

's/(true == \([^ ]\+\))/(\1)/g'

Cc: Mike Thomas <rmthomas@sciolus.org>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging/easycap: more style fixing in easycap_main.c
Tomas Winkler [Wed, 2 Mar 2011 22:10:48 +0000 (00:10 +0200)] 
staging/easycap: more style fixing in easycap_main.c

mostly indentation fixes and some line over 80 characters fixes

Cc: Mike Thomas <rmthomas@sciolus.org>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: xgifb: remove private ioctls
Aaro Koskinen [Wed, 2 Mar 2011 22:26:35 +0000 (00:26 +0200)] 
staging: xgifb: remove private ioctls

Drop the badly defined and broken private ioctl interface. Since the
driver is in staging, and some of the ioctls are clearly unsafe or not
even working, it's unlikely that there are any users.

Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: lirc: fix for "lirc_dev: lirc_register_driver: driver pointer must be not...
Thomas Viehweger [Wed, 2 Mar 2011 22:00:20 +0000 (23:00 +0100)] 
staging: lirc: fix for "lirc_dev: lirc_register_driver: driver pointer must be not NULL!"

Unable to load the module lirc_parallel without the attached patch.

Signed-off-by: Thomas Viehweger <patchesThomas.Vie@web.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: hv_mouse: remove unneeded function forward declaration
Greg Kroah-Hartman [Thu, 3 Mar 2011 03:45:17 +0000 (19:45 -0800)] 
Staging: hv: hv_mouse: remove unneeded function forward declaration

When the code moved around earlier, this function declaration should
have been removed but it wasn't.  Resolve that.

Cc: Hank Janssen <hjanssen@microsoft.com>
Cc: K. Y. Srinivasan <kys@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: hv_mouse: fix up guid variable name
Greg Kroah-Hartman [Thu, 3 Mar 2011 03:44:13 +0000 (19:44 -0800)] 
Staging: hv: hv_mouse: fix up guid variable name

It wasn't a global either, yet it was called one for some reason...

Cc: Hank Janssen <hjanssen@microsoft.com>
Cc: K. Y. Srinivasan <kys@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: hv_mouse: get rid of hungarian notation for name of the module
Greg Kroah-Hartman [Thu, 3 Mar 2011 03:42:19 +0000 (19:42 -0800)] 
Staging: hv: hv_mouse: get rid of hungarian notation for name of the module

And, it's not even a global, so the original creator got the Hungarian
notation wrong!  {sigh}

Cc: Hank Janssen <hjanssen@microsoft.com>
Cc: K. Y. Srinivasan <kys@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: hv_mouse: fix up camelcase fields in struct mousevsc_prt_msg
Greg Kroah-Hartman [Thu, 3 Mar 2011 03:41:00 +0000 (19:41 -0800)] 
Staging: hv: hv_mouse: fix up camelcase fields in struct mousevsc_prt_msg

Cc: Hank Janssen <hjanssen@microsoft.com>
Cc: K. Y. Srinivasan <kys@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: hv_mouse: fix up camelcase usage in struct pipe_prt_msg
Greg Kroah-Hartman [Thu, 3 Mar 2011 03:39:48 +0000 (19:39 -0800)] 
Staging: hv: hv_mouse: fix up camelcase usage in struct pipe_prt_msg

Cc: Hank Janssen <hjanssen@microsoft.com>
Cc: K. Y. Srinivasan <kys@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: hv_mouse: fix up pipe size field name
Greg Kroah-Hartman [Thu, 3 Mar 2011 03:38:29 +0000 (19:38 -0800)] 
Staging: hv: hv_mouse: fix up pipe size field name

Make it not camelcase.

Cc: Hank Janssen <hjanssen@microsoft.com>
Cc: K. Y. Srinivasan <kys@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: hv_mouse: fix up camelcase use for enum pipe_prot_msg_type in structures
Greg Kroah-Hartman [Thu, 3 Mar 2011 03:36:15 +0000 (19:36 -0800)] 
Staging: hv: hv_mouse: fix up camelcase use for enum pipe_prot_msg_type in structures

It's a type, so call it that.

Cc: Hank Janssen <hjanssen@microsoft.com>
Cc: K. Y. Srinivasan <kys@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: hv_mouse: use an anonymous union for struct mousevsc_prt_msg
Greg Kroah-Hartman [Thu, 3 Mar 2011 03:33:17 +0000 (19:33 -0800)] 
Staging: hv: hv_mouse: use an anonymous union for struct mousevsc_prt_msg

Much nicer than having an ugly 'u.' in the structure usage, welcome to
the 2000's...

Cc: Hank Janssen <hjanssen@microsoft.com>
Cc: K. Y. Srinivasan <kys@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: hv_mouse: clean up camelcase in struct synthhid_input_report
Greg Kroah-Hartman [Thu, 3 Mar 2011 03:31:39 +0000 (19:31 -0800)] 
Staging: hv: hv_mouse: clean up camelcase in struct synthhid_input_report

Cc: Hank Janssen <hjanssen@microsoft.com>
Cc: K. Y. Srinivasan <kys@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: hv_mouse: fix camelcase in struct synthhid_device_info_ack
Greg Kroah-Hartman [Thu, 3 Mar 2011 03:29:42 +0000 (19:29 -0800)] 
Staging: hv: hv_mouse: fix camelcase in struct synthhid_device_info_ack

Just one field to fix up, s/Reserved/reserved/g
Odd that we have to set the reserved field to 0 when we send the
message, that would imply that it really isn't "reserved"...

Cc: Hank Janssen <hjanssen@microsoft.com>
Cc: K. Y. Srinivasan <kys@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: hv_mouse: use a real struct hid_descriptor
Greg Kroah-Hartman [Thu, 3 Mar 2011 03:27:17 +0000 (19:27 -0800)] 
Staging: hv: hv_mouse: use a real struct hid_descriptor

The data coming from the vmbus is really a hid descriptor, so use that
structure instead of having to mess around with a character array and
pointer fun.

Cc: Hank Janssen <hjanssen@microsoft.com>
Cc: K. Y. Srinivasan <kys@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: hv_mouse: clean up camelcase when using struct hv_input_dev_info
Greg Kroah-Hartman [Thu, 3 Mar 2011 03:24:05 +0000 (19:24 -0800)] 
Staging: hv: hv_mouse: clean up camelcase when using struct hv_input_dev_info

I think there's a callback we can remove that uses this variable in the
future as well, but that's for another patch...

Cc: Hank Janssen <hjanssen@microsoft.com>
Cc: K. Y. Srinivasan <kys@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: hv_mouse: clean up camelcase in struct synthhid_protocol_response
Greg Kroah-Hartman [Thu, 3 Mar 2011 03:19:58 +0000 (19:19 -0800)] 
Staging: hv: hv_mouse: clean up camelcase in struct synthhid_protocol_response

Cc: Hank Janssen <hjanssen@microsoft.com>
Cc: K. Y. Srinivasan <kys@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: hv_mouse: clean up version structure usage
Greg Kroah-Hartman [Thu, 3 Mar 2011 03:18:34 +0000 (19:18 -0800)] 
Staging: hv: hv_mouse: clean up version structure usage

Turns out no one uses the major or minor fields, but hey, we'll keep
them around just to make people feel happy...

Cc: Hank Janssen <hjanssen@microsoft.com>
Cc: K. Y. Srinivasan <kys@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: hv_mouse: change camelcase for struct synthhid_msg
Greg Kroah-Hartman [Thu, 3 Mar 2011 03:11:49 +0000 (19:11 -0800)] 
Staging: hv: hv_mouse: change camelcase for struct synthhid_msg

Turns out no one references the data field of this structure, so I
wonder if it's really even needed at all.  All this is used for is the
type of the message here, so this structure might be able to be dropped
entirely in the future.

Cc: Hank Janssen <hjanssen@microsoft.com>
Cc: K. Y. Srinivasan <kys@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: hv_mouse: fix build warning
Greg Kroah-Hartman [Thu, 3 Mar 2011 03:08:05 +0000 (19:08 -0800)] 
Staging: hv: hv_mouse: fix build warning

The trans_id variable (u64) was being incorrectly cast to a unsigned
long * when it should have just been unsigned long.

Fun with pointers, what a fricken mess, we need some real type safety
for these types of fields somehow...

Cc: Hank Janssen <hjanssen@microsoft.com>
Cc: K. Y. Srinivasan <kys@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: hv_mouse: fix camelcase use of struct synthhid_msg_hdr
Greg Kroah-Hartman [Thu, 3 Mar 2011 03:04:09 +0000 (19:04 -0800)] 
Staging: hv: hv_mouse: fix camelcase use of struct synthhid_msg_hdr

s/Header/header/g for this structure when it is used in the file.

Cc: Hank Janssen <hjanssen@microsoft.com>
Cc: K. Y. Srinivasan <kys@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: hv_mouse.c: clean up struct synthhid_msg_hdr
Greg Kroah-Hartman [Thu, 3 Mar 2011 03:01:49 +0000 (19:01 -0800)] 
Staging: hv: hv_mouse.c: clean up struct synthhid_msg_hdr

Use non-CamelCase names for this structure.

Cc: Hank Janssen <hjanssen@microsoft.com>
Cc: K. Y. Srinivasan <kys@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: hv_mouse: use proper input define for bus type
Greg Kroah-Hartman [Thu, 3 Mar 2011 02:58:35 +0000 (18:58 -0800)] 
Staging: hv: hv_mouse: use proper input define for bus type

The code was so close, the bus type was in a comment, so go all the way
and actually use the define here.  It's as if the original author was so
afraid of license issues if they referenced a define in the processed
code but they felt safe to keep it in a comment.  Chicken.

Cc: Hank Janssen <hjanssen@microsoft.com>
Cc: K. Y. Srinivasan <kys@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: hv_mouse: fix up input device info structure
Greg Kroah-Hartman [Thu, 3 Mar 2011 02:57:04 +0000 (18:57 -0800)] 
Staging: hv: hv_mouse: fix up input device info structure

Make the name "hv_" specific as it's not an input layer structure we are
dealing with here.  Also rename the fields to be not CamelCase.

Cc: Hank Janssen <hjanssen@microsoft.com>
Cc: K. Y. Srinivasan <kys@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: hv_mouse: reorder functions to remove forward declarations
Greg Kroah-Hartman [Thu, 3 Mar 2011 02:50:15 +0000 (18:50 -0800)] 
Staging: hv: hv_mouse: reorder functions to remove forward declarations

This removes almost all forward declarations and makes all functions
static, as there should not be any global functions in this module at
all.

Cc: Hank Janssen <hjanssen@microsoft.com>
Cc: K. Y. Srinivasan <kys@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: hv_mouse: remove inline function markings
Greg Kroah-Hartman [Thu, 3 Mar 2011 02:40:16 +0000 (18:40 -0800)] 
Staging: hv: hv_mouse: remove inline function markings

They are totally useless here, so remove them.

Cc: Hank Janssen <hjanssen@microsoft.com>
Cc: K. Y. Srinivasan <kys@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: hv_mouse.c: remove struct mousevsc_drv_obj function callbacks
Greg Kroah-Hartman [Thu, 3 Mar 2011 02:38:31 +0000 (18:38 -0800)] 
Staging: hv: hv_mouse.c: remove struct mousevsc_drv_obj function callbacks

They aren't needed at all either because they are never called (OnOpen,
OnClose), or because we can just call the real function instead as it's
never set to anything else.

Just another step in unwinding the callback mess...

Cc: Hank Janssen <hjanssen@microsoft.com>
Cc: K. Y. Srinivasan <kys@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: hv_mouse: unwind the initialization process a bit
Greg Kroah-Hartman [Thu, 3 Mar 2011 02:28:52 +0000 (18:28 -0800)] 
Staging: hv: hv_mouse: unwind the initialization process a bit

This unwinds the init call sequence a bit, as we don't need a callback
pointer for a function that is already in this file.

Cc: Hank Janssen <hjanssen@microsoft.com>
Cc: K. Y. Srinivasan <kys@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: hv_mouse: remove typedefs
Greg Kroah-Hartman [Thu, 3 Mar 2011 02:21:01 +0000 (18:21 -0800)] 
Staging: hv: hv_mouse: remove typedefs

Cc: Hank Janssen <hjanssen@microsoft.com>
Cc: K. Y. Srinivasan <kys@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: delete mousevsc_api.h
Greg Kroah-Hartman [Thu, 3 Mar 2011 01:57:51 +0000 (17:57 -0800)] 
Staging: hv: delete mousevsc_api.h

This file is only used by one .c file (hv_mouse.c) so just move the
whole thing into that file.

Cc: Hank Janssen <hjanssen@microsoft.com>
Cc: K. Y. Srinivasan <kys@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: delete vmbus_hid_protocol.h
Greg Kroah-Hartman [Thu, 3 Mar 2011 01:53:58 +0000 (17:53 -0800)] 
Staging: hv: delete vmbus_hid_protocol.h

The .h file is not needed as only one .c file uses it, so just move
it into that file.

Cc: Hank Janssen <hjanssen@microsoft.com>
Cc: K. Y. Srinivasan <kys@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: hv_mouse: fix up copyright and license header
Greg Kroah-Hartman [Thu, 3 Mar 2011 01:49:30 +0000 (17:49 -0800)] 
Staging: hv: hv_mouse: fix up copyright and license header

Use the proper license header from the other hv drivers and remove the
nonsense about derivative works, as it's rubbish.

Cc: Hank Janssen <hjanssen@microsoft.com>
Cc: K. Y. Srinivasan <kys@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: hv_mouse: rename hv_mouse_drv.c
Greg Kroah-Hartman [Thu, 3 Mar 2011 01:46:00 +0000 (17:46 -0800)] 
Staging: hv: hv_mouse: rename hv_mouse_drv.c

As there's only one file for this driver, just name it the same
as the end module name, saving one build/link step and making it
simpler in the end.

Cc: Hank Janssen <hjanssen@microsoft.com>
Cc: K. Y. Srinivasan <kys@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: hv_mouse: delete mouse_vsc.c
Greg Kroah-Hartman [Thu, 3 Mar 2011 01:42:50 +0000 (17:42 -0800)] 
Staging: hv: hv_mouse: delete mouse_vsc.c

Move the mouse_vsc.c file into hv_mouse_drv.c as it makes
no sense to have two files here, as we don't have to worry about the
"closed vs. open" split that this code was originally written for.

Cc: Hank Janssen <hjanssen@microsoft.com>
Cc: K. Y. Srinivasan <kys@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: mouse_vsc: fix comment coding style
Greg Kroah-Hartman [Thu, 3 Mar 2011 01:33:26 +0000 (17:33 -0800)] 
Staging: hv: mouse_vsc: fix comment coding style

Also mark this as a nice FIXME as we shouldn't ever
care about the value of an atomic variable, which makes me seriously
doubt the validity of this reference counting code.  Odds are it can be
ripped out completly, or at the very least, converted to using a kref.

Cc: Hank Janssen <hjanssen@microsoft.com>
Cc: K. Y. Srinivasan <kys@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: mouse_vsc: fix space coding style issues
Greg Kroah-Hartman [Thu, 3 Mar 2011 01:31:05 +0000 (20:31 -0500)] 
Staging: hv: mouse_vsc: fix space coding style issues

Lots of minor space cleanups to resolve coding style warnings and
errors.

Cc: Hank Janssen <hjanssen@microsoft.com>
Cc: K. Y. Srinivasan <kys@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This page took 0.043402 seconds and 5 git commands to generate.