gpio-reg.c (c95baf12f5077419db01313ab61c2aac007d40cd) | gpio-reg.c (d74c0863fd4ecaeafde6a4bb290dcae90b12d942) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * gpio-reg: single register individually fixed-direction GPIOs 4 * 5 * Copyright (C) 2016 Russell King 6 */ | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * gpio-reg: single register individually fixed-direction GPIOs 4 * 5 * Copyright (C) 2016 Russell King 6 */ |
7#include <linux/gpio/driver.h> 8#include <linux/gpio/gpio-reg.h> | 7#include <linux/bits.h> 8#include <linux/container_of.h> 9#include <linux/device.h> 10#include <linux/err.h> 11#include <linux/errno.h> |
9#include <linux/io.h> | 12#include <linux/io.h> |
13#include <linux/irqdomain.h> |
|
10#include <linux/slab.h> 11#include <linux/spinlock.h> | 14#include <linux/slab.h> 15#include <linux/spinlock.h> |
16#include <linux/types.h> |
|
12 | 17 |
18#include <linux/gpio/driver.h> 19#include <linux/gpio/gpio-reg.h> 20 |
|
13struct gpio_reg { 14 struct gpio_chip gc; 15 spinlock_t lock; 16 u32 direction; 17 u32 out; 18 void __iomem *reg; 19 struct irq_domain *irqdomain; 20 const int *irqs; --- 163 unchanged lines hidden --- | 21struct gpio_reg { 22 struct gpio_chip gc; 23 spinlock_t lock; 24 u32 direction; 25 u32 out; 26 void __iomem *reg; 27 struct irq_domain *irqdomain; 28 const int *irqs; --- 163 unchanged lines hidden --- |