aboutsummaryrefslogtreecommitdiff
path: root/include/linux/hall_sensor.h
blob: b6adec616242621aacf2687df284d74e0b442761 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/*for Hall sensor common header file*/
#ifndef __LINUX_HALL_SENSOR_H
#define __LINUX_HALL_SENSOR_H

#include <linux/notifier.h>

#define HALL_POLE_BIT  1
#define HALL_POLE_N    0
#define HALL_POLE_S    1
#define HALL_FAR       0
#define HALL_NEAR      1

extern int hallsensor_register_notifier(struct notifier_block *nb);
extern int hallsensor_unregister_notifier(struct notifier_block *nb);
extern int hallsensor_notifier_call_chain(unsigned long val, void *v);

#endif