All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 1/1] lib: move rtc-lib.c to lib
@ 2021-06-12 11:20 Heinrich Schuchardt
  2021-06-12 11:22 ` Bin Meng
  2021-07-15  1:27 ` Tom Rini
  0 siblings, 2 replies; 3+ messages in thread
From: Heinrich Schuchardt @ 2021-06-12 11:20 UTC (permalink / raw)
  To: Tom Rini
  Cc: Bin Meng, Stefan Roese, Marek Behún, Pali Rohár,
	Ying-Chun Liu, Heiko Schocher, Alexandru Gagniuc, Simon Glass,
	Masahisa Kojima, Reuben Dowle, Andrii Anisov, u-boot,
	Heinrich Schuchardt

Function rtc_to_tm() is needed for FAT file system support even if we don't
have a real time clock. So move it from drivers/ to lib/.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
---
v2:
	reformated using 'git format-patch -M'
---
 drivers/rtc/Makefile           | 1 -
 lib/Makefile                   | 1 +
 {drivers/rtc => lib}/rtc-lib.c | 0
 3 files changed, 1 insertion(+), 1 deletion(-)
 rename {drivers/rtc => lib}/rtc-lib.c (100%)

diff --git a/drivers/rtc/Makefile b/drivers/rtc/Makefile
index f668cf9050..331a49ab59 100644
--- a/drivers/rtc/Makefile
+++ b/drivers/rtc/Makefile
@@ -7,7 +7,6 @@
 obj-$(CONFIG_$(SPL_TPL_)DM_RTC) += rtc-uclass.o

 obj-$(CONFIG_RTC_AT91SAM9_RTT) += at91sam9_rtt.o
-obj-y += rtc-lib.o
 obj-$(CONFIG_RTC_ARMADA38X) += armada38x.o
 obj-$(CONFIG_RTC_DAVINCI) += davinci.o
 obj-$(CONFIG_RTC_DS1302) += ds1302.o
diff --git a/lib/Makefile b/lib/Makefile
index b4795a62a0..b7ab1254d8 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -133,6 +133,7 @@ obj-$(CONFIG_SSCANF) += sscanf.o
 endif

 obj-y += date.o
+obj-y += rtc-lib.o
 obj-$(CONFIG_LIB_ELF) += elf.o

 #
diff --git a/drivers/rtc/rtc-lib.c b/lib/rtc-lib.c
similarity index 100%
rename from drivers/rtc/rtc-lib.c
rename to lib/rtc-lib.c
--
2.30.2


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH v2 1/1] lib: move rtc-lib.c to lib
  2021-06-12 11:20 [PATCH v2 1/1] lib: move rtc-lib.c to lib Heinrich Schuchardt
@ 2021-06-12 11:22 ` Bin Meng
  2021-07-15  1:27 ` Tom Rini
  1 sibling, 0 replies; 3+ messages in thread
From: Bin Meng @ 2021-06-12 11:22 UTC (permalink / raw)
  To: Heinrich Schuchardt
  Cc: Tom Rini, Stefan Roese, Marek Behún, Pali Rohár,
	Ying-Chun Liu, Heiko Schocher, Alexandru Gagniuc, Simon Glass,
	Masahisa Kojima, Reuben Dowle, Andrii Anisov,
	U-Boot Mailing List

On Sat, Jun 12, 2021 at 7:20 PM Heinrich Schuchardt <xypron.glpk@gmx.de> wrote:
>
> Function rtc_to_tm() is needed for FAT file system support even if we don't
> have a real time clock. So move it from drivers/ to lib/.
>
> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
> ---
> v2:
>         reformated using 'git format-patch -M'
> ---
>  drivers/rtc/Makefile           | 1 -
>  lib/Makefile                   | 1 +
>  {drivers/rtc => lib}/rtc-lib.c | 0
>  3 files changed, 1 insertion(+), 1 deletion(-)
>  rename {drivers/rtc => lib}/rtc-lib.c (100%)
>

Reviewed-by: Bin Meng <bmeng.cn@gmail.com>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v2 1/1] lib: move rtc-lib.c to lib
  2021-06-12 11:20 [PATCH v2 1/1] lib: move rtc-lib.c to lib Heinrich Schuchardt
  2021-06-12 11:22 ` Bin Meng
@ 2021-07-15  1:27 ` Tom Rini
  1 sibling, 0 replies; 3+ messages in thread
From: Tom Rini @ 2021-07-15  1:27 UTC (permalink / raw)
  To: Heinrich Schuchardt
  Cc: Bin Meng, Stefan Roese, Marek Behún, Pali Rohár,
	Ying-Chun Liu, Heiko Schocher, Alexandru Gagniuc, Simon Glass,
	Masahisa Kojima, Reuben Dowle, Andrii Anisov, u-boot

[-- Attachment #1: Type: text/plain, Size: 370 bytes --]

On Sat, Jun 12, 2021 at 01:20:07PM +0200, Heinrich Schuchardt wrote:

> Function rtc_to_tm() is needed for FAT file system support even if we don't
> have a real time clock. So move it from drivers/ to lib/.
> 
> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>

Applied to u-boot/master, thanks!

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-07-15  1:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-12 11:20 [PATCH v2 1/1] lib: move rtc-lib.c to lib Heinrich Schuchardt
2021-06-12 11:22 ` Bin Meng
2021-07-15  1:27 ` Tom Rini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.