From nobody Tue Dec 2 02:52:43 2025 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 59B5C35F8DC for ; Tue, 18 Nov 2025 13:56:23 +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=1763474186; cv=none; b=TsO+5RcdeG4ZpFfpATdDYrK8cM9hNI/Lo9q5YZXmYiD+2p/UWkqq68qSKM8u7NO5KggetIrzLhV+E9oml2o1wxmtvgReFwqB7F1jg1yzitVeRPjfQGBFk/k04U7hlf/uVj9B+gBbg+mC45wA1rNGr4rzZl+WtsvDrLxY6Cj1irw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763474186; c=relaxed/simple; bh=pz2vFfFg816pMsi1tjWB3WxH9y8mdbvU/JiEbCPeYpo=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=sOu/Ew7rC8QayLlFq7Bz6rS2QQzTf+jAjsggZDjdPrfkNlDDqi2LcA7eV5k/lrhMI1Zahn6HTShjehF7W9axmtL9t/oKxzdNirqoBNRDoasj4PBw4VAmQGW9fPuUnhrhGKtrvEfzn9I+UA5XBL0bEJM5vhVmmOXYsbecP9I9mnc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=yycJiRTQ; arc=none smtp.client-ip=209.85.221.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="yycJiRTQ" Received: by mail-wr1-f53.google.com with SMTP id ffacd0b85a97d-42b47f662a0so3186193f8f.0 for ; Tue, 18 Nov 2025 05:56:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1763474182; x=1764078982; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=3gwKtEZS9ATY9MzLxT6ci8qfNsIOwy9wsbqfh/IjTRA=; b=yycJiRTQGrd7iaJAk2A1oZoTStUecZrnRSxr6lKZemKVgE3Jy2W+aH9tNYsqzTxRaw JbAo7kuNALUojEFEqpc5MupSg05PyO6RaER43CHLKfUG3ZZoOjAqkZpdUhSQWTiobLS4 X0QcuARxWCB1ENfshU33/t6CsG3dJSA/fnMdXOiwW9tCN5PKWyD5yFuv869iFwbo4wHo 4Y6836ED5UtEnIMfIZuQclQVnUe+BrU/M4cIdS0Vr7GKl/wi1fSfhkQAk8L5BAEbjU01 zX/B8Rm9bA3FolGvL2UjG8Ln/lv4jUfyc01dyHCtHIMcI5H3+dBn8reyu6+jfbp5rcqz 6y5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763474182; x=1764078982; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=3gwKtEZS9ATY9MzLxT6ci8qfNsIOwy9wsbqfh/IjTRA=; b=gWs7VO0pmj1omkC2IQOoVpvj/uWakdTIvKu6TLT1+1ExMvY7BAERhWrKYcxRva0qE3 GjoSl+oifXwXmR9lZU8IzG4yV3WoInRmVu1cxypA5JJ6mkzQqVmupDd2Mw+OGybnkh/H iipzCkmLUGIk2ZAHDYcZ3O21GFwKxlresyf+I/Bq6MdNBeYQwRz13Q80h0O5iDodRXEk eBAEASlUWq4ZLqagD8BHiWnjC9pZrkSHRFCwlzQ2G1GD9PoI11fn78z2u7JwQamn/wqy mmqFLwarhWCDXTDxP5gOLwV0FbN2x8cKz2eEWEk812gW4bz8RU+l+dabZ3BQFHP50qvQ 9m4w== X-Forwarded-Encrypted: i=1; AJvYcCVrzfmYNclKCK43+Z6Xvc8wctcW4cO2sEXFiDzBCyHRRo5vEsmWoGaPJEPbySSWPjy+l6+/xpk93icCQig=@vger.kernel.org X-Gm-Message-State: AOJu0YzL1MDm3mfaMFhwzlsXHACTZSbeuQ2ac2DWLrfo34p2hoMCeAkf 6OLeqeX+EAhzVnsElKiUtuMMewLz/JO24/aVaxhJ+eQyncXXLvYvAIEd0MHqM6c1cDI= X-Gm-Gg: ASbGncsBICouL3/pjU4vTze9zA8SoqD1b76mEIQscVdlHlMA5nBCFbeihwYt6MQHKb7 l8lLYqJLmEkaX6vyC0NzRsnRI6KuRBomfGCgNYyOYIdFAMmQKGHfYy5YCgHWULNa+d5IoJIeTEF 6bvHyLxo3Eh10euI24GD/WkLJU/5Jvsnu8bbCaR2H5E0+GGzrq+xfLWspvBhDGSKd5/CwHkcSyu XWZOB2zBmpJ1e+jCOMVHBiX1yaow4/D4Z5P3FXDp4vmBaU9D1ZDq1WgYM4uPlu1HJaEvptZjp4E HNN2CxJUoeG1zvLcXaK+1JfQyQ3IEDjHKjs2CwD5FFPBtgiFPNplp7SrRCjlEnNmEgu7v+u1RS/ /jkP0jPk+N5cKqmiDiGq2jYCyhYqowW5QXksp34Kx87o6/HWCXMZseHqaF9icGELfzld0FN1qbJ LgSeCjAjgBrIb6anb6Khd/UpN7m3WhxXHlGKCiDpyRwKAN5R49SXJc96w0mZYTxPDayqHB8RmNu rGnIg== X-Google-Smtp-Source: AGHT+IFa8oKgKktdspxmJlkG4/viJN34IUfCpO+WsyI4R07URExLBajDeg8RAjbULRVDTx5x7IMutw== X-Received: by 2002:a5d:584a:0:b0:425:86da:325f with SMTP id ffacd0b85a97d-42ca8cd213cmr3206208f8f.27.1763474181596; Tue, 18 Nov 2025 05:56:21 -0800 (PST) Received: from ta2.c.googlers.com (17.83.155.104.bc.googleusercontent.com. [104.155.83.17]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-42b53e7ae16sm32728666f8f.3.2025.11.18.05.56.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Nov 2025 05:56:21 -0800 (PST) From: Tudor Ambarus Date: Tue, 18 Nov 2025 13:56:12 +0000 Subject: [PATCH v2 5/7] soc: samsung: exynos-chipid: rename method Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20251118-gs101-chipid-v2-5-e9f1e7460e35@linaro.org> References: <20251118-gs101-chipid-v2-0-e9f1e7460e35@linaro.org> In-Reply-To: <20251118-gs101-chipid-v2-0-e9f1e7460e35@linaro.org> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Alim Akhtar , Peter Griffin , =?utf-8?q?Andr=C3=A9_Draszik?= , Srinivas Kandagatla Cc: Krzysztof Kozlowski , semen.protsenko@linaro.org, willmcvicker@google.com, kernel-team@android.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Tudor Ambarus X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1763474177; l=1394; i=tudor.ambarus@linaro.org; s=20241212; h=from:subject:message-id; bh=pz2vFfFg816pMsi1tjWB3WxH9y8mdbvU/JiEbCPeYpo=; b=wh9h+nJ2m38labT5RhsxjuLGzrUVsY6uL+fQUguC27NBHoTBMpaM1lMG18cS30VkIg8IBfNdw 8Bp6rNoERAVBlMoO6MNx4mWs7Y7PSqel07YFbs2s2TXzaQRhQaL3WaF X-Developer-Key: i=tudor.ambarus@linaro.org; a=ed25519; pk=uQzE0NXo3dIjeowMTOPCpIiPHEz12IA/MbyzrZVh9WI= s/product_id_to_soc_id/exynos_product_id_to_name. Prepend exynos_ to avoid name space pollution. The method translates the product id to a name, rename the method to make that clear. While touching the code where it is called, add a blank line for readability purposes. Signed-off-by: Tudor Ambarus --- drivers/soc/samsung/exynos-chipid.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/soc/samsung/exynos-chipid.c b/drivers/soc/samsung/exyn= os-chipid.c index e7dbe1bc45d6af58527125f512c0ff22c03a9629..7ed7f44b6ae5357b71fee3994e4= a4265aa870d41 100644 --- a/drivers/soc/samsung/exynos-chipid.c +++ b/drivers/soc/samsung/exynos-chipid.c @@ -77,7 +77,7 @@ static const struct exynos_soc_id { { "GS101", 0x9845000 }, }; =20 -static const char *product_id_to_soc_id(unsigned int product_id) +static const char *exynos_product_id_to_name(unsigned int product_id) { int i; =20 @@ -204,7 +204,8 @@ static int exynos_chipid_probe(struct platform_device *= pdev) soc_info.revision); if (!soc_dev_attr->revision) return -ENOMEM; - soc_dev_attr->soc_id =3D product_id_to_soc_id(soc_info.product_id); + + soc_dev_attr->soc_id =3D exynos_product_id_to_name(soc_info.product_id); if (!soc_dev_attr->soc_id) return dev_err_probe(dev, -ENODEV, "Unknown SoC\n"); =20 --=20 2.52.0.rc1.455.g30608eb744-goog