include:linux:p_d:stm: add missing platform data file for lis2ds12 driver
Signed-off-by: Denis Ciocca <denis.ciocca@st.com> Change-Id: I4753f38435dcd06e12f05e0edae966dddced31a8 Reviewed-on: https://sczcxd1104.scz.st.com/gerrit/c/linux/stm-ldd-iio/+/651 Tested-by: CI STM MSD <aosp-ger@st.com>
This commit is contained in:
parent
bbfee1973c
commit
d55fe0e4b8
@ -14,9 +14,7 @@
|
||||
#include <linux/types.h>
|
||||
#include <linux/iio/iio.h>
|
||||
#include <linux/iio/trigger.h>
|
||||
#ifndef CONFIG_OF
|
||||
#include <linux/platform_data/lis2ds12.h>
|
||||
#endif
|
||||
#include <linux/platform_data/stm/lis2ds12.h>
|
||||
|
||||
#define LIS2DS12_WHO_AM_I_ADDR 0x0f
|
||||
#define LIS2DS12_WHO_AM_I_DEF 0x43
|
||||
|
22
include/linux/platform_data/stm/lis2ds12.h
Normal file
22
include/linux/platform_data/stm/lis2ds12.h
Normal file
@ -0,0 +1,22 @@
|
||||
/*
|
||||
* STMicroelectronics lis2ds12 driver
|
||||
*
|
||||
* Copyright 2015 STMicroelectronics Inc.
|
||||
*
|
||||
* Giuseppe Barba <giuseppe.barba@st.com>
|
||||
*
|
||||
* Licensed under the GPL-2.
|
||||
*/
|
||||
|
||||
|
||||
#ifndef __LIS2DS12_H__
|
||||
#define __LIS2DS12_H__
|
||||
|
||||
#define LIS2DS12_DEV_NAME "lis2ds12"
|
||||
#define LIS2DS12_I2C_ADDR 0x1e
|
||||
|
||||
struct lis2ds12_platform_data {
|
||||
u8 drdy_int_pin;
|
||||
};
|
||||
|
||||
#endif /* __LIS2DS12_H__ */
|
Loading…
Reference in New Issue
Block a user