android_kernel_cmhtcleo/arch/arm/mach-msm/include/mach/drv_callback.h

29 lines
864 B
C
Raw Normal View History

2010-08-27 09:19:57 +00:00
/* linux/arch/arm/mach-msm/drv_callback.h
*
* Copyright (C) 2009 HTC Corporation.
*
* 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.
*/
#include <linux/list.h>
#include <linux/spinlock.h>
struct cnf_driver {
const char *name;
int (*func) (void *);
/* configurable driver list lock */
rwlock_t cnfdrv_list_lock;
struct list_head next_drv;
};
int cnf_driver_register(struct cnf_driver *);
int cnf_driver_event(const char *, void *argu);