diff options
| author | Josh Cartwright <joshc@codeaurora.org> | 2014-04-03 17:50:13 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-04-03 19:21:23 -0400 |
| commit | 5a418558cdae4fd0699b7b6a960f03a8bb38a338 (patch) | |
| tree | 7aafafb5e5993af52b0b0014a80574a8b0f8d8d0 /include/linux/mfd | |
| parent | bffcbc0887a7496c19639d55ff0e7483ee17aa42 (diff) | |
rtc: pm8xxx: add support for devicetree
Add support for describing the PM8921/PM8058 RTC in device tree.
Additionally:
- drop support for describing the RTC using platform data,
as there are no current in tree users who do so.
- make allow_set_time a device-specific flag, instead of mucking
with the rtc_ops
Signed-off-by: Josh Cartwright <joshc@codeaurora.org>
Reviewed-by: Stephen Boyd <sboyd@codeaurora.org>
Acked-by: Lee Jones <lee.jones@linaro.org>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/mfd')
| -rw-r--r-- | include/linux/mfd/pm8xxx/rtc.h | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/include/linux/mfd/pm8xxx/rtc.h b/include/linux/mfd/pm8xxx/rtc.h deleted file mode 100644 index 14f1983eaecc..000000000000 --- a/include/linux/mfd/pm8xxx/rtc.h +++ /dev/null | |||
| @@ -1,25 +0,0 @@ | |||
| 1 | /* Copyright (c) 2010-2011, Code Aurora Forum. All rights reserved. | ||
| 2 | * | ||
| 3 | * This program is free software; you can redistribute it and/or modify | ||
| 4 | * it under the terms of the GNU General Public License version 2 and | ||
| 5 | * only version 2 as published by the Free Software Foundation. | ||
| 6 | * | ||
| 7 | * This program is distributed in the hope that it will be useful, | ||
| 8 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 9 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 10 | * GNU General Public License for more details. | ||
| 11 | */ | ||
| 12 | |||
| 13 | #ifndef __RTC_PM8XXX_H__ | ||
| 14 | #define __RTC_PM8XXX_H__ | ||
| 15 | |||
| 16 | #define PM8XXX_RTC_DEV_NAME "rtc-pm8xxx" | ||
| 17 | /** | ||
| 18 | * struct pm8xxx_rtc_pdata - RTC driver platform data | ||
| 19 | * @rtc_write_enable: variable stating RTC write capability | ||
| 20 | */ | ||
| 21 | struct pm8xxx_rtc_platform_data { | ||
| 22 | bool rtc_write_enable; | ||
| 23 | }; | ||
| 24 | |||
| 25 | #endif /* __RTC_PM8XXX_H__ */ | ||
