[PATCH 1/2] mfd: syscon: make mfd/syscon.h header self-contained
Ahmad Fatoum
a.fatoum at pengutronix.de
Tue Apr 22 00:55:30 PDT 2025
From: Ahmad Fatoum <a.fatoum at barebox.org>
Including the header in new files can currently break the build if
suitable headers aren't included beforehand.
Make it self-contained and while at it, switch over to SPDX.
Signed-off-by: Ahmad Fatoum <a.fatoum at barebox.org>
---
include/mfd/syscon.h | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/include/mfd/syscon.h b/include/mfd/syscon.h
index f22d4e620b05..288dd464b7c6 100644
--- a/include/mfd/syscon.h
+++ b/include/mfd/syscon.h
@@ -1,20 +1,20 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+/* SPDX-FileCopyrightText: (C) 2012 Freescale Semiconductor, Inc. */
+/* SPDX-FileCopyrightText: (C) (C) 2012 Linaro Ltd. */
/* System Control Driver
*
* Based on linux driver by:
- * Copyright (C) 2012 Freescale Semiconductor, Inc.
- * Copyright (C) 2012 Linaro Ltd.
* Author: Dong Aisheng <dong.aisheng at linaro.org>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
*/
#ifndef __MFD_SYSCON_H__
#define __MFD_SYSCON_H__
+#include <linux/compiler.h>
+#include <linux/err.h>
+
struct regmap;
+struct device_node;
#ifdef CONFIG_MFD_SYSCON
void __iomem *syscon_base_lookup_by_phandle
--
2.39.5
More information about the barebox
mailing list