Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2219796rwb; Fri, 2 Dec 2022 07:04:11 -0800 (PST) X-Google-Smtp-Source: AA0mqf6rTLaYPrK6yBH9b9pg7cY6jX6Phzr2QhHYLfWgi/14xl22I4nyCS9EHkG3KdDpNzDN8HFB X-Received: by 2002:a17:906:fc5:b0:7c0:8b4c:e30f with SMTP id c5-20020a1709060fc500b007c08b4ce30fmr14849573ejk.502.1669993451350; Fri, 02 Dec 2022 07:04:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669993451; cv=none; d=google.com; s=arc-20160816; b=ybm1O+SO/NlKJ+K09rhbUe8L9RYm5W0PB3wZzAd6oAiscUvquwhpCoqq1KV7lg2O9G u5er/BtwJ/h6bd0D7N0wnpK2Ahwrkl+95fxUVcTOd72dNmMsfJpBqA64Z69/5PPzX2sA HhzcWb4kZzqAVEt7U2XaT00HQzxufxfeLsftdVsKoioT03oA4833Hi+1rP0YwlzOSCEv zQa1LGqFgRm0k/ZSzwwTy8BDyeMTWnQKjFMgcvZGUBJEO8kytRIG29GLmxoRRJX0xZAo NaSGHbhzwzSGP+Q+B4O3nmCb3zugUkHLjMsF9ZVP/OiROFuCXyEXry5J7c83h1Ll9L7T tI1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=q6y9iigXj3WP0hzsik/QSNuzmj4g9Dp1lWgTADU4n9g=; b=R1sH0Ac80t6gAwKEu/LQGXRx1moK5tduQwz1iSRdUaE9iHJ82Fj3w2p/lYFRg276R+ afFiTIjtfR7FSAlCAOosOWQP2IOC6H4428FMK/joTVUTkJGwmTTBy1FRQaM31eRB4CV3 DeHCVhQd15Yocg6ZeR5Hg2GXIk6UjcmTGPkJC4DDqCYu30lHvbs5SpPGPK8xqXIn1mjq CxBcXhLtck4O9mU56ZSSZ/48NBknW+H44NZ0wn5pYqLFujwtzvmucSDfgGMweotjvOJB s7nB0kYrw20hHzlt7WmOJuWDfWlpEitP6Evv4hR2MFddRH+/3fBw6zSMJG8imYoQjqsr TOoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2022082101 header.b=cZaf5Cui; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=walle.cc Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l15-20020a170906794f00b007aa5e6c4b5bsi7085373ejo.164.2022.12.02.07.03.43; Fri, 02 Dec 2022 07:04:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2022082101 header.b=cZaf5Cui; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=walle.cc Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233551AbiLBOtL (ORCPT + 82 others); Fri, 2 Dec 2022 09:49:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51598 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232265AbiLBOtK (ORCPT ); Fri, 2 Dec 2022 09:49:10 -0500 Received: from mail.3ffe.de (0001.3ffe.de [159.69.201.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B6CC8D2936; Fri, 2 Dec 2022 06:49:09 -0800 (PST) Received: from mwalle01.kontron.local. (unknown [213.135.10.150]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.3ffe.de (Postfix) with ESMTPSA id 5AF6588; Fri, 2 Dec 2022 15:49:07 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2022082101; t=1669992547; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=q6y9iigXj3WP0hzsik/QSNuzmj4g9Dp1lWgTADU4n9g=; b=cZaf5Cuisju6zyt4dTQ5ygX0nSSXzAQ1vJ8+HIqq7BeDigqksGEpZdn3V+30MzLnvU32tL iAIcAb23huqXrnS5okAsM4qshxpSxwhJlR4m1B9b3Obd046JmIxCDXEAiEZmFPvxC1og3+ WLH5PgGuOSwxxlimkMzIs6+yHUZStIiTkGL8vFR3dTPTwafGUetN5BYlXxDatDvx9OkM+m vehtqii72WWk1JR092//giJwz2NkgqprsdHF1YOWAk/PN+4cnPwvXRgWrmWbCoeB34Esv/ hlYihXkmWxz4J+aT48jnnaNxO/h2+xxZevvzRbqrl/reFPrn87XpL6GULsF5ew== From: Michael Walle To: Xu Liang , Andrew Lunn , Heiner Kallweit , Russell King , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Michael Walle Subject: [PATCH net-next] net: phy: mxl-gpy: rename MMD_VEND1 macros to match datasheet Date: Fri, 2 Dec 2022 15:49:00 +0100 Message-Id: <20221202144900.3298204-1-michael@walle.cc> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Rename the temperature sensors macros to match the names in the datasheet. Signed-off-by: Michael Walle --- For the curious: I probably copied the prefix from the already existing VPSPEC2_ macros in the driver, the datasheet also mentions some VPSPEC2_ names, but I suspect they are typos. drivers/net/phy/mxl-gpy.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/phy/mxl-gpy.c b/drivers/net/phy/mxl-gpy.c index 27c0f161623e..0ff7ef076072 100644 --- a/drivers/net/phy/mxl-gpy.c +++ b/drivers/net/phy/mxl-gpy.c @@ -78,8 +78,8 @@ VSPEC1_SGMII_CTRL_ANRS) /* Temperature sensor */ -#define VPSPEC1_TEMP_STA 0x0E -#define VPSPEC1_TEMP_STA_DATA GENMASK(9, 0) +#define VSPEC1_TEMP_STA 0x0E +#define VSPEC1_TEMP_STA_DATA GENMASK(9, 0) /* WoL */ #define VPSPEC2_WOL_CTL 0x0E06 @@ -140,14 +140,14 @@ static int gpy_hwmon_read(struct device *dev, struct phy_device *phydev = dev_get_drvdata(dev); int ret; - ret = phy_read_mmd(phydev, MDIO_MMD_VEND1, VPSPEC1_TEMP_STA); + ret = phy_read_mmd(phydev, MDIO_MMD_VEND1, VSPEC1_TEMP_STA); if (ret < 0) return ret; if (!ret) return -ENODATA; *value = polynomial_calc(&poly_N_to_temp, - FIELD_GET(VPSPEC1_TEMP_STA_DATA, ret)); + FIELD_GET(VSPEC1_TEMP_STA_DATA, ret)); return 0; } -- 2.30.2