From: Andreas Ruprecht Date: Fri, 2 Dec 2011 16:56:55 +0000 (+0100) Subject: Staging: iio/accel: Changed data type of mask in store_measurement_mode() to u8 X-Git-Tag: v3.3-rc1~152^2~101^2~97 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bba42776f5bade198d3bf918689da02acb63dadb;p=pandora-kernel.git Staging: iio/accel: Changed data type of mask in store_measurement_mode() to u8 In sca3000_store_measurement_mode() we parse a value from a string buffer via kstrtou8, and store the parsed value into a u8 after and-ing it with mask. As we are only interested in the lowest two bits here and mask is initialized with a fixed value 0x03, mask may as well be a u8. Signed-off-by: Andreas Ruprecht Acked-by: Jonathan Cameron Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed