From 1c055e55a242a33e574e48be530e06770a210dcd Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Mon, 19 Feb 2024 03:26:26 +0000
Subject: [PATCH] add r8169 read mac form eeprom
---
kernel/include/linux/platform_data/gpio-dwapb.h | 15 ++++-----------
1 files changed, 4 insertions(+), 11 deletions(-)
diff --git a/kernel/include/linux/platform_data/gpio-dwapb.h b/kernel/include/linux/platform_data/gpio-dwapb.h
index 419cfac..0aa5c67 100644
--- a/kernel/include/linux/platform_data/gpio-dwapb.h
+++ b/kernel/include/linux/platform_data/gpio-dwapb.h
@@ -1,26 +1,19 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
/*
* Copyright(c) 2014 Intel Corporation.
- *
- * This program is free software; you can redistribute it and/or modify it
- * under the terms and conditions of the GNU General Public License,
- * version 2, as published by the Free Software Foundation.
- *
- * This program is distributed in the hope it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
- * more details.
*/
#ifndef GPIO_DW_APB_H
#define GPIO_DW_APB_H
+
+#define DWAPB_MAX_GPIOS 32
struct dwapb_port_property {
struct fwnode_handle *fwnode;
unsigned int idx;
unsigned int ngpio;
unsigned int gpio_base;
- int irq[32];
- bool has_irq;
+ int irq[DWAPB_MAX_GPIOS];
bool irq_shared;
};
--
Gitblit v1.6.2