From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pz2-f39.google.com (mail-pz2-f39.google.com [74.125.228.39]) (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 A98034F93A1 for ; Fri, 2 Oct 2026 16:34:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.228.39 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790958850; cv=none; b=IPxV3Jw/i1SzkkzwcnbGO57FhyTFQLexacdR6BbF/0LQu4xUzdRt8cUfQuCEd+5hHleGLzH4oU9lDXQPvEHUjkTOgttMndWABH88rItn0zlw7rI4F9z/kh9UQJCSm9i9YmTtMPAztEju+FIk0ftjRoMkwPlwn0ThxhaK/jof8zg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790958850; c=relaxed/simple; bh=AvUzFboM7H93fhwbAikzDlpbK4GBTjLvRdTsd/b65es=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=B+TKR97/dIslSLcu//E6ZUYsWAg8AwCO2+Q9pG5WJulTIyomdAyoA3C0zkgxAztlZE7NKDhhROlZGNBM0riNrdXUXTE9tTCCemz/UyQsU7PqLmT1beTcpHnO7iSvoMzfkzHa2jduh16K39eLI4Aj8CLqK58SuVGZKzM19baq/bQ= 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=CU+y/j1q; arc=none smtp.client-ip=74.125.228.39 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="CU+y/j1q" Received: by mail-pz2-f39.google.com with SMTP id d2e1a72fcca58-88098dbba5fso1760041b3a.1 for ; Fri, 02 Oct 2026 09:34:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1790958848; x=1791563648; 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=USaPPC+zxnngb2fFx6SoqK5zosNs4HcXcnLieBdI/5o=; b=CU+y/j1qnwI2k/9ZHWMhTLClDyoqFqSkNRNJX1Dwipn2WarNVFZHUuG2KAc9IWa2k1 IsiO9W/X1rs0wVcgStvZvPrlQL/d1iawRD3lkBqniFvQTb4vVrU6YjHr+4hhqnCx/0/N 5gsKPaRsiIRNSO9Ox2wriLl8W3j1FdYdY/ingZdKuba/YmanFC5lEPz71QeKG135HxV7 XWx/Gln4Y6PAYTaq+y8/vT/8PtR4T5UdOpAqDaRmTkieAPuDojt97Ev5Yf7PfyGatTIs 94s46pL9CaLYmPhO0Lf8asuCP+4q1efMdfH83k9sVk/sw6ENWVjnaazJns75mEab5MpA DFUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790958848; x=1791563648; 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=USaPPC+zxnngb2fFx6SoqK5zosNs4HcXcnLieBdI/5o=; b=YLREIUF1TZm4TRxJRDoSxwpTF+57A9/rcjDsIav116VtX3b4YrNuPzgDb0oSLswuuj o2ZVqevDgCFqNf4Qf9F+MTqrSWSbetYMHy7e8YRL76cL1S2vsSY5jDuMCfLVMkw6NByI 6QAjwOq199eKJAwDi0e1hquYd65qTXSxh5sbXtwas5lK7QrsOroT183P43iuUyALcZZc V96HXYCALcYKQFB5ST3kuyGUuuBndcyiuM8RtGXxiFDPX32IOyarlxtLKv/D6qJoNS0e Aizbxz5nKOXPKHdLJabQpJUBvu0eLH2y8BsqXa3elMJeFl/DNgd4dGTYTBkvGZfVWCel 1Leg== X-Forwarded-Encrypted: i=1; AKwUvBxB8BTa9vTkCACqdFaD1d58xwW3slWOo0pz3oufUds48Hs0tXbQzq+n1wuSJnI8GnEREn62a03FUFBXSg==@vger.kernel.org X-Gm-Message-State: AFuF++mK2heZa3wmQsllLHKIekdLDgGO4ToER6hBz9Wx+FM1m1tDHlCg kxqm9WCvHMAQezl69Y6Jz974XQb+S5SNhMghZq+lMzUUlJwchRm6AcJq X-Gm-Gg: AYBFou2RN1AWnCD72ikmIyAIblUZXKa0Y+LMwy9SHqZ3jFaZYfBYzXAATTgL+1M0UlC spGAdEnIFQsV0jjV37voOQ3ImI8x8ZYwBijGGgslmRfh2zcscL+zWgHni/FyUXgjBaPFudB+Bwk OTpRi8glX2AKV+WTxv51RFiWWW3zpqunZ4V5L8vj0OUbFyUwbxYbf3SWVtS3HpyFmJOsHUDB5uG NnrIzN4IZqcrfGAFfvjE5fhOz+f9PFmYQwyvyE2octT5RMClIvnTb/zrVw88lrLniIvKKJRTcZN Gp289GZYuahJm3/otb7NP3cgim+SClvPw+3DhoFs5/PsYDLptUz39NM1rU5tAP6W8Ygr3+ZFzM/ 0IWbj+j+M8bDpmYLn0kLViWtAYYnXDQqC0IAnRm99v+1uri+TIUu1TrQhdbi6yrL6RPiui241Ri npDwJNy+qzaZp34/x4Q+/wENXO+uryLxdztOc/Seo7ahhT6mTzskWzFHHrRki7cjj4p96FqGuyd ZL6HA== X-Received: by 2002:a05:6a00:3cd2:b0:881:5d89:fb93 with SMTP id d2e1a72fcca58-88af5118716mr2310647b3a.15.1790958847835; Fri, 02 Oct 2026 09:34:07 -0700 (PDT) Received: from TC-LAPTOP.lan ([99.30.92.7]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-88b0968b6absm1135149b3a.2.2026.10.02.09.34.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Oct 2026 09:34:07 -0700 (PDT) From: Thierry Chatard To: linux-kernel@vger.kernel.org Cc: platform-driver-x86@vger.kernel.org, linux-media@vger.kernel.org, lee@kernel.org, hansg@kernel.org, ilpo.jarvinen@linux.intel.com, djrscally@gmail.com, 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 v12 3/9] platform/x86: int3472: tps68470: use unsigned int for GPIO lookup loop counters Date: Fri, 2 Oct 2026 09:33:44 -0700 Message-ID: <20261002163350.1248431-4-tchatard@gmail.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20261002163350.1248431-1-tchatard@gmail.com> References: <20261002163350.1248431-1-tchatard@gmail.com> Precedence: bulk X-Mailing-List: linux-media@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: LLM Suggested-by: Andy Shevchenko Reviewed-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