staging/ipack: Fix bug introduced by IPack device matching
authorJens Taprogge <jens.taprogge@taprogge.org>
Fri, 7 Sep 2012 08:29:19 +0000 (10:29 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Sep 2012 15:27:34 +0000 (08:27 -0700)
commit5948ae27fb4f0e87ce8543ca1934599b83929a3e
treed7d8e33ddc830a1b969f87d9064550024b1dd957
parent7953e44cefe1359032d1148de69b966bcd2e5233
staging/ipack: Fix bug introduced by IPack device matching

~0 can not be casted to u8.  Instead of using the IPACK_ANY_ID for the format
field we introduce a new IPACK_ANY_FORMAT specifically for that field and
defined as 0xff.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jens Taprogge <jens.taprogge@taprogge.org>
Acked-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ipack/ipack.c
include/linux/mod_devicetable.h
scripts/mod/file2alias.c