• Linus Walleij's avatar
    powerpc: simple-gpio: use gpiochip data pointer · 937daafc
    Linus Walleij authored
    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: Anton Vorontsov <anton@enomsg.org>
    Cc: Anatolij Gustschin <agust@denx.de>
    Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
    Cc: Paul Mackerras <paulus@samba.org>
    Cc: Michael Ellerman <mpe@ellerman.id.au>
    Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
    937daafc
simple_gpio.c 3.1 KB