staging: ozwpan: Make oz_hcd_pd_arrived() return a struct pointer
authorRupesh Gujare <rupesh.gujare@atmel.com>
Tue, 13 Aug 2013 17:29:22 +0000 (18:29 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Aug 2013 21:15:40 +0000 (14:15 -0700)
oz_hcd_pd_arrived returns struct oz_port *, change function
declaration to avoid ambiguity.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Rupesh Gujare <rupesh.gujare@atmel.com>
Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ozwpan/ozhcd.c
drivers/staging/ozwpan/ozhcd.h

index 8633f0c3e82e8cf8a2badcc5ae6f026c4a8541d6..73d80f21a50f72a1053608b8f4c83b9b6c80e94a 100644 (file)
@@ -660,10 +660,10 @@ static inline void oz_hcd_put(struct oz_hcd *ozhcd)
  * probably very rare indeed.
  * Context: softirq
  */
-void *oz_hcd_pd_arrived(void *hpd)
+struct oz_port *oz_hcd_pd_arrived(void *hpd)
 {
        int i;
-       void *hport = NULL;
+       struct oz_port *hport = NULL;
        struct oz_hcd *ozhcd = NULL;
        struct oz_endpoint *ep;
 
index 9b30dfd09973a4a1873917eac46034348084a2da..ef3202fa79ff3171c7a6aaf3bb401bab5929460f 100644 (file)
@@ -7,8 +7,8 @@
 
 int oz_hcd_init(void);
 void oz_hcd_term(void);
-void *oz_hcd_pd_arrived(void *ctx);
 void oz_hcd_pd_departed(void *ctx);
+struct oz_port *oz_hcd_pd_arrived(void *ctx);
 void oz_hcd_pd_reset(void *hpd, void *hport);
 
 #endif /* _OZHCD_H */