diff options
author | venu byravarasu <vbyravarasu@nvidia.com> | 2011-04-18 14:49:22 +0530 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2011-04-26 15:55:52 -0700 |
commit | e421d8e8771e4c6698761a5408bf7fe68a6efc8f (patch) | |
tree | 29e6c764a53222c634d4f50dae39f7f209194978 /include | |
parent | eee725de1119955fa792c8542b63a0d619745744 (diff) |
rtc: tps6591x: setting default date & time
Following changes are done:
1. Set default date, if platform data is incorrect.
2. Added an offset to adjust the RTC time to show
the correct date in the time stamp.
Original-Change-Id: I69d9632a3db4a64b61f68bf84098fd00cb95bed7
Reviewed-on: http://git-master/r/27761
Tested-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Change-Id: I875005353c75567821f0497a4ee47dc087d8e322
Diffstat (limited to 'include')
-rwxr-xr-x | include/linux/mfd/tps6591x.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/mfd/tps6591x.h b/include/linux/mfd/tps6591x.h index b88044d35fb6..2aaaef941232 100755 --- a/include/linux/mfd/tps6591x.h +++ b/include/linux/mfd/tps6591x.h @@ -23,6 +23,8 @@ #ifndef __LINUX_MFD_TPS6591X_H #define __LINUX_MFD_TPS6591X_H +#include <linux/rtc.h> + #define tps6591x_rails(_name) "tps6591x_"#_name enum { @@ -75,6 +77,7 @@ struct tps6591x_subdev_info { struct tps6591x_rtc_platform_data { int irq; + struct rtc_time time; }; struct tps6591x_platform_data { |