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:
Albin Tonnerre
2009-08-13 15:31:12 +02:00
committed by Wolfgang Denk
parent e84aba135e
commit 885fc78c28
24 changed files with 5 additions and 233 deletions

View File

@@ -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