staging: sm750fb: Fix __iomem pointer types
authorLorenzo Stoakes <lstoakes@gmail.com>
Fri, 20 Mar 2015 15:22:14 +0000 (15:22 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Mar 2015 12:04:48 +0000 (13:04 +0100)
commit35fb80b9de08024b375d76f08591ec5b7cc57995
treeee15fac9a20c21b4da51e2fd6198290dd7a96e93
parent2ffbc9c6aa2c36cbdc584ef9669b9ef97c1283c1
staging: sm750fb: Fix __iomem pointer types

This patch annotates pointers as referring to I/O mapped memory where they ought
to be, removes now unnecessary ugly casts, eliminates an incorrect deref on I/O
mapped memory by using iowrite16 instead, and updates the pointer arithmetic
accordingly to take into account that the pointers are now byte-sized. This
fixes the following sparse warnings:-

drivers/staging/sm750fb/sm750_cursor.c:113:19: warning: cast removes address space of expression
drivers/staging/sm750fb/sm750_cursor.c:204:19: warning: cast removes address space of expression

Signed-off-by: Lorenzo Stoakes <lstoakes@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/sm750fb/sm750_cursor.c