PageRenderTime 86ms CodeModel.GetById 63ms app.highlight 1ms RepoModel.GetById 2ms app.codeStats 0ms

/drivers/staging/iio/magnetometer/magnet.h

https://bitbucket.org/cyanogenmod/android_kernel_asus_tf300t
C Header | 31 lines | 19 code | 11 blank | 1 comment | 0 complexity | 425fa7b8e4fe46619b3728fb9329a43c MD5 | raw file
Possible License(s): LGPL-2.0, AGPL-1.0, GPL-2.0
 1
 2#include "../sysfs.h"
 3
 4/* Magnetometer types of attribute */
 5
 6#define IIO_DEV_ATTR_MAGN_X_OFFSET(_mode, _show, _store, _addr)	\
 7	IIO_DEVICE_ATTR(magn_x_offset, _mode, _show, _store, _addr)
 8
 9#define IIO_DEV_ATTR_MAGN_Y_OFFSET(_mode, _show, _store, _addr)	\
10	IIO_DEVICE_ATTR(magn_y_offset, _mode, _show, _store, _addr)
11
12#define IIO_DEV_ATTR_MAGN_Z_OFFSET(_mode, _show, _store, _addr)	\
13	IIO_DEVICE_ATTR(magn_z_offset, _mode, _show, _store, _addr)
14
15#define IIO_DEV_ATTR_MAGN_X_SCALE(_mode, _show, _store, _addr)		\
16	IIO_DEVICE_ATTR(magn_x_scale, _mode, _show, _store, _addr)
17
18#define IIO_DEV_ATTR_MAGN_Y_SCALE(_mode, _show, _store, _addr)		\
19	IIO_DEVICE_ATTR(magn_y_scale, _mode, _show, _store, _addr)
20
21#define IIO_DEV_ATTR_MAGN_Z_SCALE(_mode, _show, _store, _addr)		\
22	IIO_DEVICE_ATTR(magn_z_scale, _mode, _show, _store, _addr)
23
24#define IIO_DEV_ATTR_MAGN_X(_show, _addr)				\
25	IIO_DEVICE_ATTR(magn_x_raw, S_IRUGO, _show, NULL, _addr)
26
27#define IIO_DEV_ATTR_MAGN_Y(_show, _addr)				\
28	IIO_DEVICE_ATTR(magn_y_raw, S_IRUGO, _show, NULL, _addr)
29
30#define IIO_DEV_ATTR_MAGN_Z(_show, _addr)				\
31	IIO_DEVICE_ATTR(magn_z_raw, S_IRUGO, _show, NULL, _addr)