From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f178.google.com (mail-pf1-f178.google.com [209.85.210.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8298C3D646E for ; Thu, 7 May 2026 10:13:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778148797; cv=none; b=ivj+MKFf0cf0DsHeJNaFqVDODugwvqqMPc+KGWs/f8lBRLt8ztf7a/nXfLOM0nyCAL/Zd20eJfjyBnUNPiQ8UFu2EbkLJ8IYY5XBFSkhxx3B4wJj2mqRjfEWJJ+HkWHR8bD9jR4mOlKHRC+4Mp40kRTT2M1RQ2Ok6nS1UXauIbQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778148797; c=relaxed/simple; bh=clTKCOBUcKKX0FwWohGCq2g/AFG/7UR6di+XJsvqHnM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=EVA/7Z9eiK5L124nNhkQQomvLodgzMEZuu8/1SDTQxgKXqpo699462RACS0tFe7Zxq/m1+7DcMmxAAZHsYiC/TEHcifM+GuANADI/Er4JtnadOofydycrLV4TVFl2fGoY6kbEbSRY41fHvrFtRaqdN2VAaiECmv/kZqaMztqB9I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=TKGNBIjO; arc=none smtp.client-ip=209.85.210.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="TKGNBIjO" Received: by mail-pf1-f178.google.com with SMTP id d2e1a72fcca58-824c9da9928so245323b3a.3 for ; Thu, 07 May 2026 03:13:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1778148795; x=1778753595; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=MYskE9BUqqox/U6JdrYHEc52UZOzahoWEH2vbpdJhlU=; b=TKGNBIjONMNP0LSBa/dxKnZ/ktefSaIxuPgquDuUwJnATZzzXtsAMFmoPiJ5gEfYF5 1oep1r7aY2YbFTm7XE/Rk3oZYYLWFTOvjZtkOmfZYjUjdb/dqk4AdEofQa7aMgNDg2Dy Y7YD2nWFKDzKKAv7O7OBVZDTEnem3gHwp5hcTjXWiZkTZNwaQQPb84V9U4P9e1StNzom qrSPxtX+bhSgQS7aQUS9EcWD9aMDmZjFR94l97DcU9zkkQyFUk4ZyUeAwvykBzorv3eK abQZOU/9T41OqTV0EOcH4797hqbrIwK+hGRYbS3/wSx3jneY5MYAzsc4Lq9GODCFHpHe UoOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778148795; x=1778753595; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=MYskE9BUqqox/U6JdrYHEc52UZOzahoWEH2vbpdJhlU=; b=eGkkrS6No7/7uvw5vCT4z5H25or7I2Alvu0c+yKpqt83NyM8ELFW+YoqkkmrrxiKxd Pjs0xgBrkt9YY2ach257Iefim8telwIB0T81PHLK4nKqIgG8VQtmI6L1bt4O0cC7qRJ2 MvJKNHeBG1bpBPjgW+1dZkVA0SumkWS3g0bazGq1NQznYmr2o1+KNZST8tPcl0/dgnZL GRU4fyDdXF3sSRPPbI6HKc398kgyNFL7SnuqJtkGDgfk0I9occ7JsOsNC8/X216Bz2LJ 5ScaTXnDNgBoqhaY1hN7cVl2NiTsqchcJUx5qpmjPEwt0tOrnylDsXwwV+VXMABIIg2t wnwg== X-Forwarded-Encrypted: i=1; AFNElJ94tHceyMFjFKIXMCJhic0v38LX5Et4iwwwj6eyw/iVcwAjtQKJLMfiRURsigLALBdalU8UlG9Na1YCVqw=@vger.kernel.org X-Gm-Message-State: AOJu0YzXSvl6/7lZjWk47uRnyZpmkUkF7XXvJj6iohC6QGe5qt1NLjxc VjUREr1IDyvjrpR5s8nQDPNzGDcGbqXWVns0lVNGiFePfUk4Cr5RS/o4 X-Gm-Gg: AeBDietvmfs4LQ95pRHdBifEkjplfD99HOgKKyla6EadWxsUi3GpIOfrMn4fWOxSE80 lCh7xuN/kwrVFwunm06fXPp1v7/Ab6olp78pg6S53VocCl77KJICI3sMDZp2TBk+u+m7xVbzbOD zcoE7DKoUoHy+MbebhDk/jOC+NY7h4j9nS9HgcFH8ofRybbWZvycqQOAfbBx0/9vJ4z0sd1adJx 5f8eNeo0QpOzJBL+G3LNx3n6LDmVu3m4mw1cydAaDohxpPqHRuHtIFslBB9nSazkmmqR/5rvP0y ZE5HebqGBh61acQdYz0QZlfrCSJ1myXZ/T2/o4l/BVdxDDAYBnNYkd0yFqUdauCgBycVvOSgswn FE1yqxA5CXnK+5zjPa7gT6fYpf1hJh/+fRrNf6F5HBjF5tLloA0b3vjD/bXrM4qe2dY2ZmWU09B V0TSG7uaUzc90N+R+OD7n1NvqeYOfr93KHotlXJ5CLRQ5bwyQdyEtGgSHf83uEpSXxY4ayia3oW YrkmdtWe+Zn3pw3XHXkcIV26TAMHA== X-Received: by 2002:a05:6a00:6c95:b0:82c:eb46:acb9 with SMTP id d2e1a72fcca58-83a5d3875a0mr6479595b3a.24.1778148794764; Thu, 07 May 2026 03:13:14 -0700 (PDT) Received: from fedora ([103.181.54.100]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-83967dbcf16sm9797998b3a.40.2026.05.07.03.13.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 May 2026 03:13:14 -0700 (PDT) From: Ninad Naik To: linux@roeck-us.net Cc: linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org, skhan@linuxfoundation.org, me@brighamcampbell.com, linux-kernel-mentees@lists.linux.dev, Ninad Naik Subject: [PATCH 2/3] hwmon: lm93: Change unsigned to unsigned int for clarity Date: Thu, 7 May 2026 15:41:42 +0530 Message-ID: <20260507101143.559475-3-ninadnaik07@gmail.com> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260507101143.559475-1-ninadnaik07@gmail.com> References: <20260507101143.559475-1-ninadnaik07@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Fix checkpatch.pl warning by changing unsigned to unsigned int for clarity and to follow latest kernel code style. No functional changes are made. Signed-off-by: Ninad Naik --- drivers/hwmon/lm93.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/hwmon/lm93.c b/drivers/hwmon/lm93.c index c15e2a02dd86..1a3b5da924b2 100644 --- a/drivers/hwmon/lm93.c +++ b/drivers/hwmon/lm93.c @@ -339,7 +339,7 @@ static const unsigned long lm93_vin_val_max[16] = { * }; */ -static unsigned LM93_IN_FROM_REG(int nr, u8 reg) +static unsigned int LM93_IN_FROM_REG(int nr, u8 reg) { const long uv_max = lm93_vin_val_max[nr] * 1000; const long uv_min = lm93_vin_val_min[nr] * 1000; @@ -355,7 +355,7 @@ static unsigned LM93_IN_FROM_REG(int nr, u8 reg) * IN: mV, limits determined by channel nr * REG: scaling determined by channel nr */ -static u8 LM93_IN_TO_REG(int nr, unsigned val) +static u8 LM93_IN_TO_REG(int nr, unsigned int val) { /* range limit */ const long mv = clamp_val(val, @@ -379,7 +379,7 @@ static u8 LM93_IN_TO_REG(int nr, unsigned val) } /* vid in mV, upper == 0 indicates low limit, otherwise upper limit */ -static unsigned LM93_IN_REL_FROM_REG(u8 reg, int upper, int vid) +static unsigned int LM93_IN_REL_FROM_REG(u8 reg, int upper, int vid) { const long uv_offset = upper ? (((reg >> 4 & 0x0f) + 1) * 12500) : (((reg >> 0 & 0x0f) + 1) * -25000); @@ -396,7 +396,7 @@ static unsigned LM93_IN_REL_FROM_REG(u8 reg, int upper, int vid) * upper also determines which nibble of the register is returned * (the other nibble will be 0x0) */ -static u8 LM93_IN_REL_TO_REG(unsigned val, int upper, int vid) +static u8 LM93_IN_REL_TO_REG(unsigned int val, int upper, int vid) { long uv_offset = vid * 1000 - val * 10000; @@ -730,7 +730,7 @@ static u8 LM93_INTERVAL_TO_REG(long interval) * GPIO: 0-255, GPIO0 is LSB * REG: inverted */ -static unsigned LM93_GPI_FROM_REG(u8 reg) +static unsigned int LM93_GPI_FROM_REG(u8 reg) { return ~reg & 0xff; } @@ -777,9 +777,9 @@ static unsigned LM93_GPI_FROM_REG(u8 reg) #define LM93_ALARM_TEMP2 0x20000000 #define LM93_ALARM_TEMP3 0x40000000 -static unsigned LM93_ALARMS_FROM_REG(struct block1_t b1) +static unsigned int LM93_ALARMS_FROM_REG(struct block1_t b1) { - unsigned result; + unsigned int result; result = b1.host_status_2 & 0x3f; -- 2.54.0