From: Lee Jones Date: Mon, 18 Aug 2014 12:10:20 +0000 (+0100) Subject: mfd: htc-i2cpld: Rectify pointer offset error X-Git-Tag: fixes-against-v3.18-rc2~69^2~73 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9b6a5ad9da4118e8c2a087501ddff33f51a9e6ba;p=pandora-kernel.git mfd: htc-i2cpld: Rectify pointer offset error Checking the result of container_of() against NULL will always result to false. Using the offset of member 'chip_out' to find the start of 'struct htcpld_chip' will result in an offset error when .get_chip() is attempting to obtain 'htcpld-in'. Instead, we'll use the correct member based on a previously the set chip label. Signed-off-by: Lee Jones --- Reading git-diff-tree failed