Devicetree
 help / color / mirror / Atom feed
From: Francesco Lavra <flavra@baylibre.com>
To: "Liviu Stan" <liviu.stan@analog.com>,
	"Jonathan Cameron" <jic23@kernel.org>,
	"David Lechner" <dlechner@baylibre.com>,
	"Nuno Sá" <nuno.sa@analog.com>,
	"Andy Shevchenko" <andy@kernel.org>,
	"Michael Hennerich" <Michael.Hennerich@analog.com>,
	"Rob Herring" <robh@kernel.org>,
	"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
	"Conor Dooley" <conor+dt@kernel.org>,
	"Antoniu Miclaus" <antoniu.miclaus@analog.com>,
	linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux@analog.com, devicetree@vger.kernel.org
Subject: Re: [PATCH v2 7/7] iio: temperature: ltc2983: Add support for ADT7604
Date: Fri, 15 May 2026 10:38:40 +0200	[thread overview]
Message-ID: <fe013c5a2a1e62a9d1085a4ed16cfb08837a313a.camel@baylibre.com> (raw)
In-Reply-To: <20260514144712.64374-8-liviu.stan@analog.com>

On Thu, 2026-05-14 at 17:46 +0300, Liviu Stan wrote:
> @@ -1269,6 +1579,16 @@ static int ltc2983_read_raw(struct iio_dev
> *indio_dev,
>                         /* 2^21 */
>                         *val2 = 2097152;
>                         return IIO_VAL_FRACTIONAL;
> +               case IIO_RESISTANCE:
> +                       /* value in ohm, 10 fractional bits: divide by
> 2^10 */
> +                       *val = 1;
> +                       *val2 = 1024;
> +                       return IIO_VAL_FRACTIONAL;
> +               case IIO_COVERAGE_PERCENT:
> +                       /* value in percent, 10 fractional bits: divide
> by 2^10 */
> +                       *val = 1;
> +                       *val2 = 1024;
> +                       return IIO_VAL_FRACTIONAL;

The above two branches are identical, you might want to just stack their
labels.


> @@ -1658,25 +2018,34 @@ static DEFINE_SIMPLE_DEV_PM_OPS(ltc2983_pm_ops,
> ltc2983_suspend,
>  static const struct ltc2983_chip_info ltc2983_chip_info_data = {
>         .name = "ltc2983",
>         .max_channels_nr = 20,
> +       .supported_sensors = LTC2983_COMMON_SENSORS,
>  };
>  
>  static const struct ltc2983_chip_info ltc2984_chip_info_data = {
>         .name = "ltc2984",
>         .max_channels_nr = 20,
> +       .supported_sensors = LTC2983_COMMON_SENSORS,
>         .has_eeprom = true,
>  };
>  
>  static const struct ltc2983_chip_info ltc2986_chip_info_data = {
>         .name = "ltc2986",
>         .max_channels_nr = 10,
> -       .has_temp = true,
> +       .supported_sensors = LTC2983_COMMON_SENSORS |
> BIT_ULL(LTC2983_SENSOR_ACTIVE_TEMP),
>         .has_eeprom = true,
>  };
>  
>  static const struct ltc2983_chip_info ltm2985_chip_info_data = {
>         .name = "ltm2985",
>         .max_channels_nr = 10,
> -       .has_temp = true,
> +       .supported_sensors = LTC2983_COMMON_SENSORS |
> BIT_ULL(LTC2983_SENSOR_ACTIVE_TEMP),
> +       .has_eeprom = true,

You almost certainly didn't mean to add this line.

  reply	other threads:[~2026-05-15  8:38 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-14 14:46 [PATCH v2 0/7] iio: temperature: ltc2983: Add support for ADT7604 Liviu Stan
2026-05-14 14:46 ` [PATCH v2 1/7] iio: temperature: ltc2983: Fix macro parenthesization and rename Liviu Stan
2026-05-14 19:32   ` sashiko-bot
2026-05-14 14:46 ` [PATCH v2 2/7] iio: temperature: ltc2983: Use local device pointer consistently Liviu Stan
2026-05-14 19:39   ` sashiko-bot
2026-05-14 14:46 ` [PATCH v2 3/7] iio: temperature: ltc2983: Fix inconsistent channel wording in messages Liviu Stan
2026-05-14 19:47   ` sashiko-bot
2026-05-14 14:46 ` [PATCH v2 4/7] iio: temperature: ltc2983: Use fwnode_property_present() for optional properties Liviu Stan
2026-05-14 20:04   ` sashiko-bot
2026-05-14 14:46 ` [PATCH v2 5/7] iio: core: Add IIO_COVERAGE_PERCENT channel type Liviu Stan
2026-05-14 20:16   ` sashiko-bot
2026-05-15  8:38   ` Francesco Lavra
2026-05-15  9:01     ` Stan, Liviu
2026-05-14 14:46 ` [PATCH v2 6/7] dt-bindings: iio: temperature: Add ADT7604 support to adi,ltc2983 Liviu Stan
2026-05-14 20:43   ` sashiko-bot
2026-05-14 14:46 ` [PATCH v2 7/7] iio: temperature: ltc2983: Add support for ADT7604 Liviu Stan
2026-05-15  8:38   ` Francesco Lavra [this message]
2026-05-15  9:07     ` Stan, Liviu
2026-05-15  6:42 ` [PATCH v2 0/7] " Stan, Liviu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=fe013c5a2a1e62a9d1085a4ed16cfb08837a313a.camel@baylibre.com \
    --to=flavra@baylibre.com \
    --cc=Michael.Hennerich@analog.com \
    --cc=andy@kernel.org \
    --cc=antoniu.miclaus@analog.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dlechner@baylibre.com \
    --cc=jic23@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=linux-iio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@analog.com \
    --cc=liviu.stan@analog.com \
    --cc=nuno.sa@analog.com \
    --cc=robh@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox