Switch from per-driver to common definition of bin2bcd and bcd2bin
Signed-off-by: Albin Tonnerre <albin.tonnerre@free-electrons.com> Acked-by: Stefan Roese <sr@denx.de>
This commit is contained in:

committed by
Wolfgang Denk

parent
e84aba135e
commit
885fc78c28
@@ -27,6 +27,11 @@
|
||||
#ifndef _RTC_H_
|
||||
#define _RTC_H_
|
||||
|
||||
/* bcd<->bin functions are needed by almost all the RTC drivers, let's include
|
||||
* it there instead of in evey single driver */
|
||||
|
||||
#include <bcd.h>
|
||||
|
||||
/*
|
||||
* The struct used to pass data from the generic interface code to
|
||||
* the hardware dependend low-level code ande vice versa. Identical
|
||||
|
Reference in New Issue
Block a user