From: Hartmut Knaack Date: Sat, 25 Oct 2014 18:09:11 +0000 (+0200) Subject: iio:humidity:si7020: cleanup read_raw and probe X-Git-Tag: omap-for-v3.19/fixes-rc1~73^2~446^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=345b48307d6961183be77748fc0ae5dd660c91a8;p=pandora-kernel.git iio:humidity:si7020: cleanup read_raw and probe When reading temperature or humidity values, a shift of two bits to the right needs to be applied, and only for the humidity channel a mask of the lower 12 bits needs to be applied. This reduces code repetition. During probe, i2c_set_clientdata() was used, although its counterpart was not, so drop it. Signed-off-by: Hartmut Knaack Signed-off-by: Jonathan Cameron --- Reading git-diff-tree failed