diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2013-03-31 21:34:43 -0400 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2013-04-02 04:42:48 -0400 |
commit | 225da3e3cb1f0db9e4cb7fa2a7dc3a360d1cf788 (patch) | |
tree | d025de4153ffad269d29fe9bb806c0faa8b16272 /drivers/usb/renesas_usbhs | |
parent | ef096542642874de10909f02686447a96a66ad14 (diff) |
usb: renesas_usbhs: fixup sparse errors for common.c
This patch fixup below sparse errors
CHECK ${RENESAS_USB}/common.c
${RENESAS_USB}/common.c:313:17: error: incompatible types in conditional expression (different base types)
${RENESAS_USB}/common.c:322:17: error: incompatible types in conditional expression (different base types)
${RENESAS_USB}/common.c:384:17: error: incompatible types in conditional expression (different base types)
${RENESAS_USB}/common.c:524:9: error: incompatible types in conditional expression (different base types)
${RENESAS_USB}/common.c:545:9: error: incompatible types in conditional expression (different base types)
${RENESAS_USB}/common.c:574:9: error: incompatible types in conditional expression (different base types)
${RENESAS_USB}/common.c:606:9: error: incompatible types in conditional expression (different base types)
${RENESAS_USB}/mod_gadget.c:233:28: warning: symbol 'req_clear_feature' was not declared. Should it be static?
${RENESAS_USB}/mod_gadget.c:274:28: warning: symbol 'req_set_feature' was not declared. Should it be static?
${RENESAS_USB}/mod_gadget.c:375:28: warning: symbol 'req_get_status' was not declared. Should it be static?
[ balbi@ti.com : added three sparse fixes to mod_gadget.c ]
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/renesas_usbhs')
-rw-r--r-- | drivers/usb/renesas_usbhs/mod_gadget.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/usb/renesas_usbhs/mod_gadget.c b/drivers/usb/renesas_usbhs/mod_gadget.c index c2781bc9dabe..ed4949faa70d 100644 --- a/drivers/usb/renesas_usbhs/mod_gadget.c +++ b/drivers/usb/renesas_usbhs/mod_gadget.c | |||
@@ -230,7 +230,7 @@ static int usbhsg_recip_handler_std_clear_endpoint(struct usbhs_priv *priv, | |||
230 | return 0; | 230 | return 0; |
231 | } | 231 | } |
232 | 232 | ||
233 | struct usbhsg_recip_handle req_clear_feature = { | 233 | static struct usbhsg_recip_handle req_clear_feature = { |
234 | .name = "clear feature", | 234 | .name = "clear feature", |
235 | .device = usbhsg_recip_handler_std_control_done, | 235 | .device = usbhsg_recip_handler_std_control_done, |
236 | .interface = usbhsg_recip_handler_std_control_done, | 236 | .interface = usbhsg_recip_handler_std_control_done, |
@@ -271,7 +271,7 @@ static int usbhsg_recip_handler_std_set_endpoint(struct usbhs_priv *priv, | |||
271 | return 0; | 271 | return 0; |
272 | } | 272 | } |
273 | 273 | ||
274 | struct usbhsg_recip_handle req_set_feature = { | 274 | static struct usbhsg_recip_handle req_set_feature = { |
275 | .name = "set feature", | 275 | .name = "set feature", |
276 | .device = usbhsg_recip_handler_std_set_device, | 276 | .device = usbhsg_recip_handler_std_set_device, |
277 | .interface = usbhsg_recip_handler_std_control_done, | 277 | .interface = usbhsg_recip_handler_std_control_done, |
@@ -372,7 +372,7 @@ static int usbhsg_recip_handler_std_get_endpoint(struct usbhs_priv *priv, | |||
372 | return 0; | 372 | return 0; |
373 | } | 373 | } |
374 | 374 | ||
375 | struct usbhsg_recip_handle req_get_status = { | 375 | static struct usbhsg_recip_handle req_get_status = { |
376 | .name = "get status", | 376 | .name = "get status", |
377 | .device = usbhsg_recip_handler_std_get_device, | 377 | .device = usbhsg_recip_handler_std_get_device, |
378 | .interface = usbhsg_recip_handler_std_get_interface, | 378 | .interface = usbhsg_recip_handler_std_get_interface, |