From patchwork Wed Feb 8 16:12:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?Q2zDqW1lbnQgTMOpZ2Vy?= X-Patchwork-Id: 54484 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp3545032wrn; Wed, 8 Feb 2023 08:15:04 -0800 (PST) X-Google-Smtp-Source: AK7set+EysIGx944ggCFCIP8rJjs30TzYxnOZv5enZORACnsa7s5fOOy1D0+am4JqaNxU+zmtzh6 X-Received: by 2002:a17:903:182:b0:199:1292:53cd with SMTP id z2-20020a170903018200b00199129253cdmr8548738plg.1.1675872904624; Wed, 08 Feb 2023 08:15:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675872904; cv=none; d=google.com; s=arc-20160816; b=ntElQlIxx6IW2HOARh4qBSywJgE6LDZH5oWVfqeo3lRyA/LLRgEXcCgscd7OTGLFBP PacbdBUynNr+QN09JO9ZGgpzkLITjuuOYJXBtvi60nvuYgpI6BILohlFNeqyIV0hczY4 3RqLV3Hf5/+TyvHz6MJngb752S6vyLr14oFy638LW1mmRuMbLxC5pwMbcViEj488Dc7l Yadpysp7IXB1IFQcCpkM+5kZJR1+AYKpKCKLd3Butt2Y6j11K5uRgvz+u2zV0q+RFdbb YJfDo771oXKVcB4cAMCxWKL4eEqzHYAtVl3Kjqqp2UDCAIJF3D2KE08lMwLZm8aXzLue eYgA== 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=xsfR8ufhoT9fUKkd6fUVNmCkIo3VMbEtV6/x+apmsjA=; b=tLQjIm5si7dzOPGSXitmz3GC+TXUDCZuhbimdyuLNLYzRuX5EukL8K6KEyQCqH576L SgAUXluFkQqu+lgT95WtWqU4lnYmoDvZULIcCtJoNN2ejZc0vmVL3UYi/8cF1j3T3mNK Y+OgcmSlok24ugWEqplrS1oVZZketR92bQCQSWu3+3R3cl4I9+5ybS1HOdzjgyCsn/Rh +nRe1CjrQ9PjLfns9nwhEfb5REj2KPKAPyTRh52UnQ/qIb2TW66Ijb7K25SFYiqTsq3+ 96b5AVjPqHZGmrbmns1/3tkoiGEpLtLI8kzvVzrrBnE8RMWjPhkzaRW31Aw7GkQtE0FT zW4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=LQV7HKkd; 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=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bd5-20020a170902830500b001991584ad17si9429221plb.34.2023.02.08.08.14.36; Wed, 08 Feb 2023 08:15:04 -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=@bootlin.com header.s=gm1 header.b=LQV7HKkd; 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=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231182AbjBHQKr (ORCPT + 99 others); Wed, 8 Feb 2023 11:10:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55700 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229618AbjBHQKq (ORCPT ); Wed, 8 Feb 2023 11:10:46 -0500 Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [217.70.183.195]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EAEC24B185; Wed, 8 Feb 2023 08:10:44 -0800 (PST) Received: (Authenticated sender: clement.leger@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id CF29D6000E; Wed, 8 Feb 2023 16:10:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1675872643; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=xsfR8ufhoT9fUKkd6fUVNmCkIo3VMbEtV6/x+apmsjA=; b=LQV7HKkdJLYiVTlNbslrggRfaG8Ti2n2GggHcbgEK1HR4rIHNBLdXdE628WkVNxcqpcNe3 d3+BV+F9oEklcvuLCBVKYqJJocc70CWGgC0o/W3mZS3FQ5h66IVsNWoyg0LCmU/nyIEOHP z9Vtoy+p4rKFutqpJhLr24kqxCZyfPm0AzgXa8x1ngOfG8bMYmOxly1uU9n9oypOvzVoR5 X0SaMUj6+qPxmrUTBc/wHPYOypRRi++t/VLV5/fqrn8kFbJuOrE2WaB2gJ0ol6ASljjezF KfcG9FukyNQTZdTzXTEcc9O5BQpg6wvxMWhVw9xFAOlaNp6Jy3v79bswBEiUrg== From: =?utf-8?b?Q2zDqW1lbnQgTMOpZ2Vy?= To: Andrew Lunn , Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni Cc: =?utf-8?b?Q2zDqW1lbnQgTMOpZ2Vy?= , linux-renesas-soc@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH net-next] net: pcs: rzn1-miic: remove unused struct members and use miic variable Date: Wed, 8 Feb 2023 17:12:49 +0100 Message-Id: <20230208161249.329631-1-clement.leger@bootlin.com> X-Mailer: git-send-email 2.39.0 MIME-Version: 1.0 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1757280106844017282?= X-GMAIL-MSGID: =?utf-8?q?1757280106844017282?= Remove unused bulk clocks struct from the miic state and use an already existing miic variable in miic_config(). Signed-off-by: Clément Léger Reviewed-by: Russell King (Oracle) --- drivers/net/pcs/pcs-rzn1-miic.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/net/pcs/pcs-rzn1-miic.c b/drivers/net/pcs/pcs-rzn1-miic.c index c1424119e821..323bec5e57f8 100644 --- a/drivers/net/pcs/pcs-rzn1-miic.c +++ b/drivers/net/pcs/pcs-rzn1-miic.c @@ -121,15 +121,11 @@ static const char *index_to_string[MIIC_MODCTRL_CONF_CONV_NUM] = { * struct miic - MII converter structure * @base: base address of the MII converter * @dev: Device associated to the MII converter - * @clks: Clocks used for this device - * @nclk: Number of clocks * @lock: Lock used for read-modify-write access */ struct miic { void __iomem *base; struct device *dev; - struct clk_bulk_data *clks; - int nclk; spinlock_t lock; }; @@ -232,7 +228,7 @@ static int miic_config(struct phylink_pcs *pcs, unsigned int mode, } miic_reg_rmw(miic, MIIC_CONVCTRL(port), mask, val); - miic_converter_enable(miic_port->miic, miic_port->port, 1); + miic_converter_enable(miic, miic_port->port, 1); return 0; }