[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230619133257.57569-1-andriy.shevchenko@linux.intel.com>
Date: Mon, 19 Jun 2023 16:32:57 +0300
From: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
To: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>,
linux-hwmon@...r.kernel.org, linux-kernel@...r.kernel.org
Cc: Guenter Roeck <linux@...ck-us.net>,
Jean Delvare <jdelvare@...e.com>
Subject: [PATCH v1 1/1] hwmon: (nct6775) Fix use of undefined variable
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@...ux.intel.com>
---
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
Powered by blists - more mailing lists