Re: [PATCH] iio: gyro: Add itg3200

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 01/29/2013 03:59 PM, Manuel Stahl wrote:
> Signed-off-by: Manuel Stahl <manuel.stahl@xxxxxxxxxxxxxxxxx>
> ---
[...]
> diff --git a/drivers/iio/Kconfig b/drivers/iio/Kconfig
> index 612073f..7b54702 100644
> --- a/drivers/iio/Kconfig
> +++ b/drivers/iio/Kconfig
> @@ -57,6 +57,7 @@ config IIO_CONSUMERS_PER_TRIGGER
>  
>  source "drivers/iio/adc/Kconfig"
>  source "drivers/iio/amplifiers/Kconfig"
> +source "drivers/iio/gyro/Kconfig"
>  source "drivers/iio/light/Kconfig"
>  source "drivers/iio/frequency/Kconfig"
>  source "drivers/iio/dac/Kconfig"
> diff --git a/drivers/iio/Makefile b/drivers/iio/Makefile
> index 34309ab..30858b5 100644
> --- a/drivers/iio/Makefile
> +++ b/drivers/iio/Makefile
> @@ -12,6 +12,7 @@ obj-$(CONFIG_IIO_KFIFO_BUF) += kfifo_buf.o
>  
>  obj-y += adc/
>  obj-y += amplifiers/
> +obj-y += gyro/
>  obj-y += light/
>  obj-y += frequency/
>  obj-y += dac/
> diff --git a/drivers/iio/gyro/Kconfig b/drivers/iio/gyro/Kconfig
> new file mode 100644
> index 0000000..185f85d
> --- /dev/null
> +++ b/drivers/iio/gyro/Kconfig
> @@ -0,0 +1,14 @@
> +#
> +# IIO Digital Gyroscope Sensor drivers configuration
> +#
> +menu "Digital gyroscope sensors"
> +
> +config ITG3200
> +	tristate "InvenSense ITG3200 Digital 3-Axis Gyroscope I2C driver"
> +	depends on I2C
> +	select IIO_TRIGGERED_BUFFER if IIO_BUFFER
> +	help
> +	  Say yes here to add support for the InvenSense ITG3200 digital
> +	  3-axis gyroscope sensor.
> +
> +endmenu
> diff --git a/drivers/iio/gyro/Makefile b/drivers/iio/gyro/Makefile
> new file mode 100644
> index 0000000..2049a5d
> --- /dev/null
> +++ b/drivers/iio/gyro/Makefile
> @@ -0,0 +1,7 @@
> +#
> +# Makefile for industrial I/O gyroscope sensor drivers
> +#
> +
> +itg3200-y               := itg3200_core.o
> +itg3200-$(CONFIG_IIO_BUFFER) += itg3200_buffer.o itg3200_trigger.o
> +obj-$(CONFIG_ITG3200)   += itg3200.o

We already have the gyro subfolder in the current IIO tree, so the changes
above won't apply cleanly.

- Lars
--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux