From 093a6c67005148ae32a5c9e4553491b9f5c2457b Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Fri, 10 May 2024 07:40:51 +0000
Subject: [PATCH] disable kernel build waring

---
 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