Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]> Cc: Hong Liu <[email protected]> Cc: Alan Cox <[email protected]> Cc: Anantha Narayanan <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
- Loading branch information