Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp444077pxb; Thu, 9 Sep 2021 04:44:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy9dk0dmpg21reKA2xiYK/EC6ZQIyfVWM91li3ZLOMUO5VP+X8LrlXtmkmRQH3Qi0TEbuuR X-Received: by 2002:a05:6638:2509:: with SMTP id v9mr2403343jat.95.1631187863843; Thu, 09 Sep 2021 04:44:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631187863; cv=none; d=google.com; s=arc-20160816; b=jzvNxH/WI8d5yQw17gQa+BWu4Ldr2bDOEmyiRB020CwbTkLFgrwb1oJ3inDWMbxPTf 1P4ZmOvKoyAIq558dfq5QuiCV2Cy92Nc7+N2H4zQB64hHAVNC82hgnPEc+ik4POyEZYt S6tK5fHKbcjKDa2fYYVvECl2On5lcSLH7OMQGMsyS2xmPZ3VkufK7RcKFX+uwicNZmUK XPU3TdFlVjQNyypg+YYH6aGjcF/+benau311hyVonl1FkO/TwIAE0q0/PTaB+jSCTNl1 kzwr73gskvQujSCu7n101vtNlDcmsXF8puDYG1Q7FZ45T4JM6oo1b/3WYZ/Nnr72SpFU qyaA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=2v2g5WrZulM6wJGPWuLSnnhUD+lsWcGRezL9gyJtxGs=; b=UROLhnot7bEcKpNQfLMUPYYmZUo2kvcbrpRoNvbo6zSUiQWEFkbyoFkJeAsBkVckTZ iObLuXp6D4d2yXgy/8Je7X0lI5ycGJdR6dFzPcWaFRDmt81cl9ODnZXyuivSQa9Vy4mQ CfM1mRjMaIScefwK3f0Pwj1SM6m9BUWBTvuS/qLPIoqFZVcJAwX+xfaeTDxY/1K2kg6J t4UEpGgLy+LN12Jhqk02nWXDwxP95IryxsLGMicWYK8FM+2jgGk+Uo7a1iQxl6O2H6yD tbk6lzYF2vmGGOlpvo7Gj1VmoR7bKlu0OXkLRa5eRdbPNNWyrdACx4VA/OxSmTGREx5h qkQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PeOAr3jm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a10si1400160jaa.15.2021.09.09.04.44.12; Thu, 09 Sep 2021 04:44:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PeOAr3jm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239070AbhIILoB (ORCPT + 99 others); Thu, 9 Sep 2021 07:44:01 -0400 Received: from mail.kernel.org ([198.145.29.99]:45620 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237064AbhIILmq (ORCPT ); Thu, 9 Sep 2021 07:42:46 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 36DA3611B0; Thu, 9 Sep 2021 11:41:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1631187697; bh=vL1tCi+P8oHoCWquG29pMGeUOGlw7/g0zHRAzDDPO2Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PeOAr3jm5JIUhQXzA9OmpVuwY2U9WIlJSuiohjM5KXbds+RcznVt81UGmNv4H9YC8 vx9uF/XkvIC3l3DWziRqyIOT5DJnJyqIRQlHv2GTEmEE5gCDuqZWeEcXKRGyN/UCbj tGVAizVjyUSaLFj01JBV6D22zS6yrQI6lAzPHFHwkuLsmwBhabpMS7lUja2Aizpss0 bTIhZ7j4mabSP4Z//uyMic7iuBGo9WVBZq6hHweJHZy/c9RZmzdq0e3jGBxVFFBl/a eqGN7WHvcVN5W68VLMJeIOYlJiu6XRi5I7L4pwTIHu+aRMcM4Vzy918rIoDZVsyQPs eIe0C6RqVmQrw== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Marek Vasut , Andrew Lunn , Florian Fainelli , "David S . Miller" , Sasha Levin , netdev@vger.kernel.org Subject: [PATCH AUTOSEL 5.14 023/252] net: phy: Fix data type in DP83822 dp8382x_disable_wol() Date: Thu, 9 Sep 2021 07:37:17 -0400 Message-Id: <20210909114106.141462-23-sashal@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210909114106.141462-1-sashal@kernel.org> References: <20210909114106.141462-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Marek Vasut [ Upstream commit 0d6835ffe50c9c1f098b5704394331710b67af48 ] The last argument of phy_clear_bits_mmd(..., u16 val); is u16 and not int, just inline the value into the function call arguments. No functional change. Signed-off-by: Marek Vasut Cc: Andrew Lunn Cc: Florian Fainelli Cc: David S. Miller Reviewed-by: Florian Fainelli Reviewed-by: Andrew Lunn Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/phy/dp83822.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/net/phy/dp83822.c b/drivers/net/phy/dp83822.c index f7a2ec150e54..211b5476a6f5 100644 --- a/drivers/net/phy/dp83822.c +++ b/drivers/net/phy/dp83822.c @@ -326,11 +326,9 @@ static irqreturn_t dp83822_handle_interrupt(struct phy_device *phydev) static int dp8382x_disable_wol(struct phy_device *phydev) { - int value = DP83822_WOL_EN | DP83822_WOL_MAGIC_EN | - DP83822_WOL_SECURE_ON; - - return phy_clear_bits_mmd(phydev, DP83822_DEVADDR, - MII_DP83822_WOL_CFG, value); + return phy_clear_bits_mmd(phydev, DP83822_DEVADDR, MII_DP83822_WOL_CFG, + DP83822_WOL_EN | DP83822_WOL_MAGIC_EN | + DP83822_WOL_SECURE_ON); } static int dp83822_read_status(struct phy_device *phydev) -- 2.30.2