From 6778948f9de86c3cfaf36725a7c87dcff9ba247f Mon Sep 17 00:00:00 2001 From: hc <hc@nodka.com> Date: Mon, 11 Dec 2023 08:20:59 +0000 Subject: [PATCH] kernel_5.10 no rt --- 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