cregit-Linux how code gets into the kernel

Release 4.7 drivers/iio/accel/st_accel.h

/*
 * STMicroelectronics accelerometers driver
 *
 * Copyright 2012-2013 STMicroelectronics Inc.
 *
 * Denis Ciocca <denis.ciocca@st.com>
 * v. 1.0.0
 * Licensed under the GPL-2.
 */

#ifndef ST_ACCEL_H

#define ST_ACCEL_H

#include <linux/types.h>
#include <linux/iio/common/st_sensors.h>


#define H3LIS331DL_DRIVER_NAME		"h3lis331dl_accel"

#define LIS3LV02DL_ACCEL_DEV_NAME	"lis3lv02dl_accel"

#define LSM303DLHC_ACCEL_DEV_NAME	"lsm303dlhc_accel"

#define LIS3DH_ACCEL_DEV_NAME		"lis3dh"

#define LSM330D_ACCEL_DEV_NAME		"lsm330d_accel"

#define LSM330DL_ACCEL_DEV_NAME		"lsm330dl_accel"

#define LSM330DLC_ACCEL_DEV_NAME	"lsm330dlc_accel"

#define LIS331DL_ACCEL_DEV_NAME		"lis331dl_accel"

#define LIS331DLH_ACCEL_DEV_NAME	"lis331dlh"

#define LSM303DL_ACCEL_DEV_NAME		"lsm303dl_accel"

#define LSM303DLH_ACCEL_DEV_NAME	"lsm303dlh_accel"

#define LSM303DLM_ACCEL_DEV_NAME	"lsm303dlm_accel"

#define LSM330_ACCEL_DEV_NAME		"lsm330_accel"

#define LSM303AGR_ACCEL_DEV_NAME	"lsm303agr_accel"

#define LIS2DH12_ACCEL_DEV_NAME		"lis2dh12_accel"

/**
* struct st_sensors_platform_data - default accel platform data
* @drdy_int_pin: default accel DRDY is available on INT1 pin.
*/

static const struct st_sensors_platform_data default_accel_pdata = {
	.drdy_int_pin = 1,
};

int st_accel_common_probe(struct iio_dev *indio_dev);
void st_accel_common_remove(struct iio_dev *indio_dev);

#ifdef CONFIG_IIO_BUFFER
int st_accel_allocate_ring(struct iio_dev *indio_dev);
void st_accel_deallocate_ring(struct iio_dev *indio_dev);
int st_accel_trig_set_state(struct iio_trigger *trig, bool state);

#define ST_ACCEL_TRIGGER_SET_STATE (&st_accel_trig_set_state)
#else /* CONFIG_IIO_BUFFER */

static inline int st_accel_allocate_ring(struct iio_dev *indio_dev) { return 0; }

Contributors

PersonTokensPropCommitsCommitProp
denis cioccadenis ciocca15100.00%1100.00%
Total15100.00%1100.00%


static inline void st_accel_deallocate_ring(struct iio_dev *indio_dev) { }

Contributors

PersonTokensPropCommitsCommitProp
denis cioccadenis ciocca11100.00%1100.00%
Total11100.00%1100.00%

#define ST_ACCEL_TRIGGER_SET_STATE NULL #endif /* CONFIG_IIO_BUFFER */ #endif /* ST_ACCEL_H */

Overall Contributors

PersonTokensPropCommitsCommitProp
denis cioccadenis ciocca16188.95%228.57%
giuseppe barbagiuseppe barba84.42%228.57%
linus walleijlinus walleij84.42%228.57%
tiberiu breanatiberiu breana42.21%114.29%
Total181100.00%7100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
{% endraw %}