hid: cp2112: use gpiochip data pointer
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 8 Dec 2015 15:26:28 +0000 (16:26 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 6 Jan 2016 23:10:21 +0000 (00:10 +0100)
commit47513c2ff86e2afd345a9aea3c5626f71cf2f4e9
tree2c4298cac4dcab084accad6786d4fdd11566bbc4
parent78d455a2e41fa3de9e1d2d3696cefcb7d6c9c5c4
hid: cp2112: use gpiochip data pointer

This makes the driver use the data pointer added to the gpio_chip
to store a pointer to the state container instead of relying on
container_of().

Cc: linux-input@vger.kernel.org
Acked-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/hid/hid-cp2112.c