From: Bastien Armand Date: Fri, 18 Apr 2014 16:10:57 +0000 (+0200) Subject: staging: panel: fix sparse warnings in lcd_write X-Git-Tag: omap-for-v3.16/fixes-against-rc1~39^2~36^2~1366 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=70a8c3eb8546cefe40fb0bc7991e8899b7b91075;p=pandora-kernel.git staging: panel: fix sparse warnings in lcd_write This patch fixes two sparse warnings related to lcd_write : warning: incorrect type in argument 1 (different address spaces) warning: incorrect type in initializer (incompatible argument 2 (different address spaces)) lcd_write can be used from kernel space (in panel_lcd_print) or from user space. So we introduce the lcd_write_char function that will write a char to the device. We modify lcd_write and panel_lcd_print to use it. Finally we add __user annotation missing in lcd_write. Signed-off-by: Bastien Armand Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed