diff options
Diffstat (limited to 'include/linux/als_notify.h')
| -rw-r--r-- | include/linux/als_notify.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/als_notify.h b/include/linux/als_notify.h index 6cde49e2fe4..1c35ca54727 100644 --- a/include/linux/als_notify.h +++ b/include/linux/als_notify.h @@ -19,6 +19,15 @@ #ifdef __KERNEL__ +#ifndef UINT16_MAX +#define UINT16_MAX (65535U) +#endif + +enum als_state { + ALS_ENABLED = (UINT16_MAX + 1), + ALS_DISABLED +}; + extern void als_register_notify(struct notifier_block *nb); extern void als_unregister_notify(struct notifier_block *nb); extern void als_notify_subscriber(unsigned long event); |