![Greg Kroah-Hartman](/assets/img/avatar_default.png)
This reverts commit b0a0ccfad8
.
Turns out I was wrong, we want these in the tree.
Note, I've disabled the drivers from the build at the moment, so other
patches can be applied to fix some build issues due to internal api
changes since the code was removed from the tree.
Cc: Arve Hjønnevåg <arve@android.com>
Cc: Brian Swetland <swetland@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
38 lines
1.1 KiB
C
38 lines
1.1 KiB
C
/* include/linux/timed_output.h
|
|
*
|
|
* Copyright (C) 2008 Google, Inc.
|
|
*
|
|
* This software is licensed under the terms of the GNU General Public
|
|
* License version 2, as published by the Free Software Foundation, and
|
|
* may be copied, distributed, and modified under those terms.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
*/
|
|
|
|
#ifndef _LINUX_TIMED_OUTPUT_H
|
|
#define _LINUX_TIMED_OUTPUT_H
|
|
|
|
struct timed_output_dev {
|
|
const char *name;
|
|
|
|
/* enable the output and set the timer */
|
|
void (*enable)(struct timed_output_dev *sdev, int timeout);
|
|
|
|
/* returns the current number of milliseconds remaining on the timer */
|
|
int (*get_time)(struct timed_output_dev *sdev);
|
|
|
|
/* private data */
|
|
struct device *dev;
|
|
int index;
|
|
int state;
|
|
};
|
|
|
|
extern int timed_output_dev_register(struct timed_output_dev *dev);
|
|
extern void timed_output_dev_unregister(struct timed_output_dev *dev);
|
|
|
|
#endif
|