Files
rockchip-kernel/include/linux/gpio_detection.h
Andy Yan 827d434d93 misc: add gpio-detection driver
This driver is used to detect ACC and car reverse signal
on vehicle system

Change-Id: I45972556b9b6dcb35737b60c1210c40a5af8d12b
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
2016-08-29 14:59:23 +08:00

21 lines
402 B
C

#ifndef __GPIO_DETECTION_H
#define __GPIO_DETECTION_H
#define GPIO_EVENT 1
/*
* gpio event
* @val: 0 event active, 1 event over
* @name: event name
*/
struct gpio_event {
int val;
const char *name;
};
int gpio_det_register_notifier(struct notifier_block *nb);
int gpio_det_unregister_notifier(struct notifier_block *nb);
int gpio_det_notifier_call_chain(unsigned long val, void *v);
#endif