All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
To: Andy Shevchenko <andriy.shevchenko@linux.intel.com>,
	linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org
Cc: Guenter Roeck <linux@roeck-us.net>, Jean Delvare <jdelvare@suse.com>
Subject: [PATCH v1 1/1] hwmon: (nct6775) Fix use of undefined variable
Date: Mon, 19 Jun 2023 16:32:57 +0300	[thread overview]
Message-ID: <20230619133257.57569-1-andriy.shevchenko@linux.intel.com> (raw)

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@linux.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


             reply	other threads:[~2023-06-19 13:32 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-19 13:32 Andy Shevchenko [this message]
2023-06-19 13:59 ` [PATCH v1 1/1] hwmon: (nct6775) Fix use of undefined variable Andy Shevchenko
2023-06-19 15:06 ` kernel test robot
2023-06-19 19:46 ` kernel test robot
2023-06-20  3:21 ` kernel test robot

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=20230619133257.57569-1-andriy.shevchenko@linux.intel.com \
    --to=andriy.shevchenko@linux.intel.com \
    --cc=jdelvare@suse.com \
    --cc=linux-hwmon@vger.kernel.org \
    --cc=linux-kernel@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.