All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 2/4] iio/proximity: add mb12x2 driver to Kconfig and Makefile
@ 2019-02-24 16:22 Andreas Klinger
  2019-02-24 16:55 ` Andreas Färber
  2019-02-26  7:22 ` Peter Meerwald-Stadler
  0 siblings, 2 replies; 3+ messages in thread
From: Andreas Klinger @ 2019-02-24 16:22 UTC (permalink / raw)
  To: afaerber, arnd, davem, devicetree, gregkh, jic23, johan, khilman,
	knaack.h, lars, linux-iio, linux-kernel, mark.rutland,
	martin.blumenstingl, mchehab+samsung, m.othacehe, nicolas.ferre,
	pmeerw, robh+dt, robh, songqiang1304521, treding

Makefile and Kconfig: add configuration for mb12x2 ultrasonic proximity
driver

Signed-off-by: Andreas Klinger <ak@it-klinger.de>
---
 drivers/iio/proximity/Kconfig  | 11 +++++++++++
 drivers/iio/proximity/Makefile |  1 +
 2 files changed, 12 insertions(+)

diff --git a/drivers/iio/proximity/Kconfig b/drivers/iio/proximity/Kconfig
index b99367a89f81..5d57ca44e30d 100644
--- a/drivers/iio/proximity/Kconfig
+++ b/drivers/iio/proximity/Kconfig
@@ -45,6 +45,17 @@ config LIDAR_LITE_V2
 	  To compile this driver as a module, choose M here: the
 	  module will be called pulsedlight-lite-v2
 
+config MB12X2
+	tristate "MaxSonar MB12X2 family ultrasonic sensors"
+	depends on I2C
+	help
+	  Say Y to build a driver for the ultrasonic sensors of MaxSonar
+	  with i2c interface. It can be used to measure the distance of
+	  objects.
+
+	  To compile this driver as a module, choose M here: the
+	  module will be called mb12x2.
+
 config RFD77402
 	tristate "RFD77402 ToF sensor"
 	depends on I2C
diff --git a/drivers/iio/proximity/Makefile b/drivers/iio/proximity/Makefile
index 6d031f903c4c..c56b72a8be87 100644
--- a/drivers/iio/proximity/Makefile
+++ b/drivers/iio/proximity/Makefile
@@ -6,6 +6,7 @@
 # When adding new entries keep the list in alphabetical order
 obj-$(CONFIG_AS3935)		+= as3935.o
 obj-$(CONFIG_ISL29501)		+= isl29501.o
+obj-$(CONFIG_MB12X2)		+= mb12x2.o
 obj-$(CONFIG_LIDAR_LITE_V2)	+= pulsedlight-lidar-lite-v2.o
 obj-$(CONFIG_RFD77402)		+= rfd77402.o
 obj-$(CONFIG_SRF04)		+= srf04.o
-- 
2.11.0

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

* Re: [PATCH 2/4] iio/proximity: add mb12x2 driver to Kconfig and Makefile
  2019-02-24 16:22 [PATCH 2/4] iio/proximity: add mb12x2 driver to Kconfig and Makefile Andreas Klinger
@ 2019-02-24 16:55 ` Andreas Färber
  2019-02-26  7:22 ` Peter Meerwald-Stadler
  1 sibling, 0 replies; 3+ messages in thread
From: Andreas Färber @ 2019-02-24 16:55 UTC (permalink / raw)
  To: Andreas Klinger
  Cc: arnd, davem, devicetree, gregkh, jic23, johan, khilman, knaack.h,
	lars, linux-iio, linux-kernel, mark.rutland, martin.blumenstingl,
	mchehab+samsung, m.othacehe, nicolas.ferre, pmeerw, robh+dt,
	robh, songqiang1304521, treding

Am 24.02.19 um 17:22 schrieb Andreas Klinger:
> Makefile and Kconfig: add configuration for mb12x2 ultrasonic proximity
> driver
> 
> Signed-off-by: Andreas Klinger <ak@it-klinger.de>
> ---
>  drivers/iio/proximity/Kconfig  | 11 +++++++++++
>  drivers/iio/proximity/Makefile |  1 +
>  2 files changed, 12 insertions(+)
> 
> diff --git a/drivers/iio/proximity/Kconfig b/drivers/iio/proximity/Kconfig
> index b99367a89f81..5d57ca44e30d 100644
> --- a/drivers/iio/proximity/Kconfig
> +++ b/drivers/iio/proximity/Kconfig
> @@ -45,6 +45,17 @@ config LIDAR_LITE_V2
>  	  To compile this driver as a module, choose M here: the
>  	  module will be called pulsedlight-lite-v2
>  
> +config MB12X2
> +	tristate "MaxSonar MB12X2 family ultrasonic sensors"
> +	depends on I2C
> +	help
> +	  Say Y to build a driver for the ultrasonic sensors of MaxSonar
> +	  with i2c interface. It can be used to measure the distance of
> +	  objects.
> +
> +	  To compile this driver as a module, choose M here: the
> +	  module will be called mb12x2.
> +
>  config RFD77402
>  	tristate "RFD77402 ToF sensor"
>  	depends on I2C
> diff --git a/drivers/iio/proximity/Makefile b/drivers/iio/proximity/Makefile
> index 6d031f903c4c..c56b72a8be87 100644
> --- a/drivers/iio/proximity/Makefile
> +++ b/drivers/iio/proximity/Makefile
> @@ -6,6 +6,7 @@
>  # When adding new entries keep the list in alphabetical order
>  obj-$(CONFIG_AS3935)		+= as3935.o
>  obj-$(CONFIG_ISL29501)		+= isl29501.o
> +obj-$(CONFIG_MB12X2)		+= mb12x2.o

This commit will fail to build, as you add the source file only in 3/4.
It needs to be in this patch.

Regards,
Andreas

>  obj-$(CONFIG_LIDAR_LITE_V2)	+= pulsedlight-lidar-lite-v2.o
>  obj-$(CONFIG_RFD77402)		+= rfd77402.o
>  obj-$(CONFIG_SRF04)		+= srf04.o
> 


-- 
SUSE Linux GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Felix Imendörffer, Jane Smithard, Graham Norton
HRB 21284 (AG Nürnberg)

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

* Re: [PATCH 2/4] iio/proximity: add mb12x2 driver to Kconfig and Makefile
  2019-02-24 16:22 [PATCH 2/4] iio/proximity: add mb12x2 driver to Kconfig and Makefile Andreas Klinger
  2019-02-24 16:55 ` Andreas Färber
@ 2019-02-26  7:22 ` Peter Meerwald-Stadler
  1 sibling, 0 replies; 3+ messages in thread
From: Peter Meerwald-Stadler @ 2019-02-26  7:22 UTC (permalink / raw)
  To: Andreas Klinger; +Cc: jic23, linux-iio, linux-kernel

On Sun, 24 Feb 2019, Andreas Klinger wrote:

> Makefile and Kconfig: add configuration for mb12x2 ultrasonic proximity
> driver
> 

> diff --git a/drivers/iio/proximity/Makefile b/drivers/iio/proximity/Makefile
> index 6d031f903c4c..c56b72a8be87 100644
> --- a/drivers/iio/proximity/Makefile
> +++ b/drivers/iio/proximity/Makefile
> @@ -6,6 +6,7 @@
>  # When adding new entries keep the list in alphabetical order
>  obj-$(CONFIG_AS3935)		+= as3935.o
>  obj-$(CONFIG_ISL29501)		+= isl29501.o
> +obj-$(CONFIG_MB12X2)		+= mb12x2.o

alphabetic order please

>  obj-$(CONFIG_LIDAR_LITE_V2)	+= pulsedlight-lidar-lite-v2.o
>  obj-$(CONFIG_RFD77402)		+= rfd77402.o
>  obj-$(CONFIG_SRF04)		+= srf04.o
> 

-- 

Peter Meerwald-Stadler
Mobile: +43 664 24 44 418

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

end of thread, other threads:[~2019-02-26  7:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-24 16:22 [PATCH 2/4] iio/proximity: add mb12x2 driver to Kconfig and Makefile Andreas Klinger
2019-02-24 16:55 ` Andreas Färber
2019-02-26  7:22 ` Peter Meerwald-Stadler

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.