Re: [PATCH] staging: iio: add lsm303dlh magnetometer driver

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

 



Hi Srinidhi,

On Mon, Apr 9, 2012 at 5:04 PM, Srinidhi KASAGAR
<srinidhi.kasagar@xxxxxxxxxxxxxx> wrote:
> Add support for lsm303dlh magnetometer device.
>
> Signed-off-by: srinidhi kasagar <srinidhi.kasagar@xxxxxxxxxxxxxx>
> Acked-by: Linus Walleij <linus.walleij@xxxxxxxxxx>
> ---
>  drivers/staging/iio/magnetometer/Kconfig     |   10 +
>  drivers/staging/iio/magnetometer/Makefile    |    1 +
>  drivers/staging/iio/magnetometer/lsm303dlh.c |  803 ++++++++++++++++++++++++++
>  3 files changed, 814 insertions(+), 0 deletions(-)
>  create mode 100644 drivers/staging/iio/magnetometer/lsm303dlh.c
>
> diff --git a/drivers/staging/iio/magnetometer/Kconfig b/drivers/staging/iio/magnetometer/Kconfig
> index 722c4e1..840eaba 100644
> --- a/drivers/staging/iio/magnetometer/Kconfig
> +++ b/drivers/staging/iio/magnetometer/Kconfig
> @@ -24,4 +24,14 @@ config SENSORS_HMC5843
>          To compile this driver as a module, choose M here: the module
>          will be called hmc5843
>
> +config SENSORS_LSM303DLH
> +       tristate "STMicroelectronics LSM303DLH 3-Axis Magnetometer"
> +       depends on I2C
> +       help
> +         Say Y here to add support for the STMicroelectronics
> +         LSM303DLH 3-Axis Magnetometer.
> +
> +         To compile this driver as a module, choose M here: the module
> +         will be called lsm303dlh.
> +
>  endmenu
> diff --git a/drivers/staging/iio/magnetometer/Makefile b/drivers/staging/iio/magnetometer/Makefile
> index f2a753f..e09007b 100644
> --- a/drivers/staging/iio/magnetometer/Makefile
> +++ b/drivers/staging/iio/magnetometer/Makefile
> @@ -4,3 +4,4 @@
>
>  obj-$(CONFIG_SENSORS_AK8975)   += ak8975.o
>  obj-$(CONFIG_SENSORS_HMC5843)  += hmc5843.o
> +obj-$(CONFIG_SENSORS_LSM303DLH)        += lsm303dlh.o
> diff --git a/drivers/staging/iio/magnetometer/lsm303dlh.c b/drivers/staging/iio/magnetometer/lsm303dlh.c
> new file mode 100644
> index 0000000..4b23083
> --- /dev/null
> +++ b/drivers/staging/iio/magnetometer/lsm303dlh.c
> @@ -0,0 +1,803 @@
> +/*
> + * Copyright (C) ST-Ericsson SA 2012
> + * License Terms: GNU General Public License, version 2
> + *
> + * This code is mostly based on hmc5843 driver
> + *

How different is it from the hmc5843 driver Can we add support in the
hmc driver itself?
--
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