pinctrl-mcp23s08.c (5d8dfaa71d87f742c53309b95cb6a8b274119027) pinctrl-mcp23s08.c (8a8d6bbe1d3bc7137c777ba06246d7e9c08dde4d)
1// SPDX-License-Identifier: GPL-2.0-only
2/* MCP23S08 SPI/I2C GPIO driver */
3
4#include <linux/bitops.h>
5#include <linux/kernel.h>
6#include <linux/device.h>
7#include <linux/mutex.h>
8#include <linux/mod_devicetable.h>

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

546 mcp->irq_chip.irq_bus_sync_unlock = mcp23s08_irq_bus_unlock;
547
548 mcp->chip.direction_input = mcp23s08_direction_input;
549 mcp->chip.get = mcp23s08_get;
550 mcp->chip.direction_output = mcp23s08_direction_output;
551 mcp->chip.set = mcp23s08_set;
552#ifdef CONFIG_OF_GPIO
553 mcp->chip.of_gpio_n_cells = 2;
1// SPDX-License-Identifier: GPL-2.0-only
2/* MCP23S08 SPI/I2C GPIO driver */
3
4#include <linux/bitops.h>
5#include <linux/kernel.h>
6#include <linux/device.h>
7#include <linux/mutex.h>
8#include <linux/mod_devicetable.h>

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

546 mcp->irq_chip.irq_bus_sync_unlock = mcp23s08_irq_bus_unlock;
547
548 mcp->chip.direction_input = mcp23s08_direction_input;
549 mcp->chip.get = mcp23s08_get;
550 mcp->chip.direction_output = mcp23s08_direction_output;
551 mcp->chip.set = mcp23s08_set;
552#ifdef CONFIG_OF_GPIO
553 mcp->chip.of_gpio_n_cells = 2;
554 mcp->chip.of_node = dev->of_node;
555#endif
556
557 mcp->chip.base = base;
558 mcp->chip.can_sleep = true;
559 mcp->chip.parent = dev;
560 mcp->chip.owner = THIS_MODULE;
561
562 mcp->reset_gpio = devm_gpiod_get_optional(dev, "reset", GPIOD_OUT_LOW);

--- 85 unchanged lines hidden ---
554#endif
555
556 mcp->chip.base = base;
557 mcp->chip.can_sleep = true;
558 mcp->chip.parent = dev;
559 mcp->chip.owner = THIS_MODULE;
560
561 mcp->reset_gpio = devm_gpiod_get_optional(dev, "reset", GPIOD_OUT_LOW);

--- 85 unchanged lines hidden ---