staging: typec: Fix sparse warnings about incorrect types
authorGuru Das Srinagesh <gurooodas@gmail.com>
Thu, 11 May 2017 05:51:35 +0000 (22:51 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 15 May 2017 09:37:26 +0000 (11:37 +0200)
commitf03d95f59026d14219230795ac4dcda8c09b5321
treee8c08d60e7910d8c1500a448e1824bf7c0111deb
parent2c8e3f44f708a89a2c73a25a134af8c23998a2bc
staging: typec: Fix sparse warnings about incorrect types

Fix the following sparse warnings about incorrect type usage:

fusb302.c:1028:32: warning: incorrect type in argument 1 (different base types)
fusb302.c:1028:32:    expected unsigned short [unsigned] [usertype] header
fusb302.c:1028:32:    got restricted __le16 const [usertype] header
fusb302.c:1484:32: warning: incorrect type in argument 1 (different base types)
fusb302.c:1484:32:    expected unsigned short [unsigned] [usertype] header
fusb302.c:1484:32:    got restricted __le16 [usertype] header

Signed-off-by: Guru Das Srinagesh <gurooodas@gmail.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/typec/fusb302/fusb302.c