pinctrl-stmfx.c (8632987380765dee716d460640aa58d58d52998e) pinctrl-stmfx.c (8a8d6bbe1d3bc7137c777ba06246d7e9c08dde4d)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Driver for STMicroelectronics Multi-Function eXpander (STMFX) GPIO expander
4 *
5 * Copyright (C) 2019 STMicroelectronics
6 * Author(s): Amelie Delaunay <amelie.delaunay@st.com>.
7 */
8#include <linux/gpio/driver.h>

--- 661 unchanged lines hidden (view full) ---

670 pctl->gpio_chip.direction_input = stmfx_gpio_direction_input;
671 pctl->gpio_chip.direction_output = stmfx_gpio_direction_output;
672 pctl->gpio_chip.get = stmfx_gpio_get;
673 pctl->gpio_chip.set = stmfx_gpio_set;
674 pctl->gpio_chip.set_config = gpiochip_generic_config;
675 pctl->gpio_chip.base = -1;
676 pctl->gpio_chip.ngpio = pctl->pctl_desc.npins;
677 pctl->gpio_chip.can_sleep = true;
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Driver for STMicroelectronics Multi-Function eXpander (STMFX) GPIO expander
4 *
5 * Copyright (C) 2019 STMicroelectronics
6 * Author(s): Amelie Delaunay <amelie.delaunay@st.com>.
7 */
8#include <linux/gpio/driver.h>

--- 661 unchanged lines hidden (view full) ---

670 pctl->gpio_chip.direction_input = stmfx_gpio_direction_input;
671 pctl->gpio_chip.direction_output = stmfx_gpio_direction_output;
672 pctl->gpio_chip.get = stmfx_gpio_get;
673 pctl->gpio_chip.set = stmfx_gpio_set;
674 pctl->gpio_chip.set_config = gpiochip_generic_config;
675 pctl->gpio_chip.base = -1;
676 pctl->gpio_chip.ngpio = pctl->pctl_desc.npins;
677 pctl->gpio_chip.can_sleep = true;
678 pctl->gpio_chip.of_node = np;
679
680 pctl->irq_chip.name = dev_name(pctl->dev);
681 pctl->irq_chip.irq_mask = stmfx_pinctrl_irq_mask;
682 pctl->irq_chip.irq_unmask = stmfx_pinctrl_irq_unmask;
683 pctl->irq_chip.irq_set_type = stmfx_pinctrl_irq_set_type;
684 pctl->irq_chip.irq_bus_lock = stmfx_pinctrl_irq_bus_lock;
685 pctl->irq_chip.irq_bus_sync_unlock = stmfx_pinctrl_irq_bus_sync_unlock;
686 pctl->irq_chip.irq_request_resources = stmfx_gpio_irq_request_resources;

--- 160 unchanged lines hidden ---
678
679 pctl->irq_chip.name = dev_name(pctl->dev);
680 pctl->irq_chip.irq_mask = stmfx_pinctrl_irq_mask;
681 pctl->irq_chip.irq_unmask = stmfx_pinctrl_irq_unmask;
682 pctl->irq_chip.irq_set_type = stmfx_pinctrl_irq_set_type;
683 pctl->irq_chip.irq_bus_lock = stmfx_pinctrl_irq_bus_lock;
684 pctl->irq_chip.irq_bus_sync_unlock = stmfx_pinctrl_irq_bus_sync_unlock;
685 pctl->irq_chip.irq_request_resources = stmfx_gpio_irq_request_resources;

--- 160 unchanged lines hidden ---