diff options
author | Lee Jones <lee.jones@linaro.org> | 2014-08-18 14:10:20 +0200 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2014-09-26 09:15:31 +0200 |
commit | 9b6a5ad9da4118e8c2a087501ddff33f51a9e6ba (patch) | |
tree | 702d8cf37bd598622b9cd86ec59c1d002d0d4559 /drivers/mfd/wm5102-tables.c | |
parent | mfd: htc-i2cpld: Use '!variable' instead of 'variable == NULL' (diff) | |
download | linux-9b6a5ad9da4118e8c2a087501ddff33f51a9e6ba.tar.xz linux-9b6a5ad9da4118e8c2a087501ddff33f51a9e6ba.zip |
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 <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd/wm5102-tables.c')
0 files changed, 0 insertions, 0 deletions