drivers/misc/apds9802als.c: fix signedness bug
authorVasiliy Kulikov <segooon@gmail.com>
Thu, 11 Nov 2010 22:05:11 +0000 (14:05 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 12 Nov 2010 15:55:31 +0000 (07:55 -0800)
commit1093736b3c34319b8f1825a4423414d9cf397d73
treef1b491b897e5f25b4677b440966add568892b2db
parent90482e45e4a39ee10b66436c2b3d5d4d88c2f73c
drivers/misc/apds9802als.c: fix signedness bug

i2c_smbus_read_byte_data() may return negative error code.  This is not
seen to als_sensing_range_store() as the result is stored in unsigned int.

Made it signed.

Signed-off-by: Vasiliy Kulikov <segooon@gmail.com>
Cc: Hong Liu <hong.liu@intel.com>
Cc: Alan Cox <alan@linux.intel.com>
Cc: Anantha Narayanan <anantha.narayanan@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/misc/apds9802als.c