[PATCH v1 1/1] hwmon: (nct6775) Fix use of undefined variable
From: Andy Shevchenko
Date: Mon Jun 19 2023 - 09:32:56 EST
It's unknown how, but in one place in the code the undefined variable
is still in use. Replace it with the respective bitmap API call.
Fixes: d7f4737c37b5 ("hwmon: (nct6775) Switch to use bitmap type and APIs")
Signed-off-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>
---
drivers/hwmon/nct6775-core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/hwmon/nct6775-core.c b/drivers/hwmon/nct6775-core.c
index a334fcf9406d..56aa68875c42 100644
--- a/drivers/hwmon/nct6775-core.c
+++ b/drivers/hwmon/nct6775-core.c
@@ -3829,7 +3829,7 @@ int nct6775_probe(struct device *dev, struct nct6775_data *data,
case nct6797:
case nct6798:
case nct6799:
- data->in_num = 15;
+ bitmap_set(data->have_in, 0, 15);
data->pwm_num = (data->kind == nct6796 ||
data->kind == nct6797 ||
data->kind == nct6798 ||
--
2.40.0.1.gaa8946217a0b