mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: barebox@lists.infradead.org
Subject: [PATCH 1/2] mfd: syscon: make mfd/syscon.h header self-contained
Date: Tue, 22 Apr 2025 09:55:30 +0200	[thread overview]
Message-ID: <20250422075531.219284-1-a.fatoum@pengutronix.de> (raw)

From: Ahmad Fatoum <a.fatoum@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@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@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




             reply	other threads:[~2025-04-22  8:38 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-22  7:55 Ahmad Fatoum [this message]
2025-04-22  7:55 ` [PATCH 2/2] dma: make " Ahmad Fatoum
2025-04-22  9:23 ` [PATCH 1/2] mfd: syscon: make mfd/syscon.h " Sascha Hauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250422075531.219284-1-a.fatoum@pengutronix.de \
    --to=a.fatoum@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox