From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj2-f19.google.com (mail-pj2-f19.google.com [74.125.227.147]) (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 7886E3E024B for ; Wed, 30 Sep 2026 21:43:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.227.147 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790804624; cv=none; b=u0hwNlGNg0uPmkAOHb/ic/TLP+G5h5RlFQkQlqpaamTqTK3NqDauyQP5BFa9hh7MXkJwRE0OTJ8/vbaw2u7e0c5tpr+Ze5qLHTLqzyxKfmHKRk138dDQOXljDFmWj4p96fgzfg05kX+bu7WRGcOdVuR0p/6iiZrYY9x8I/qEI78= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790804624; c=relaxed/simple; bh=rixrGDaEFtrVbXBwzSvfQXpzKwFy07ICwTeW89xWQtw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=rS/teBKs2mnRh8234kAYDawMiskn4iDmYSceTCrWECmsQnqE9VsWMuBJtyXpZbiMNSMjOJxuw+UyyxWYP9hetoS+cDsG542oSsQbUvAaPBgQ5Lc6P0r6pEKlMEnuPXFgBL2yfIufekB2wWcmPSsABT3wYC4BO4BGVd44rsNQ4ro= 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=PV/4KmoG; arc=none smtp.client-ip=74.125.227.147 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="PV/4KmoG" Received: by mail-pj2-f19.google.com with SMTP id d9443c01a7336-2db18fe433fso26897265ad.2 for ; Wed, 30 Sep 2026 14:43:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1790804622; x=1791409422; 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:content-type; bh=HDP4t5CtJDB/rNbN9Zai4pex9QrrqfqlqT133UxmlQ0=; b=PV/4KmoGaHRkxR0mn4UdkccuvQ0/9zkU6s+rwOK2jRaiOOzn9u3XlimVdakiJ9Jygq lvNFzjRUh1EHP/AYnbAGyccjZAbeGrhFYR0cFwqbW2LJuc5B4Wb+4nkyWcL8XqPwxBum NcAt22HJ0vuBOVvop6lyKHl9kyedqwu+GE9jKBTg1g75FJ6F8LESsyglybA3hJuJt5SN la6pvpiXVhX9KZDeO9rZKzaiz7z1waxeUFafQW3wqHV3PSmhTHirO3XX5Dq1cVh1U2AY mJb4Sw7KSZvmvhCyld67uMIMstLopTNP7X+/0lfi/YwZq/JUR6mU/dJgQcHAoAcPhVkF K52Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790804622; x=1791409422; 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:content-type; bh=HDP4t5CtJDB/rNbN9Zai4pex9QrrqfqlqT133UxmlQ0=; b=H3du6eyoeeTojW1OEflQKoWUaOZGyRyIyWA3/FnxCIhB8LXqQYK6Gqp/LFLWO4mGdf kkNJhvz9unfgBpaLo9dRfPnOL6eym1OrGjMJlXnaKEbFFthaRo7FZPy2WC5po6nLyP55 ihHperayVZ1xFT4A7Cv0ayqpTjeXHRLrjqZ0UZ8bA/QwI2kYl/L2BJjRFONNda8fC9AE qY8cYX3YmmnSRDZRtPSBzRfnW/YHv0nDtt+AIut6da+WTuzsvMQX1rZKySmekW/XHu9e NVOx81jY6bfuAzZJ++c2/wPUrye9Q/ao5Sgu7Nma9JRy1vbmkrvT3kjAkVB3hvhSginy /GIQ== X-Gm-Message-State: AFq9FYJ+Bm+Gu4GMf8ovj1KCt29Yuw+Dbc1c1RslE0eWBC/i+jfTzrcZ CWu1HySneMxzlkfRPRUthFg6cDXX/ZrWcvJ7Vg633u491JcLm/Lilm4+2BJ+zPL8 X-Gm-Gg: AYBFou2245uuXs2iJqnnQy8uN6SYnDs10coJE1UKnKXecyFuOhKyw2Al8FVXnTay1WC LpH8vy1/ucjyNtMi4p/RqUX10pCqwm2sK6d+we+6Zn0cs1PfjIPK8o5h2Nz0nqQOZGjAiSPB+uo GrmQ/enDs1ogCq3VBoaTxP+pcx2GG8v4akFKnPS2GmEA+jXw1se0SMr5OBo3Nnih/1vGcpFiQhm SRBIK0ahrY1OUTcWuiGwIcT4zYPRzmc+GmruB3TFfb7Si54bHy+DgJ4cG2JLKJRMQVf3wgsJ1B3 tsANq3ULCCQlOjmK6bWMZeyII1dWTz36ucXxMaFwsHNoCfBwBuWLw0//UOh76nyRNb4cdPFripv kCJoaZ1R+P5GsvDmVWz2CSYGMc4JqJNOZgub45/ht/nZh5mnRTHqdKgU6zTvXO3r85OrQIniBpP U2J2JZPGMwpvDL66v5r9IvFRBI6Z/7Suxobrm7MKMz+11JFG5/8XF/zJg0xJb9p1EculY= X-Received: by 2002:a17:90a:297:b0:3a4:d883:3edf with SMTP id 98e67ed59e1d1-3a4d8835ff0mr1175083a91.9.1790804622483; Wed, 30 Sep 2026 14:43:42 -0700 (PDT) Received: from TC-LAPTOP.lan ([99.30.92.7]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3a4f47cbd1dsm1060539a91.16.2026.09.30.14.43.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Sep 2026 14:43:41 -0700 (PDT) From: Thierry Chatard To: linux-kernel@vger.kernel.org Cc: hansg@kernel.org, lee@kernel.org, platform-driver-x86@vger.kernel.org, ilpo.jarvinen@linux.intel.com, djrscally@gmail.com, dan.scally@ideasonboard.com, linux-media@vger.kernel.org, mchehab@kernel.org, sakari.ailus@linux.intel.com, jacopo.mondi@ideasonboard.com, nicholas@rothemail.net, andriy.shevchenko@intel.com, v.vitovt@gmail.com, dmanresa@gmail.com, Thierry Chatard Subject: [PATCH v11 3/9] platform/x86: int3472: tps68470: use unsigned int for GPIO lookup loop counters Date: Wed, 30 Sep 2026 14:43:15 -0700 Message-ID: <20260930214321.600863-4-tchatard@gmail.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260930214321.600863-1-tchatard@gmail.com> References: <20260930214321.600863-1-tchatard@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 The GPIO lookup table loops in the probe and remove paths iterate up to board_data->n_gpiod_lookups, which is unsigned int. Use unsigned int for the loop counters to match and avoid a signed/unsigned comparison. No functional change. Assisted-by: Claude Code:claude-opus-4-8 Suggested-by: Andy Shevchenko Signed-off-by: Thierry Chatard --- drivers/platform/x86/intel/int3472/tps68470.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/platform/x86/intel/int3472/tps68470.c b/drivers/platform/x86/intel/int3472/tps68470.c index a77ed32ab..35909a683 100644 --- a/drivers/platform/x86/intel/int3472/tps68470.c +++ b/drivers/platform/x86/intel/int3472/tps68470.c @@ -149,8 +149,8 @@ static int skl_int3472_tps68470_probe(struct i2c_client *client) struct regmap *regmap; int n_consumers; int device_type; + unsigned int i; int ret; - int i; if (!adev) return -ENODEV; @@ -234,7 +234,7 @@ static int skl_int3472_tps68470_probe(struct i2c_client *client) static void skl_int3472_tps68470_remove(struct i2c_client *client) { const struct int3472_tps68470_board_data *board_data; - int i; + unsigned int i; board_data = int3472_tps68470_get_board_data(dev_name(&client->dev)); if (board_data) { -- 2.53.0