From: Paul Bolle Date: Sun, 14 Oct 2012 18:50:11 +0000 (-0300) Subject: [media] staging: lirc_serial: silence GCC warning X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~21^2^2~144 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=895507c19f88b7bbf82f24737d86cca0398647cb;p=pandora-kernel.git [media] staging: lirc_serial: silence GCC warning Building lirc_serial.o triggers this GCC warning: drivers/staging/media/lirc/lirc_serial.c: In function '__check_sense': drivers/staging/media/lirc/lirc_serial.c:1301:1: warning: return from incompatible pointer type [enabled by default] This can be trivially fixed by changing the 'sense' parameter from bool to int. But, to be safe, we also need to make sure 'sense' will only be -1, 0, or 1. There's no need to document the new values that are now allowed for the 'sense' parameter, since they're basically useless. Signed-off-by: Paul Bolle Cc: Jarod Wilson Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed