]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
gpio: tps65912: fix wrong container_of arguments
authorNicolas Saenz Julienne <nicolassaenzj@gmail.com>
Thu, 19 Feb 2015 01:52:25 +0000 (01:52 +0000)
committerJiri Slaby <jslaby@suse.cz>
Thu, 5 Mar 2015 14:37:03 +0000 (15:37 +0100)
commit22fd0313bf5b16f60932e2f2b2bba4f37ac25a8f
treee690e152b17909f8a92f31ffa82eb4fb550e9ceb
parentdddaecc27d5dbc30863428edd7bab031e7c7c8d9
gpio: tps65912: fix wrong container_of arguments

commit 2f97c20e5f7c3582c7310f65a04465bfb0fd0e85 upstream.

The gpio_chip operations receive a pointer the gpio_chip struct which is
contained in the driver's private struct, yet the container_of call in those
functions point to the mfd struct defined in include/linux/mfd/tps65912.h.

Signed-off-by: Nicolas Saenz Julienne <nicolassaenzj@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/gpio/gpio-tps65912.c