From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f53.google.com (mail-wr1-f53.google.com [209.85.221.53]) (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 EC104225A5B for ; Sat, 27 Sep 2025 04:14:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758946501; cv=none; b=abrgfTVPs3ifMNOmDIh9NrkGCdmcU22gSbpYG2iuGcMI10sqpQE8CyQOdYVaUPoOIj1/HSLA2PoC8mDLTIia98ESh4oRENxO81MDbvyBIX0qTfjwpqJNS0t074lAKIQ83BBrtgZ/2SiUa9vHt0eJSFUPpuX7T7MgxkNMyOoWO9g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758946501; c=relaxed/simple; bh=QkK1F0a+kzX8my9YSnIKVxkRpFz6GcOBLwOB3cM8EUE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=N0/XrDDinGgh+crErr/1GfOKk+71j1ao7O9lpwc31YD/hyzLFpjd0Edv/BuMNdJeJlyypgFXEAilsyUMSUPNtLTV3aKHIYBWyFs7j0pFtIOKP/VOiK74C2ZroWpTM6TzyIkuUx7j94jrGxS8nQbV4xnXGmUwPGdJ1AMWxbs1UrY= 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=SfwaXPxH; arc=none smtp.client-ip=209.85.221.53 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="SfwaXPxH" Received: by mail-wr1-f53.google.com with SMTP id ffacd0b85a97d-3ee1221ceaaso2060329f8f.3 for ; Fri, 26 Sep 2025 21:14:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1758946498; x=1759551298; 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=QebA45S2Kmxb5ZKr9Gn50ibmhNW02p2JmvNbHpjCTfM=; b=SfwaXPxH4ykHpuQvQrlkROXMqJPL5OFOUiiVk7e8U0BgiUyFcrN2XaegF5AwEdyqDE +cAR5Mi9m8EAEZjZ85SGDDPtGkXTo2FD1hItq7Op2esR+obZqcavCAL6W46hTDekyahb 7Qq2vqHvJVfNFZ1+W1gGkGHORf9BawUmjBri6S0LxbnikEiqQVsswhKNMGbRnbVd7E8z WWLbQRwak7A5VR3fgcUU2V3dY6PdremrMyfZI7KFTCkWq+N/g9EJu60VkuieaZEVuXa0 XTY4rH5lqoLiQsrVAWW4t2X+QhWvkXK8l4h34Ne1CCHxW6wozRxYU62wzKBcM9t+szXC Qu3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1758946498; x=1759551298; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=QebA45S2Kmxb5ZKr9Gn50ibmhNW02p2JmvNbHpjCTfM=; b=WRK1pjz0JpmTi7u5zQOyrY6jutskt/lkCf/3gY8zWm7vrx5IlxgnPiFmKoW1l6sEKG /8q2Kb+s7KnaWeKLqSbSDsTdanvr61raxZrRy5uqsXRP32aniwhe5tk/MPkPs5043xTv W/daT4xj+6ajntww92sTg4PQvnpJQIpZl9vffrOH7gejOM8vFgxI0TtN2ASW29PdhpGJ TCcBV4SOzjePHnc5DRY7k0HqOWbGb/mfLnoCPd1StGol9PGKDOeB4N74UInzXt4Q2ued tjEAeC2IXaI8/56AJdnjdlWp+MDQdnzmf3cbklwk9RzewUfK+nb0m5HEid4AhMaktpGu 2htA== X-Gm-Message-State: AOJu0Yx3OcqfOlCAzeCeUDGEcl77Oys+8uZXbhnXPetvZG/QLpWCAJXN 1QIw/+ugjMVQaK1gqO5Zqnf+PSVzyvE5WO7I6GnUQ6CdNidtaNn+Na2baDAsXA== X-Gm-Gg: ASbGncu4bvklUMp6J0ceyYqnJrHGhjhosiHcwJfHZapZbMZSgiwBFSRByBh5jziLtdz /4rbKVJISI+iV4TNzFg9k4+iGiEod3mpzksjwde5Zh26whRjLM+ikz0wNYSqmD2vEM1PP2zKVhy A828qjyxcpqwLz50blu2iYT2daLR0KRm7SYu67ytkN+2+0Db2b8WJ58R5wAEDwbkxsai5I7dcTt qsVEU0WptiZtKA7Lber1duGhIB5Nzd6HCSvuD0uNAXW122LdH6Q/yB+vWlpCTidKMYHUjLw+Vov F1dsM5iEvwf43tGC2r5ej8uRUhqpnPbO9UREqkMwVd0acblGnezU1HDtOwzBR9/lZ6ksWgfG9tO 1TEuKCiX8KWZLDjZZKrGJN8o21Oia73/FZYUcBype X-Google-Smtp-Source: AGHT+IG2ALooHlYHwOr8MJjdyq/V5jhItcUSlgKuJmsEuxddU94wf1KuErdmeXjr3KPewFZcuGMZYQ== X-Received: by 2002:a05:6000:178d:b0:3ee:11d1:29dd with SMTP id ffacd0b85a97d-40e4ba3a8b8mr8495940f8f.35.1758946497885; Fri, 26 Sep 2025 21:14:57 -0700 (PDT) Received: from hangmanPC.. ([86.124.200.102]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-46e33105e0bsm50386665e9.5.2025.09.26.21.14.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Sep 2025 21:14:57 -0700 (PDT) From: Cezar Chiru To: wsa+renesas@sang-engineering.com, andi.shyti@kernel.org Cc: linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, Cezar Chiru Subject: [PATCH v6 0/3] i2c: pcf8584: Fix errors and warnings reported by checkpatch Date: Sat, 27 Sep 2025 07:13:57 +0300 Message-ID: <20250927041400.172949-1-chiru.cezar.89@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-i2c@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Hello maintainers, This patch series fixes 18 errors and multiple warnings reported by checkpatch.pl on drivers/i2c/algos/i2c-algo-pcf.c file. The series PATCH v1 to PATCH v4 is a response to the discussion on the mailing list with Markus Elfring who had comments on my earlier submissions. He suggested: -to split my initial submission in a patch series -had some valid points on imperative mood usage in commit messages -wrapping commit message to 75 columns per line -change some of the commit message to point usage of checkpatch.pl The series PATCH v4 to PATCH v6 is a response to the discussion on the mailing list with I2C SUBSYSTEM maintainer Wolfram Sang who requested some changes: He requested: - to remove debug macros from i2c-algo-pcf.c as no code change was done for almost 16 years. - remove wrapping paranthesis from value assigned of '(0)''. - resolve conficts caused by debug macros removal. - remove also printk and dev_dbg function calls related to DEB macros. Here is a brief summary and order of patches to be applied: Patch 1/3: i2c: pcf8584: Remove debug macros from i2c-algo-pcf.c This patch remove the define of debug macros and also their usage from code along with printk and dev_dbg function calls. Patch 2/3: i2c: pcf8584: Fix do not use assignment inside if conditional This patch takes the assignement from if conditional and moves it by 1 line up. Patch 3/3: i2c: pcf8584: Fix space(s) required before or after different operators This patch adds space(s) around some binary operators. Testing: *built kernel and modules with I2C_ALGOPCF=m and my 3 patches applied on top of 6.17.0-rc7. *installed kernel and external modules generated by build on my laptop *rebooted and loaded i2c-algo-pcf.ko without i2c_debug parameter. *when loading the .ko with i2c_debug parameter an error is seen in dmesg and this is expected as the parameter was removed. *No success message related to i2c_algo_pcf was seen in dmesg but also no failures. *Module loading and unloading successful. *No PCF8584 Hardware was available. Cezar Chiru (3): i2c: pcf8584: Remove debug macros from i2c-algo-pcf.c i2c: pcf8584: Fix do not use assignment inside if conditional i2c: pcf8584: Fix space(s) required before or after different operators drivers/i2c/algos/i2c-algo-pcf.c | 93 +++++++------------------------- 1 file changed, 18 insertions(+), 75 deletions(-) -- 2.43.0