mfd: htc-i2cpld: Rectify pointer offset error
authorLee Jones <lee.jones@linaro.org>
Mon, 18 Aug 2014 12:10:20 +0000 (13:10 +0100)
committerLee Jones <lee.jones@linaro.org>
Fri, 26 Sep 2014 07:15:31 +0000 (08:15 +0100)
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 <lee.jones@linaro.org>

No differences found