Linux IIO development
 help / color / mirror / Atom feed
* [PATCH v4] iio: st-accel: add support for lis2dh12
@ 2015-11-12  7:36 Giuseppe Barba
  2015-11-12  7:49 ` Denis Ciocca
  2015-11-12  8:25 ` Daniel Baluta
  0 siblings, 2 replies; 4+ messages in thread
From: Giuseppe Barba @ 2015-11-12  7:36 UTC (permalink / raw)
  To: denis.ciocca, linux-iio, daniel.baluta; +Cc: jic23, Giuseppe Barba

This commit add support for STMicroelectronics lis2dh12 accelerometer.
Datasheet for this device can be found here:

http://www.st.com/st-web-ui/static/active/en/resource/technical/
document/datasheet/DM00091513.pdf

Signed-off-by: Giuseppe Barba <giuseppe.barba@st.com>
---
 Documentation/devicetree/bindings/iio/st-sensors.txt | 1 +
 drivers/iio/accel/Kconfig                            | 2 +-
 drivers/iio/accel/st_accel.h                         | 1 +
 drivers/iio/accel/st_accel_core.c                    | 1 +
 drivers/iio/accel/st_accel_i2c.c                     | 5 +++++
 drivers/iio/accel/st_accel_spi.c                     | 1 +
 6 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/iio/st-sensors.txt b/Documentation/devicetree/bindings/iio/st-sensors.txt
index d3ccdb1..d4b87cc 100644
--- a/Documentation/devicetree/bindings/iio/st-sensors.txt
+++ b/Documentation/devicetree/bindings/iio/st-sensors.txt
@@ -36,6 +36,7 @@ Accelerometers:
 - st,lsm303dlm-accel
 - st,lsm330-accel
 - st,lsm303agr-accel
+- st,lis2dh12-accel
 
 Gyroscopes:
 - st,l3g4200d-gyro
diff --git a/drivers/iio/accel/Kconfig b/drivers/iio/accel/Kconfig
index 87487d3..edc29b1 100644
--- a/drivers/iio/accel/Kconfig
+++ b/drivers/iio/accel/Kconfig
@@ -64,7 +64,7 @@ config IIO_ST_ACCEL_3AXIS
 	help
 	  Say yes here to build support for STMicroelectronics accelerometers:
 	  LSM303DLH, LSM303DLHC, LIS3DH, LSM330D, LSM330DL, LSM330DLC,
-	  LIS331DLH, LSM303DL, LSM303DLM, LSM330.
+	  LIS331DLH, LSM303DL, LSM303DLM, LSM330, LIS2DH12.
 
 	  This driver can also be built as a module. If so, these modules
 	  will be created:
diff --git a/drivers/iio/accel/st_accel.h b/drivers/iio/accel/st_accel.h
index 468f21f..5d4a189 100644
--- a/drivers/iio/accel/st_accel.h
+++ b/drivers/iio/accel/st_accel.h
@@ -27,6 +27,7 @@
 #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
diff --git a/drivers/iio/accel/st_accel_core.c b/drivers/iio/accel/st_accel_core.c
index dab8b76..9d973f1 100644
--- a/drivers/iio/accel/st_accel_core.c
+++ b/drivers/iio/accel/st_accel_core.c
@@ -234,6 +234,7 @@ static const struct st_sensor_settings st_accel_sensors_settings[] = {
 			[3] = LSM330DL_ACCEL_DEV_NAME,
 			[4] = LSM330DLC_ACCEL_DEV_NAME,
 			[5] = LSM303AGR_ACCEL_DEV_NAME,
+			[6] = LIS2DH12_ACCEL_DEV_NAME,
 		},
 		.ch = (struct iio_chan_spec *)st_accel_12bit_channels,
 		.odr = {
diff --git a/drivers/iio/accel/st_accel_i2c.c b/drivers/iio/accel/st_accel_i2c.c
index 8b9cc84..294a32f 100644
--- a/drivers/iio/accel/st_accel_i2c.c
+++ b/drivers/iio/accel/st_accel_i2c.c
@@ -72,6 +72,10 @@ static const struct of_device_id st_accel_of_match[] = {
 		.compatible = "st,lsm303agr-accel",
 		.data = LSM303AGR_ACCEL_DEV_NAME,
 	},
+	{
+		.compatible = "st,lis2dh12-accel",
+		.data = LIS2DH12_ACCEL_DEV_NAME,
+	},
 	{},
 };
 MODULE_DEVICE_TABLE(of, st_accel_of_match);
@@ -121,6 +125,7 @@ static const struct i2c_device_id st_accel_id_table[] = {
 	{ LSM303DLM_ACCEL_DEV_NAME },
 	{ LSM330_ACCEL_DEV_NAME },
 	{ LSM303AGR_ACCEL_DEV_NAME },
+	{ LIS2DH12_ACCEL_DEV_NAME },
 	{},
 };
 MODULE_DEVICE_TABLE(i2c, st_accel_id_table);
diff --git a/drivers/iio/accel/st_accel_spi.c b/drivers/iio/accel/st_accel_spi.c
index 54b61a3..e82bedf 100644
--- a/drivers/iio/accel/st_accel_spi.c
+++ b/drivers/iio/accel/st_accel_spi.c
@@ -58,6 +58,7 @@ static const struct spi_device_id st_accel_id_table[] = {
 	{ LSM303DLM_ACCEL_DEV_NAME },
 	{ LSM330_ACCEL_DEV_NAME },
 	{ LSM303AGR_ACCEL_DEV_NAME },
+	{ LIS2DH12_ACCEL_DEV_NAME },
 	{},
 };
 MODULE_DEVICE_TABLE(spi, st_accel_id_table);
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH v4] iio: st-accel: add support for lis2dh12
  2015-11-12  7:36 [PATCH v4] iio: st-accel: add support for lis2dh12 Giuseppe Barba
@ 2015-11-12  7:49 ` Denis Ciocca
  2015-11-12  8:25 ` Daniel Baluta
  1 sibling, 0 replies; 4+ messages in thread
From: Denis Ciocca @ 2015-11-12  7:49 UTC (permalink / raw)
  To: Giuseppe BARBA
  Cc: linux-iio@vger.kernel.org, daniel.baluta@gmail.com,
	jic23@kernel.org

Good for me.

Acked-by: Denis Ciocca <denis.ciocca@st.com>


On Thursday, November 12, 2015 08:36:49 AM Giuseppe BARBA wrote:
> This commit add support for STMicroelectronics lis2dh12 accelerometer.
> Datasheet for this device can be found here:
> 
> http://www.st.com/st-web-ui/static/active/en/resource/technical/
> document/datasheet/DM00091513.pdf
> 
> Signed-off-by: Giuseppe Barba <giuseppe.barba@st.com>
> ---
>  Documentation/devicetree/bindings/iio/st-sensors.txt | 1 +
>  drivers/iio/accel/Kconfig                            | 2 +-
>  drivers/iio/accel/st_accel.h                         | 1 +
>  drivers/iio/accel/st_accel_core.c                    | 1 +
>  drivers/iio/accel/st_accel_i2c.c                     | 5 +++++
>  drivers/iio/accel/st_accel_spi.c                     | 1 +
>  6 files changed, 10 insertions(+), 1 deletion(-)
> 
> diff --git a/Documentation/devicetree/bindings/iio/st-sensors.txt
> b/Documentation/devicetree/bindings/iio/st-sensors.txt index
> d3ccdb1..d4b87cc 100644
> --- a/Documentation/devicetree/bindings/iio/st-sensors.txt
> +++ b/Documentation/devicetree/bindings/iio/st-sensors.txt
> @@ -36,6 +36,7 @@ Accelerometers:
>  - st,lsm303dlm-accel
>  - st,lsm330-accel
>  - st,lsm303agr-accel
> +- st,lis2dh12-accel
> 
>  Gyroscopes:
>  - st,l3g4200d-gyro
> diff --git a/drivers/iio/accel/Kconfig b/drivers/iio/accel/Kconfig
> index 87487d3..edc29b1 100644
> --- a/drivers/iio/accel/Kconfig
> +++ b/drivers/iio/accel/Kconfig
> @@ -64,7 +64,7 @@ config IIO_ST_ACCEL_3AXIS
>  	help
>  	  Say yes here to build support for STMicroelectronics accelerometers:
>  	  LSM303DLH, LSM303DLHC, LIS3DH, LSM330D, LSM330DL, LSM330DLC,
> -	  LIS331DLH, LSM303DL, LSM303DLM, LSM330.
> +	  LIS331DLH, LSM303DL, LSM303DLM, LSM330, LIS2DH12.
> 
>  	  This driver can also be built as a module. If so, these modules
>  	  will be created:
> diff --git a/drivers/iio/accel/st_accel.h b/drivers/iio/accel/st_accel.h
> index 468f21f..5d4a189 100644
> --- a/drivers/iio/accel/st_accel.h
> +++ b/drivers/iio/accel/st_accel.h
> @@ -27,6 +27,7 @@
>  #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
> diff --git a/drivers/iio/accel/st_accel_core.c
> b/drivers/iio/accel/st_accel_core.c index dab8b76..9d973f1 100644
> --- a/drivers/iio/accel/st_accel_core.c
> +++ b/drivers/iio/accel/st_accel_core.c
> @@ -234,6 +234,7 @@ static const struct st_sensor_settings
> st_accel_sensors_settings[] = { [3] = LSM330DL_ACCEL_DEV_NAME,
>  			[4] = LSM330DLC_ACCEL_DEV_NAME,
>  			[5] = LSM303AGR_ACCEL_DEV_NAME,
> +			[6] = LIS2DH12_ACCEL_DEV_NAME,
>  		},
>  		.ch = (struct iio_chan_spec *)st_accel_12bit_channels,
>  		.odr = {
> diff --git a/drivers/iio/accel/st_accel_i2c.c
> b/drivers/iio/accel/st_accel_i2c.c index 8b9cc84..294a32f 100644
> --- a/drivers/iio/accel/st_accel_i2c.c
> +++ b/drivers/iio/accel/st_accel_i2c.c
> @@ -72,6 +72,10 @@ static const struct of_device_id st_accel_of_match[] = {
>  		.compatible = "st,lsm303agr-accel",
>  		.data = LSM303AGR_ACCEL_DEV_NAME,
>  	},
> +	{
> +		.compatible = "st,lis2dh12-accel",
> +		.data = LIS2DH12_ACCEL_DEV_NAME,
> +	},
>  	{},
>  };
>  MODULE_DEVICE_TABLE(of, st_accel_of_match);
> @@ -121,6 +125,7 @@ static const struct i2c_device_id st_accel_id_table[] =
> { { LSM303DLM_ACCEL_DEV_NAME },
>  	{ LSM330_ACCEL_DEV_NAME },
>  	{ LSM303AGR_ACCEL_DEV_NAME },
> +	{ LIS2DH12_ACCEL_DEV_NAME },
>  	{},
>  };
>  MODULE_DEVICE_TABLE(i2c, st_accel_id_table);
> diff --git a/drivers/iio/accel/st_accel_spi.c
> b/drivers/iio/accel/st_accel_spi.c index 54b61a3..e82bedf 100644
> --- a/drivers/iio/accel/st_accel_spi.c
> +++ b/drivers/iio/accel/st_accel_spi.c
> @@ -58,6 +58,7 @@ static const struct spi_device_id st_accel_id_table[] = {
>  	{ LSM303DLM_ACCEL_DEV_NAME },
>  	{ LSM330_ACCEL_DEV_NAME },
>  	{ LSM303AGR_ACCEL_DEV_NAME },
> +	{ LIS2DH12_ACCEL_DEV_NAME },
>  	{},
>  };
>  MODULE_DEVICE_TABLE(spi, st_accel_id_table);


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH v4] iio: st-accel: add support for lis2dh12
  2015-11-12  7:36 [PATCH v4] iio: st-accel: add support for lis2dh12 Giuseppe Barba
  2015-11-12  7:49 ` Denis Ciocca
@ 2015-11-12  8:25 ` Daniel Baluta
  2015-11-14 19:06   ` Jonathan Cameron
  1 sibling, 1 reply; 4+ messages in thread
From: Daniel Baluta @ 2015-11-12  8:25 UTC (permalink / raw)
  To: Giuseppe Barba; +Cc: Denis Ciocca, linux-iio@vger.kernel.org, Jonathan Cameron

On Thu, Nov 12, 2015 at 9:36 AM, Giuseppe Barba <giuseppe.barba@st.com> wrote:
> This commit add support for STMicroelectronics lis2dh12 accelerometer.
> Datasheet for this device can be found here:
>
> http://www.st.com/st-web-ui/static/active/en/resource/technical/
> document/datasheet/DM00091513.pdf
>
> Signed-off-by: Giuseppe Barba <giuseppe.barba@st.com>

Acked-by: Daniel Baluta <daniel.baluta@intel.com>

> ---
>  Documentation/devicetree/bindings/iio/st-sensors.txt | 1 +
>  drivers/iio/accel/Kconfig                            | 2 +-
>  drivers/iio/accel/st_accel.h                         | 1 +
>  drivers/iio/accel/st_accel_core.c                    | 1 +
>  drivers/iio/accel/st_accel_i2c.c                     | 5 +++++
>  drivers/iio/accel/st_accel_spi.c                     | 1 +
>  6 files changed, 10 insertions(+), 1 deletion(-)
>
> diff --git a/Documentation/devicetree/bindings/iio/st-sensors.txt b/Documentation/devicetree/bindings/iio/st-sensors.txt
> index d3ccdb1..d4b87cc 100644
> --- a/Documentation/devicetree/bindings/iio/st-sensors.txt
> +++ b/Documentation/devicetree/bindings/iio/st-sensors.txt
> @@ -36,6 +36,7 @@ Accelerometers:
>  - st,lsm303dlm-accel
>  - st,lsm330-accel
>  - st,lsm303agr-accel
> +- st,lis2dh12-accel
>
>  Gyroscopes:
>  - st,l3g4200d-gyro
> diff --git a/drivers/iio/accel/Kconfig b/drivers/iio/accel/Kconfig
> index 87487d3..edc29b1 100644
> --- a/drivers/iio/accel/Kconfig
> +++ b/drivers/iio/accel/Kconfig
> @@ -64,7 +64,7 @@ config IIO_ST_ACCEL_3AXIS
>         help
>           Say yes here to build support for STMicroelectronics accelerometers:
>           LSM303DLH, LSM303DLHC, LIS3DH, LSM330D, LSM330DL, LSM330DLC,
> -         LIS331DLH, LSM303DL, LSM303DLM, LSM330.
> +         LIS331DLH, LSM303DL, LSM303DLM, LSM330, LIS2DH12.
>
>           This driver can also be built as a module. If so, these modules
>           will be created:
> diff --git a/drivers/iio/accel/st_accel.h b/drivers/iio/accel/st_accel.h
> index 468f21f..5d4a189 100644
> --- a/drivers/iio/accel/st_accel.h
> +++ b/drivers/iio/accel/st_accel.h
> @@ -27,6 +27,7 @@
>  #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
> diff --git a/drivers/iio/accel/st_accel_core.c b/drivers/iio/accel/st_accel_core.c
> index dab8b76..9d973f1 100644
> --- a/drivers/iio/accel/st_accel_core.c
> +++ b/drivers/iio/accel/st_accel_core.c
> @@ -234,6 +234,7 @@ static const struct st_sensor_settings st_accel_sensors_settings[] = {
>                         [3] = LSM330DL_ACCEL_DEV_NAME,
>                         [4] = LSM330DLC_ACCEL_DEV_NAME,
>                         [5] = LSM303AGR_ACCEL_DEV_NAME,
> +                       [6] = LIS2DH12_ACCEL_DEV_NAME,
>                 },
>                 .ch = (struct iio_chan_spec *)st_accel_12bit_channels,
>                 .odr = {
> diff --git a/drivers/iio/accel/st_accel_i2c.c b/drivers/iio/accel/st_accel_i2c.c
> index 8b9cc84..294a32f 100644
> --- a/drivers/iio/accel/st_accel_i2c.c
> +++ b/drivers/iio/accel/st_accel_i2c.c
> @@ -72,6 +72,10 @@ static const struct of_device_id st_accel_of_match[] = {
>                 .compatible = "st,lsm303agr-accel",
>                 .data = LSM303AGR_ACCEL_DEV_NAME,
>         },
> +       {
> +               .compatible = "st,lis2dh12-accel",
> +               .data = LIS2DH12_ACCEL_DEV_NAME,
> +       },
>         {},
>  };
>  MODULE_DEVICE_TABLE(of, st_accel_of_match);
> @@ -121,6 +125,7 @@ static const struct i2c_device_id st_accel_id_table[] = {
>         { LSM303DLM_ACCEL_DEV_NAME },
>         { LSM330_ACCEL_DEV_NAME },
>         { LSM303AGR_ACCEL_DEV_NAME },
> +       { LIS2DH12_ACCEL_DEV_NAME },
>         {},
>  };
>  MODULE_DEVICE_TABLE(i2c, st_accel_id_table);
> diff --git a/drivers/iio/accel/st_accel_spi.c b/drivers/iio/accel/st_accel_spi.c
> index 54b61a3..e82bedf 100644
> --- a/drivers/iio/accel/st_accel_spi.c
> +++ b/drivers/iio/accel/st_accel_spi.c
> @@ -58,6 +58,7 @@ static const struct spi_device_id st_accel_id_table[] = {
>         { LSM303DLM_ACCEL_DEV_NAME },
>         { LSM330_ACCEL_DEV_NAME },
>         { LSM303AGR_ACCEL_DEV_NAME },
> +       { LIS2DH12_ACCEL_DEV_NAME },
>         {},
>  };
>  MODULE_DEVICE_TABLE(spi, st_accel_id_table);
> --
> 1.9.1
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH v4] iio: st-accel: add support for lis2dh12
  2015-11-12  8:25 ` Daniel Baluta
@ 2015-11-14 19:06   ` Jonathan Cameron
  0 siblings, 0 replies; 4+ messages in thread
From: Jonathan Cameron @ 2015-11-14 19:06 UTC (permalink / raw)
  To: Daniel Baluta, Giuseppe Barba; +Cc: Denis Ciocca, linux-iio@vger.kernel.org

On 12/11/15 08:25, Daniel Baluta wrote:
> On Thu, Nov 12, 2015 at 9:36 AM, Giuseppe Barba <giuseppe.barba@st.com> wrote:
>> This commit add support for STMicroelectronics lis2dh12 accelerometer.
>> Datasheet for this device can be found here:
>>
>> http://www.st.com/st-web-ui/static/active/en/resource/technical/
>> document/datasheet/DM00091513.pdf
>>
>> Signed-off-by: Giuseppe Barba <giuseppe.barba@st.com>
> 
> Acked-by: Daniel Baluta <daniel.baluta@intel.com>
Applied to the togreg branch of iio.git and pushed out as testing for
the autobuilders to play.
> 
>> ---
>>  Documentation/devicetree/bindings/iio/st-sensors.txt | 1 +
>>  drivers/iio/accel/Kconfig                            | 2 +-
>>  drivers/iio/accel/st_accel.h                         | 1 +
>>  drivers/iio/accel/st_accel_core.c                    | 1 +
>>  drivers/iio/accel/st_accel_i2c.c                     | 5 +++++
>>  drivers/iio/accel/st_accel_spi.c                     | 1 +
>>  6 files changed, 10 insertions(+), 1 deletion(-)
>>
>> diff --git a/Documentation/devicetree/bindings/iio/st-sensors.txt b/Documentation/devicetree/bindings/iio/st-sensors.txt
>> index d3ccdb1..d4b87cc 100644
>> --- a/Documentation/devicetree/bindings/iio/st-sensors.txt
>> +++ b/Documentation/devicetree/bindings/iio/st-sensors.txt
>> @@ -36,6 +36,7 @@ Accelerometers:
>>  - st,lsm303dlm-accel
>>  - st,lsm330-accel
>>  - st,lsm303agr-accel
>> +- st,lis2dh12-accel
>>
>>  Gyroscopes:
>>  - st,l3g4200d-gyro
>> diff --git a/drivers/iio/accel/Kconfig b/drivers/iio/accel/Kconfig
>> index 87487d3..edc29b1 100644
>> --- a/drivers/iio/accel/Kconfig
>> +++ b/drivers/iio/accel/Kconfig
>> @@ -64,7 +64,7 @@ config IIO_ST_ACCEL_3AXIS
>>         help
>>           Say yes here to build support for STMicroelectronics accelerometers:
>>           LSM303DLH, LSM303DLHC, LIS3DH, LSM330D, LSM330DL, LSM330DLC,
>> -         LIS331DLH, LSM303DL, LSM303DLM, LSM330.
>> +         LIS331DLH, LSM303DL, LSM303DLM, LSM330, LIS2DH12.
>>
>>           This driver can also be built as a module. If so, these modules
>>           will be created:
>> diff --git a/drivers/iio/accel/st_accel.h b/drivers/iio/accel/st_accel.h
>> index 468f21f..5d4a189 100644
>> --- a/drivers/iio/accel/st_accel.h
>> +++ b/drivers/iio/accel/st_accel.h
>> @@ -27,6 +27,7 @@
>>  #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
>> diff --git a/drivers/iio/accel/st_accel_core.c b/drivers/iio/accel/st_accel_core.c
>> index dab8b76..9d973f1 100644
>> --- a/drivers/iio/accel/st_accel_core.c
>> +++ b/drivers/iio/accel/st_accel_core.c
>> @@ -234,6 +234,7 @@ static const struct st_sensor_settings st_accel_sensors_settings[] = {
>>                         [3] = LSM330DL_ACCEL_DEV_NAME,
>>                         [4] = LSM330DLC_ACCEL_DEV_NAME,
>>                         [5] = LSM303AGR_ACCEL_DEV_NAME,
>> +                       [6] = LIS2DH12_ACCEL_DEV_NAME,
>>                 },
>>                 .ch = (struct iio_chan_spec *)st_accel_12bit_channels,
>>                 .odr = {
>> diff --git a/drivers/iio/accel/st_accel_i2c.c b/drivers/iio/accel/st_accel_i2c.c
>> index 8b9cc84..294a32f 100644
>> --- a/drivers/iio/accel/st_accel_i2c.c
>> +++ b/drivers/iio/accel/st_accel_i2c.c
>> @@ -72,6 +72,10 @@ static const struct of_device_id st_accel_of_match[] = {
>>                 .compatible = "st,lsm303agr-accel",
>>                 .data = LSM303AGR_ACCEL_DEV_NAME,
>>         },
>> +       {
>> +               .compatible = "st,lis2dh12-accel",
>> +               .data = LIS2DH12_ACCEL_DEV_NAME,
>> +       },
>>         {},
>>  };
>>  MODULE_DEVICE_TABLE(of, st_accel_of_match);
>> @@ -121,6 +125,7 @@ static const struct i2c_device_id st_accel_id_table[] = {
>>         { LSM303DLM_ACCEL_DEV_NAME },
>>         { LSM330_ACCEL_DEV_NAME },
>>         { LSM303AGR_ACCEL_DEV_NAME },
>> +       { LIS2DH12_ACCEL_DEV_NAME },
>>         {},
>>  };
>>  MODULE_DEVICE_TABLE(i2c, st_accel_id_table);
>> diff --git a/drivers/iio/accel/st_accel_spi.c b/drivers/iio/accel/st_accel_spi.c
>> index 54b61a3..e82bedf 100644
>> --- a/drivers/iio/accel/st_accel_spi.c
>> +++ b/drivers/iio/accel/st_accel_spi.c
>> @@ -58,6 +58,7 @@ static const struct spi_device_id st_accel_id_table[] = {
>>         { LSM303DLM_ACCEL_DEV_NAME },
>>         { LSM330_ACCEL_DEV_NAME },
>>         { LSM303AGR_ACCEL_DEV_NAME },
>> +       { LIS2DH12_ACCEL_DEV_NAME },
>>         {},
>>  };
>>  MODULE_DEVICE_TABLE(spi, st_accel_id_table);
>> --
>> 1.9.1
>>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-iio" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-11-14 19:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-12  7:36 [PATCH v4] iio: st-accel: add support for lis2dh12 Giuseppe Barba
2015-11-12  7:49 ` Denis Ciocca
2015-11-12  8:25 ` Daniel Baluta
2015-11-14 19:06   ` Jonathan Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox