hc
2024-05-10 37f49e37ab4cb5d0bc4c60eb5c6d4dd57db767bb
kernel/include/linux/platform_data/gpio-dwapb.h
....@@ -1,26 +1,19 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * Copyright(c) 2014 Intel Corporation.
3
- *
4
- * This program is free software; you can redistribute it and/or modify it
5
- * under the terms and conditions of the GNU General Public License,
6
- * version 2, as published by the Free Software Foundation.
7
- *
8
- * This program is distributed in the hope it will be useful, but WITHOUT
9
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
11
- * more details.
124 */
135
146 #ifndef GPIO_DW_APB_H
157 #define GPIO_DW_APB_H
8
+
9
+#define DWAPB_MAX_GPIOS 32
1610
1711 struct dwapb_port_property {
1812 struct fwnode_handle *fwnode;
1913 unsigned int idx;
2014 unsigned int ngpio;
2115 unsigned int gpio_base;
22
- int irq[32];
23
- bool has_irq;
16
+ int irq[DWAPB_MAX_GPIOS];
2417 bool irq_shared;
2518 };
2619