Linux-Next discussions
 help / color / mirror / Atom feed
From: Mark Brown <broonie@kernel.org>
To: Guenter Roeck <linux@roeck-us.net>
Cc: Christopher de Guzman <christopher.deguzman@analog.com>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	Linux Next Mailing List <linux-next@vger.kernel.org>
Subject: linux-next: manual merge of the hwmon-staging tree with the hwmon-fixes tree
Date: Fri, 27 Nov 2026 14:29:03 +0000	[thread overview]
Message-ID: <awmTr2ry8AkoVBc5@sirena.org.uk> (raw)

[-- Attachment #1: Type: text/plain, Size: 3326 bytes --]

Hi all,

Today's linux-next merge of the hwmon-staging tree got a conflict in:

  drivers/hwmon/pmbus/ltc2978.c

between commit:

  43f641c028fed ("hwmon: (pmbus/ltc2978) Fix peak comparison for IEEE-754 chips")

from the hwmon-fixes tree and commits:

  f1354de07181d ("hwmon: (pmbus/ltc2978) Fix peak comparison for IEEE-754 chips")
  5ced04b8f54e0 ("hwmon: (pmbus/ltc2978) Add support for LT7175 and LT7176P")

from the hwmon-staging tree.

I fixed it up (see below) and can carry the fix as necessary. This
is now fixed as far as linux-next is concerned, but any non trivial
conflicts should be mentioned to your upstream maintainer when your tree
is submitted for merging.  You may also want to consider cooperating
with the maintainer of the conflicting tree to minimise any particularly
complex conflicts.

diff --combined drivers/hwmon/pmbus/ltc2978.c
index bd58f786693bf,ca94a3c17e9aa..0000000000000
--- a/drivers/hwmon/pmbus/ltc2978.c
+++ b/drivers/hwmon/pmbus/ltc2978.c
@@@ -23,8 -23,8 +23,8 @@@ enum chips 
  	/* Managers */
  	ltc2972, ltc2974, ltc2975, ltc2977, ltc2978, ltc2979, ltc2980,
  	/* Controllers */
- 	lt7170, lt7171, ltc3880, ltc3882, ltc3883, ltc3884, ltc3886, ltc3887,
- 	ltc3889, ltc7132, ltc7841, ltc7880,
+ 	lt7170, lt7171, lt7175, lt7176p, ltc3880, ltc3882, ltc3883, ltc3884,
+ 	ltc3886, ltc3887, ltc3889, ltc7132, ltc7841, ltc7880,
  	/* Modules */
  	ltm2987, ltm4664, ltm4673, ltm4675, ltm4676, ltm4677, ltm4678, ltm4680,
  	ltm4686, ltm4700,
@@@ -566,6 -566,8 +566,8 @@@ static int ltc2978_write_word_data(stru
  static const struct i2c_device_id ltc2978_id[] = {
  	{ .name = "lt7170", .driver_data = lt7170 },
  	{ .name = "lt7171", .driver_data = lt7171 },
+ 	{ .name = "lt7175", .driver_data = lt7175 },
+ 	{ .name = "lt7176p", .driver_data = lt7176p },
  	{ .name = "ltc2972", .driver_data = ltc2972 },
  	{ .name = "ltc2974", .driver_data = ltc2974 },
  	{ .name = "ltc2975", .driver_data = ltc2975 },
@@@ -656,6 -658,7 +658,7 @@@ static int ltc2978_get_id(struct i2c_cl
  	chip_id &= LTC2978_ID_MASK;
  
  	if (chip_id == LT7170_ID) {
+ 		const struct i2c_device_id *id;
  		u8 buf[I2C_SMBUS_BLOCK_MAX];
  		int ret;
  
@@@ -664,13 -667,11 +667,11 @@@
  		if (ret < 0)
  			return ret;
  
- 		if (ret < 6)
- 			return -ENODEV;
- 
- 		if (!strncmp(buf, "LT7170", 6))
- 			return lt7170;
- 		if (!strncmp(buf, "LT7171", 6))
- 			return lt7171;
+ 		for (id = &ltc2978_id[0]; strlen(id->name); id++) {
+ 			if (ret >= strlen(id->name) &&
+ 			    !strncasecmp(id->name, buf, strlen(id->name)))
+ 				return (int)id->driver_data;
+ 		}
  
  		return -ENODEV;
  	}
@@@ -787,6 -788,8 +788,8 @@@ static int ltc2978_probe(struct i2c_cli
  	switch (data->id) {
  	case lt7170:
  	case lt7171:
+ 	case lt7175:
+ 	case lt7176p:
  		data->features |= FEAT_CLEAR_PEAKS | FEAT_NEEDS_POLLING |
  				  FEAT_IEEE754;
  		data->vin_max = ltc_peak_max_init(data);
@@@ -999,6 -1002,8 +1002,8 @@@
  static const struct of_device_id ltc2978_of_match[] = {
  	{ .compatible = "lltc,lt7170" },
  	{ .compatible = "lltc,lt7171" },
+ 	{ .compatible = "lltc,lt7175" },
+ 	{ .compatible = "lltc,lt7176p" },
  	{ .compatible = "lltc,ltc2972" },
  	{ .compatible = "lltc,ltc2974" },
  	{ .compatible = "lltc,ltc2975" },

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

             reply	other threads:[~2026-11-27 14:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-27 14:29 Mark Brown [this message]
  -- strict thread matches above, loose matches on Subject: below --
2026-09-28 12:48 linux-next: manual merge of the hwmon-staging tree with the hwmon-fixes tree Mark Brown
2026-05-08 11:13 Thierry Reding

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=awmTr2ry8AkoVBc5@sirena.org.uk \
    --to=broonie@kernel.org \
    --cc=christopher.deguzman@analog.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-next@vger.kernel.org \
    --cc=linux@roeck-us.net \
    /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