Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1531978pxb; Thu, 16 Sep 2021 09:21:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwFkC6TswqjZ62RX7kRNphGDis9fqXRvvHRBfNY0VM9FXM63fzJZg8vIF6fjWdeQvaaBdFZ X-Received: by 2002:a6b:f114:: with SMTP id e20mr5015886iog.41.1631809192509; Thu, 16 Sep 2021 09:19:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631809192; cv=none; d=google.com; s=arc-20160816; b=AWk1sIAEerAbVPR4mha57PQZIQ4Unf7WsnC1edTkvx++bkWTN+Z3aQqM2bpNh5N94q tHs5ftDW63WgR2VtO56tJLpNii002/0UGFuiwrQM4SDNmpSk7wXVXAQjcCpvw/DDbF7C CzIGLhhrE9UpjTjjZyKP/XgJQLpHrNTTqdP33M2hrhzAoKmQsZrOXOaVEhnVYVyQikjB Yn2dM6NhrvKxvVStdhSI541WLjBCdimNN4FNWVIy09+blHBHp/KnrPqbO/njF+LjoO8m bjJ8rpteR9qGPTmRDjlPFx/weRc/ZIP32gc5ND0mDyiB/V31DBywOW62CHsbj28G4m0B qNyg== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Y69eG4tsJTbI1Wq6thpce653f8idF4Um07QtOb6F0jY=; b=hRau7Ei9TJEk191USThOSbIxSg7JJVTji7lTGhAx6VnoQJcBtOqBYmn9tGP5nPuiip D4UkGuPwYXXi5YZ+fd4XDc94KzewmaqFAlwCdfaSfUFYIqCDIAEpInZ/X/CgkY4zJe9/ E796BxlQyigiWFlLARMQ6MQqcAXBEnAPigjgmfpxUDy3AX8ed5Koz/mXL/lOoxegoW5F XNCfKDXFcUzLABuRoD1Xac3mjwRa4CXKbe56REP7G9a/o7pvDHBJPvu/mdmLJK+VhmxL zKyRTA7ugq2SymjtlCpNU0woh/JqVN4ks3dGTsUfHamIHJxVFXxfyg+cyhGpa8ua6sRh tZ7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=zuOgjTbc; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x13si3215870ile.180.2021.09.16.09.19.37; Thu, 16 Sep 2021 09:19:52 -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=@linuxfoundation.org header.s=korg header.b=zuOgjTbc; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240982AbhIPQTK (ORCPT + 99 others); Thu, 16 Sep 2021 12:19:10 -0400 Received: from mail.kernel.org ([198.145.29.99]:47552 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235505AbhIPQKi (ORCPT ); Thu, 16 Sep 2021 12:10:38 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 3419A61356; Thu, 16 Sep 2021 16:08:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1631808511; bh=oEucGP7KA0TVuE98wc3+iLQVouHdB1vVi2pdgYZ5p3g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=zuOgjTbcXFDQV7OkAy7ZzrdxkLscK4HPqfji/lnp2wJuVsGEdX24e/5f84/X7KKs6 H0fsu2gWKsyu8FjNeQ4W59zwX58u7naQDMXxH/c/aSZa748tSP2CSRmSI865LzOqUn vvst0t5IW4mNHueOFjDNzytwYlV3tDGncpDGDlVk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Marek Vasut , Andrew Lunn , Florian Fainelli , "David S. Miller" , Sasha Levin Subject: [PATCH 5.10 119/306] net: phy: Fix data type in DP83822 dp8382x_disable_wol() Date: Thu, 16 Sep 2021 17:57:44 +0200 Message-Id: <20210916155758.129325564@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210916155753.903069397@linuxfoundation.org> References: <20210916155753.903069397@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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 a9b058bb1be8..7bf43031cea8 100644 --- a/drivers/net/phy/dp83822.c +++ b/drivers/net/phy/dp83822.c @@ -305,11 +305,9 @@ static int dp83822_config_intr(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