Avoid beyond bounds copy while caching ACL
[zen-stable.git] / drivers / staging / android / timed_output.h
blobec907ab2ff5484fdfb87168b9f87ae9937582d3c
1 /* include/linux/timed_output.h
3 * Copyright (C) 2008 Google, Inc.
5 * This software is licensed under the terms of the GNU General Public
6 * License version 2, as published by the Free Software Foundation, and
7 * may be copied, distributed, and modified under those terms.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
16 #ifndef _LINUX_TIMED_OUTPUT_H
17 #define _LINUX_TIMED_OUTPUT_H
19 struct timed_output_dev {
20 const char *name;
22 /* enable the output and set the timer */
23 void (*enable)(struct timed_output_dev *sdev, int timeout);
25 /* returns the current number of milliseconds remaining on the timer */
26 int (*get_time)(struct timed_output_dev *sdev);
28 /* private data */
29 struct device *dev;
30 int index;
31 int state;
34 extern int timed_output_dev_register(struct timed_output_dev *dev);
35 extern void timed_output_dev_unregister(struct timed_output_dev *dev);
37 #endif