From: Frieder Schrempf <frieder@fris.de>
To: Alessandro Zummo <a.zummo@towertech.it>,
Alexandre Belloni <alexandre.belloni@bootlin.com>,
devicetree@vger.kernel.org,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
linux-kernel@vger.kernel.org, linux-rtc@vger.kernel.org,
Rob Herring <robh+dt@kernel.org>
Cc: Frieder Schrempf <frieder.schrempf@kontron.de>
Subject: [PATCH 4/7] rtc: Move BSM defines to separate header for DT usage
Date: Wed, 1 Feb 2023 15:34:26 +0100 [thread overview]
Message-ID: <20230201143431.863784-5-frieder@fris.de> (raw)
In-Reply-To: <20230201143431.863784-1-frieder@fris.de>
From: Frieder Schrempf <frieder.schrempf@kontron.de>
To be able to use the BSM defines in the devicetree, move the defines
to a separate header within the dt-bindings directory.
Signed-off-by: Frieder Schrempf <frieder.schrempf@kontron.de>
---
include/dt-bindings/rtc/rtc.h | 11 +++++++++++
include/uapi/linux/rtc.h | 6 +-----
2 files changed, 12 insertions(+), 5 deletions(-)
create mode 100644 include/dt-bindings/rtc/rtc.h
diff --git a/include/dt-bindings/rtc/rtc.h b/include/dt-bindings/rtc/rtc.h
new file mode 100644
index 000000000000..b0cc06d368c0
--- /dev/null
+++ b/include/dt-bindings/rtc/rtc.h
@@ -0,0 +1,11 @@
+/* SPDX-License-Identifier: GPL-2.0 OR MIT */
+
+#ifndef _DT_BINDINGS_RTC_H
+#define _DT_BINDINGS_RTC_H
+
+#define RTC_BSM_DISABLED 0
+#define RTC_BSM_DIRECT 1
+#define RTC_BSM_LEVEL 2
+#define RTC_BSM_STANDBY 3
+
+#endif /* _DT_BINDINGS_RTC_H */
diff --git a/include/uapi/linux/rtc.h b/include/uapi/linux/rtc.h
index 97aca4503a6a..9e78c17b5733 100644
--- a/include/uapi/linux/rtc.h
+++ b/include/uapi/linux/rtc.h
@@ -12,6 +12,7 @@
#ifndef _UAPI_LINUX_RTC_H_
#define _UAPI_LINUX_RTC_H_
+#include <dt-bindings/rtc/rtc.h>
#include <linux/const.h>
#include <linux/ioctl.h>
#include <linux/types.h>
@@ -141,11 +142,6 @@ struct rtc_param {
#define RTC_PARAM_CORRECTION 1
#define RTC_PARAM_BACKUP_SWITCH_MODE 2
-#define RTC_BSM_DISABLED 0
-#define RTC_BSM_DIRECT 1
-#define RTC_BSM_LEVEL 2
-#define RTC_BSM_STANDBY 3
-
#define RTC_MAX_FREQ 8192
--
2.39.1
next prev parent reply other threads:[~2023-02-01 14:43 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-01 14:34 [PATCH 0/7] Enable backup switch mode on RTCs via devicetree Frieder Schrempf
2023-02-01 14:34 ` [PATCH 1/7] dt-bindings: rtc: Move RV3028 to separate binding file Frieder Schrempf
2023-02-01 20:10 ` Rob Herring
2023-02-02 9:10 ` Krzysztof Kozlowski
2023-02-02 10:17 ` Frieder Schrempf
2023-02-01 14:34 ` [PATCH 2/7] dt-bindings: rtc: Add backup-switch-mode property Frieder Schrempf
2023-02-01 14:34 ` [PATCH 3/7] dt-bindings: rtc: microcrystal,rv3032: " Frieder Schrempf
2023-02-01 14:34 ` Frieder Schrempf [this message]
2023-02-02 23:22 ` [PATCH 4/7] rtc: Move BSM defines to separate header for DT usage kernel test robot
2023-02-01 14:34 ` [PATCH 5/7] rtc: class: Support setting backup switch mode from devicetree Frieder Schrempf
2023-02-01 16:15 ` [PATCH 0/7] Enable backup switch mode on RTCs via devicetree Alexandre Belloni
2023-02-01 16:26 ` Frieder Schrempf
2023-02-13 9:18 ` Frieder Schrempf
2023-03-06 13:27 ` Frieder Schrempf
2023-03-22 13:14 ` Frieder Schrempf
2023-03-22 22:19 ` Alexandre Belloni
2023-03-28 7:10 ` Frieder Schrempf
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=20230201143431.863784-5-frieder@fris.de \
--to=frieder@fris.de \
--cc=a.zummo@towertech.it \
--cc=alexandre.belloni@bootlin.com \
--cc=devicetree@vger.kernel.org \
--cc=frieder.schrempf@kontron.de \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rtc@vger.kernel.org \
--cc=robh+dt@kernel.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;
as well as URLs for NNTP newsgroup(s).