#include <linux/device.h>
#include <linux/kernel.h>
#include <linux/spi/spi.h>
#include <linux/sysfs.h>
#include <linux/slab.h>
#include <linux/module.h>
#include <linux/iio/iio.h>
#include <linux/iio/sysfs.h>
Go to the source code of this file.
#define KXSD9_ACCEL_CHAN |
( |
|
axis | ) |
|
Value:{ \
.modified = 1, \
.channel2 = IIO_MOD_##axis, \
IIO_CHAN_INFO_SCALE_SHARED_BIT, \
.address = KXSD9_REG_##axis, \
}
Definition at line 179 of file kxsd9.c.
#define KXSD9_FS_MASK 0x03 |
#define KXSD9_READ |
( |
|
a | ) |
(0x80 | (a)) |
#define KXSD9_REG_AUX 0x06 |
#define KXSD9_REG_CTRL_A 0x0e |
#define KXSD9_REG_CTRL_B 0x0d |
#define KXSD9_REG_CTRL_C 0x0c |
#define KXSD9_REG_RESET 0x0a |
#define KXSD9_SCALE_2G "0.011978" |
#define KXSD9_SCALE_4G "0.023927" |
#define KXSD9_SCALE_6G "0.035934" |
#define KXSD9_SCALE_8G "0.047853" |
#define KXSD9_STATE_RX_SIZE 2 |
#define KXSD9_STATE_TX_SIZE 2 |
#define KXSD9_WRITE |
( |
|
a | ) |
(a) |
MODULE_DESCRIPTION |
( |
"Kionix KXSD9 SPI driver" |
| ) |
|
MODULE_DEVICE_TABLE |
( |
spi |
, |
|
|
kxsd9_id |
|
|
) |
| |
MODULE_LICENSE |
( |
"GPL v2" |
| ) |
|
module_spi_driver |
( |
kxsd9_driver |
| ) |
|