gpio: f7188x: use gpiochip_get_data instead of container_of
gpiochip_add_data is already used to add data pointer and chip. Lets rely on gpiochip_get_data which is getting used in other gpio_chip functions. Signed-off-by: Amitesh Singh <singh.amitesh@gmail.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
Родитель
8df759c9e6
Коммит
35a26144a1
|
@ -214,8 +214,7 @@ static struct f7188x_gpio_bank f81866_gpio_bank[] = {
|
||||||
static int f7188x_gpio_get_direction(struct gpio_chip *chip, unsigned offset)
|
static int f7188x_gpio_get_direction(struct gpio_chip *chip, unsigned offset)
|
||||||
{
|
{
|
||||||
int err;
|
int err;
|
||||||
struct f7188x_gpio_bank *bank =
|
struct f7188x_gpio_bank *bank = gpiochip_get_data(chip);
|
||||||
container_of(chip, struct f7188x_gpio_bank, chip);
|
|
||||||
struct f7188x_sio *sio = bank->data->sio;
|
struct f7188x_sio *sio = bank->data->sio;
|
||||||
u8 dir;
|
u8 dir;
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче