]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit - drivers/mfd/sm501.c
mfd: sm501: Use gpiochip data pointer
authorLinus Walleij <linus.walleij@linaro.org>
Wed, 30 Mar 2016 08:48:05 +0000 (10:48 +0200)
committerLee Jones <lee.jones@linaro.org>
Tue, 19 Apr 2016 06:58:37 +0000 (07:58 +0100)
commit3a504105f0e4cf32464d596f3b30d23dbfd76520
tree5d62586613609745c1ba769db2118bb81193f0de
parented1c9b3c18e33a69da0a911eadf4948ea7e5b5b9
mfd: sm501: 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: Ben Dooks <ben@fluff.org.uk>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/sm501.c