]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit727e9e6033f124ec141aa52cc133dadc866af0f3
treee8c08d60e7910d8c1500a448e1824bf7c0111deb
parent24e584c2b9f122ed6b8d457fe070d3f0ace70077
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