summaryrefslogtreecommitdiff
path: root/drivers/staging/hv
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2011-03-02 19:33:17 -0800
committerGreg Kroah-Hartman <gregkh@suse.de>2011-03-02 19:33:17 -0800
commitd7fa1a4629cd94e249b1556f58030174601ddbc4 (patch)
treef841567a154853b9653d7eac074de13a1082462d /drivers/staging/hv
parente93eff9cf4fd9d051d775972ef93c25e2df5dc1c (diff)
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>
Diffstat (limited to 'drivers/staging/hv')
-rw-r--r--drivers/staging/hv/hv_mouse.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/staging/hv/hv_mouse.c b/drivers/staging/hv/hv_mouse.c
index 816f4b42b8eb..b8760da1ebe7 100644
--- a/drivers/staging/hv/hv_mouse.c
+++ b/drivers/staging/hv/hv_mouse.c
@@ -160,7 +160,7 @@ struct mousevsc_prt_msg {
struct synthhid_protocol_request Request;
struct synthhid_protocol_response Response;
struct synthhid_device_info_ack Ack;
- } u;
+ };
};
/*
@@ -385,9 +385,9 @@ static void MousevscOnReceiveDeviceInfo(struct mousevsc_dev *InputDevice, struct
ack.PacketType = PipeMessageData;
ack.DataSize = sizeof(struct synthhid_device_info_ack);
- ack.u.Ack.header.type = SynthHidInitialDeviceInfoAck;
- ack.u.Ack.header.size = 1;
- ack.u.Ack.reserved = 0;
+ ack.Ack.header.type = SynthHidInitialDeviceInfoAck;
+ ack.Ack.header.size = 1;
+ ack.Ack.reserved = 0;
ret = vmbus_sendpacket(InputDevice->Device->channel,
&ack,
@@ -608,9 +608,9 @@ static int MousevscConnectToVsp(struct hv_device *Device)
request->PacketType = PipeMessageData;
request->DataSize = sizeof(struct synthhid_protocol_request);
- request->u.Request.header.type = SynthHidProtocolRequest;
- request->u.Request.header.size = sizeof(unsigned long);
- request->u.Request.version_requested.version = SYNTHHID_INPUT_VERSION;
+ request->Request.header.type = SynthHidProtocolRequest;
+ request->Request.header.size = sizeof(unsigned long);
+ request->Request.version_requested.version = SYNTHHID_INPUT_VERSION;
pr_info("synthhid protocol request...");
@@ -635,7 +635,7 @@ static int MousevscConnectToVsp(struct hv_device *Device)
response = &inputDevice->ProtocolResp;
- if (!response->u.Response.approved) {
+ if (!response->Response.approved) {
pr_err("synthhid protocol request failed (version %d)",
SYNTHHID_INPUT_VERSION);
ret = -1;