linux-next: manual merge of the hwmon-staging tree with the hwmon-fixes tree

From: Mark Brown

Date: Fri Nov 27 2026 - 09:33:21 EST


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: signature.asc
Description: PGP signature