linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] iio: chemical: atlas-ph-sensor: rename atlas-ph-sensor to atlas-sensor
@ 2019-12-16  0:00 Matt Ranostay
  2019-12-23 16:32 ` Jonathan Cameron
  0 siblings, 1 reply; 2+ messages in thread
From: Matt Ranostay @ 2019-12-16  0:00 UTC (permalink / raw)
  To: linux-iio; +Cc: jic23, Matt Ranostay

Since the orginal scope of the driver was to only support
the pH product from Atlas it has evolved to other sensors.

Rename the file, driver name, and regmap to atlas-sensor which
reflects this, although keep CONFIG_ATLAS_PH_SENSOR to not cause
regressions with current configurations.

Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
---
 drivers/iio/chemical/Makefile                          |  2 +-
 .../iio/chemical/{atlas-ph-sensor.c => atlas-sensor.c} | 10 +++++-----
 2 files changed, 6 insertions(+), 6 deletions(-)
 rename drivers/iio/chemical/{atlas-ph-sensor.c => atlas-sensor.c} (98%)

diff --git a/drivers/iio/chemical/Makefile b/drivers/iio/chemical/Makefile
index f97270bc4034..33d3a595dda9 100644
--- a/drivers/iio/chemical/Makefile
+++ b/drivers/iio/chemical/Makefile
@@ -4,7 +4,7 @@
 #
 
 # When adding new entries keep the list in alphabetical order
-obj-$(CONFIG_ATLAS_PH_SENSOR)	+= atlas-ph-sensor.o
+obj-$(CONFIG_ATLAS_PH_SENSOR)	+= atlas-sensor.o
 obj-$(CONFIG_BME680) += bme680_core.o
 obj-$(CONFIG_BME680_I2C) += bme680_i2c.o
 obj-$(CONFIG_BME680_SPI) += bme680_spi.o
diff --git a/drivers/iio/chemical/atlas-ph-sensor.c b/drivers/iio/chemical/atlas-sensor.c
similarity index 98%
rename from drivers/iio/chemical/atlas-ph-sensor.c
rename to drivers/iio/chemical/atlas-sensor.c
index 6c175eb1c7a7..8cd76d828646 100644
--- a/drivers/iio/chemical/atlas-ph-sensor.c
+++ b/drivers/iio/chemical/atlas-sensor.c
@@ -1,8 +1,8 @@
 // SPDX-License-Identifier: GPL-2.0+
 /*
- * atlas-ph-sensor.c - Support for Atlas Scientific OEM pH-SM sensor
+ * atlas-sensor.c - Support for Atlas Scientific OEM SM sensors
  *
- * Copyright (C) 2015-2018 Matt Ranostay
+ * Copyright (C) 2015-2019 Konsulko Group
  * Author: Matt Ranostay <matt.ranostay@konsulko.com>
  */
 
@@ -25,8 +25,8 @@
 #include <linux/iio/triggered_buffer.h>
 #include <linux/pm_runtime.h>
 
-#define ATLAS_REGMAP_NAME	"atlas_ph_regmap"
-#define ATLAS_DRV_NAME		"atlas_ph"
+#define ATLAS_REGMAP_NAME	"atlas_regmap"
+#define ATLAS_DRV_NAME		"atlas"
 
 #define ATLAS_REG_DEV_TYPE		0x00
 #define ATLAS_REG_DEV_VERSION		0x01
@@ -681,5 +681,5 @@ static struct i2c_driver atlas_driver = {
 module_i2c_driver(atlas_driver);
 
 MODULE_AUTHOR("Matt Ranostay <matt.ranostay@konsulko.com>");
-MODULE_DESCRIPTION("Atlas Scientific pH-SM sensor");
+MODULE_DESCRIPTION("Atlas Scientific SM sensors");
 MODULE_LICENSE("GPL");
-- 
2.20.1


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

* Re: [PATCH] iio: chemical: atlas-ph-sensor: rename atlas-ph-sensor to atlas-sensor
  2019-12-16  0:00 [PATCH] iio: chemical: atlas-ph-sensor: rename atlas-ph-sensor to atlas-sensor Matt Ranostay
@ 2019-12-23 16:32 ` Jonathan Cameron
  0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Cameron @ 2019-12-23 16:32 UTC (permalink / raw)
  To: Matt Ranostay; +Cc: linux-iio

On Sun, 15 Dec 2019 16:00:45 -0800
Matt Ranostay <matt.ranostay@konsulko.com> wrote:

> Since the orginal scope of the driver was to only support
> the pH product from Atlas it has evolved to other sensors.
> 
> Rename the file, driver name, and regmap to atlas-sensor which
> reflects this, although keep CONFIG_ATLAS_PH_SENSOR to not cause
> regressions with current configurations.
> 
> Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Seems reasonable.

Applied,

Thanks,

Jonathan

> ---
>  drivers/iio/chemical/Makefile                          |  2 +-
>  .../iio/chemical/{atlas-ph-sensor.c => atlas-sensor.c} | 10 +++++-----
>  2 files changed, 6 insertions(+), 6 deletions(-)
>  rename drivers/iio/chemical/{atlas-ph-sensor.c => atlas-sensor.c} (98%)
> 
> diff --git a/drivers/iio/chemical/Makefile b/drivers/iio/chemical/Makefile
> index f97270bc4034..33d3a595dda9 100644
> --- a/drivers/iio/chemical/Makefile
> +++ b/drivers/iio/chemical/Makefile
> @@ -4,7 +4,7 @@
>  #
>  
>  # When adding new entries keep the list in alphabetical order
> -obj-$(CONFIG_ATLAS_PH_SENSOR)	+= atlas-ph-sensor.o
> +obj-$(CONFIG_ATLAS_PH_SENSOR)	+= atlas-sensor.o
>  obj-$(CONFIG_BME680) += bme680_core.o
>  obj-$(CONFIG_BME680_I2C) += bme680_i2c.o
>  obj-$(CONFIG_BME680_SPI) += bme680_spi.o
> diff --git a/drivers/iio/chemical/atlas-ph-sensor.c b/drivers/iio/chemical/atlas-sensor.c
> similarity index 98%
> rename from drivers/iio/chemical/atlas-ph-sensor.c
> rename to drivers/iio/chemical/atlas-sensor.c
> index 6c175eb1c7a7..8cd76d828646 100644
> --- a/drivers/iio/chemical/atlas-ph-sensor.c
> +++ b/drivers/iio/chemical/atlas-sensor.c
> @@ -1,8 +1,8 @@
>  // SPDX-License-Identifier: GPL-2.0+
>  /*
> - * atlas-ph-sensor.c - Support for Atlas Scientific OEM pH-SM sensor
> + * atlas-sensor.c - Support for Atlas Scientific OEM SM sensors
>   *
> - * Copyright (C) 2015-2018 Matt Ranostay
> + * Copyright (C) 2015-2019 Konsulko Group
>   * Author: Matt Ranostay <matt.ranostay@konsulko.com>
>   */
>  
> @@ -25,8 +25,8 @@
>  #include <linux/iio/triggered_buffer.h>
>  #include <linux/pm_runtime.h>
>  
> -#define ATLAS_REGMAP_NAME	"atlas_ph_regmap"
> -#define ATLAS_DRV_NAME		"atlas_ph"
> +#define ATLAS_REGMAP_NAME	"atlas_regmap"
> +#define ATLAS_DRV_NAME		"atlas"
>  
>  #define ATLAS_REG_DEV_TYPE		0x00
>  #define ATLAS_REG_DEV_VERSION		0x01
> @@ -681,5 +681,5 @@ static struct i2c_driver atlas_driver = {
>  module_i2c_driver(atlas_driver);
>  
>  MODULE_AUTHOR("Matt Ranostay <matt.ranostay@konsulko.com>");
> -MODULE_DESCRIPTION("Atlas Scientific pH-SM sensor");
> +MODULE_DESCRIPTION("Atlas Scientific SM sensors");
>  MODULE_LICENSE("GPL");


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

end of thread, other threads:[~2019-12-23 16:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-12-16  0:00 [PATCH] iio: chemical: atlas-ph-sensor: rename atlas-ph-sensor to atlas-sensor Matt Ranostay
2019-12-23 16:32 ` Jonathan Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).