Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 289074
b: refs/heads/master
c: 2157f89
h: refs/heads/master
v: v3
  • Loading branch information
John Stultz authored and Greg Kroah-Hartman committed Feb 10, 2012
1 parent 3078195 commit 7d1b540
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7f9b98a39bdd12db051514eb0daff689c34b8b4e
refs/heads/master: 2157f896774ace6e98c851878f8089fb861502e2
9 changes: 9 additions & 0 deletions trunk/drivers/staging/android/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,15 @@ config ANDROID_INTF_ALARM_DEV
help
Exports the alarm interface to user-space.

config ANDROID_ALARM_OLDDRV_COMPAT
bool "Android Alarm compatability with old drivers"
depends on ANDROID_INTF_ALARM
default n
help
Provides preprocessor alias to aid compatability with
older out-of-tree drivers that use the Android Alarm
in-kernel API. This will be removed eventually.

endif # if ANDROID

endmenu
14 changes: 14 additions & 0 deletions trunk/drivers/staging/android/android_alarm.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,20 @@ ktime_t alarm_get_elapsed_realtime(void);
/* set rtc while preserving elapsed realtime */
int android_alarm_set_rtc(const struct timespec ts);

#ifdef CONFIG_ANDROID_ALARM_OLDDRV_COMPAT
/*
* Some older drivers depend on the old API,
* so provide compatability macros for now.
*/
#define alarm android_alarm
#define alarm_init(x, y, z) android_alarm_init(x, y, z)
#define alarm_start_range(x, y, z) android_alarm_start_range(x, y, z)
#define alarm_try_to_cancel(x) android_alarm_try_to_cancel(x)
#define alarm_cancel(x) android_alarm_cancel(x)
#define alarm_set_rtc(x) android_alarm_set_rtc(x)
#endif


#endif

enum android_alarm_return_flags {
Expand Down

0 comments on commit 7d1b540

Please sign in to comment.