From: Dan Carpenter Date: Wed, 24 Oct 2012 07:12:29 +0000 (+0300) Subject: ds2782_battery: Fix signedness bug in ds278x_read_reg16() X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~20^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8511748ba1ab83a7d89d802a50335115358a8cfc;p=pandora-kernel.git ds2782_battery: Fix signedness bug in ds278x_read_reg16() We need to check for negative values before doing the swab16() for the error handling to work. Signed-off-by: Dan Carpenter Signed-off-by: Anton Vorontsov --- Reading git-diff-tree failed