diff mbox series

[2/6] iio: temperature: ltc2983: rename ltc2983_parse_dt()

Message ID 20240222-ltc2983-misc-improv-v1-2-cf7d4457e98c@analog.com (mailing list archive)
State Accepted
Headers show
Series iio: temperature: ltc2983: small improvements | expand

Commit Message

Nuno Sa Feb. 22, 2024, 12:55 p.m. UTC
Rename ltc2983_parse_dt() to ltc2983_parse_fw() as there's no explicit
dependency on devicetree. No functional change intended...

Signed-off-by: Nuno Sa <nuno.sa@analog.com>
---
 drivers/iio/temperature/ltc2983.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Jonathan Cameron Feb. 24, 2024, 6:32 p.m. UTC | #1
On Thu, 22 Feb 2024 13:55:53 +0100
Nuno Sa <nuno.sa@analog.com> wrote:

> Rename ltc2983_parse_dt() to ltc2983_parse_fw() as there's no explicit
> dependency on devicetree. No functional change intended...
> 
> Signed-off-by: Nuno Sa <nuno.sa@analog.com>
It thought the same whilst doing the cleanup.h series but punted it for another
day.  Seems that day has come. Applied.

> ---
>  drivers/iio/temperature/ltc2983.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/iio/temperature/ltc2983.c b/drivers/iio/temperature/ltc2983.c
> index acc631857e27..23f2d43fc040 100644
> --- a/drivers/iio/temperature/ltc2983.c
> +++ b/drivers/iio/temperature/ltc2983.c
> @@ -1346,7 +1346,7 @@ static irqreturn_t ltc2983_irq_handler(int irq, void *data)
>  	__chan; \
>  })
>  
> -static int ltc2983_parse_dt(struct ltc2983_data *st)
> +static int ltc2983_parse_fw(struct ltc2983_data *st)
>  {
>  	struct device *dev = &st->spi->dev;
>  	struct fwnode_handle *child;
> @@ -1630,7 +1630,7 @@ static int ltc2983_probe(struct spi_device *spi)
>  	st->eeprom_key = cpu_to_be32(LTC2983_EEPROM_KEY);
>  	spi_set_drvdata(spi, st);
>  
> -	ret = ltc2983_parse_dt(st);
> +	ret = ltc2983_parse_fw(st);
>  	if (ret)
>  		return ret;
>  
>
diff mbox series

Patch

diff --git a/drivers/iio/temperature/ltc2983.c b/drivers/iio/temperature/ltc2983.c
index acc631857e27..23f2d43fc040 100644
--- a/drivers/iio/temperature/ltc2983.c
+++ b/drivers/iio/temperature/ltc2983.c
@@ -1346,7 +1346,7 @@  static irqreturn_t ltc2983_irq_handler(int irq, void *data)
 	__chan; \
 })
 
-static int ltc2983_parse_dt(struct ltc2983_data *st)
+static int ltc2983_parse_fw(struct ltc2983_data *st)
 {
 	struct device *dev = &st->spi->dev;
 	struct fwnode_handle *child;
@@ -1630,7 +1630,7 @@  static int ltc2983_probe(struct spi_device *spi)
 	st->eeprom_key = cpu_to_be32(LTC2983_EEPROM_KEY);
 	spi_set_drvdata(spi, st);
 
-	ret = ltc2983_parse_dt(st);
+	ret = ltc2983_parse_fw(st);
 	if (ret)
 		return ret;