Skip to content

Commit 6e25329

Browse files
nunojsagroeck
authored andcommitted
hwmon: (ltc4282) fix copy paste on variable name
The struct hwmon_chip_info was named ltc2947_chip_info which is obviously a copy paste leftover. Name it accordingly. Signed-off-by: Nuno Sá <nuno.sa@analog.com> Link: https://lore.kernel.org/r/20250611-fix-ltc4282-repetead-write-v1-2-fe46edd08cf1@analog.com Signed-off-by: Guenter Roeck <linux@roeck-us.net>
1 parent 947809f commit 6e25329

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/hwmon/ltc4282.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1596,7 +1596,7 @@ static const struct hwmon_ops ltc4282_hwmon_ops = {
15961596
.read_string = ltc4282_read_labels,
15971597
};
15981598

1599-
static const struct hwmon_chip_info ltc2947_chip_info = {
1599+
static const struct hwmon_chip_info ltc4282_chip_info = {
16001600
.ops = &ltc4282_hwmon_ops,
16011601
.info = ltc4282_info,
16021602
};
@@ -1717,7 +1717,7 @@ static int ltc4282_probe(struct i2c_client *i2c)
17171717

17181718
mutex_init(&st->lock);
17191719
hwmon = devm_hwmon_device_register_with_info(dev, "ltc4282", st,
1720-
&ltc2947_chip_info,
1720+
&ltc4282_chip_info,
17211721
ltc4282_groups);
17221722
if (IS_ERR(hwmon))
17231723
return PTR_ERR(hwmon);

0 commit comments

Comments
 (0)