Message ID | 20171207142715.32578-5-jbrunet@baylibre.com |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp8427073qgn; Thu, 7 Dec 2017 06:29:34 -0800 (PST) X-Google-Smtp-Source: AGs4zMZC2vggaugfXLeGs0kYyP8ooqREJyfx7qCH9XbJPqFbDm0zIoT1jgR/s2jiondl9kkNUZZj X-Received: by 10.99.96.87 with SMTP id u84mr25248257pgb.407.1512656973938; Thu, 07 Dec 2017 06:29:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512656973; cv=none; d=google.com; s=arc-20160816; b=tkVE2KsDPQdRuqMn9o24aP7DWv9AKyzugKLYDbKG7m1TRLphA3TJz9MgHc9UwNVHsj s7Bf21gW0WkNmak//sFbiHDu5RodGiSeyZvyYlm6l6o9WUpPOLEbQnyc/9CeYzDPoaWT WKpcs1WL4lnh7VnnXIoXR7Nm35CgrbCjKLbK1GA/M5JWxORJZ+h3Si7ON0zeFViPVxGg XPshkB9KYfK7nYOSz2Gc/WHMkbqQ4YfeShvzTchGYzQpgoyPM2/dRn+g2JBikQ9YDXKS 4NznoAv7N7NZnvRac8pBZSZRH+ywXc2YyKiGXc0EP85I+h+IIj5LY0Ys5rlb8Zvk60Bd hPuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=3+UYMrDQApFhAZNtxozbstALLWZm0nKobEox3zS1hFs=; b=M0y8fF6+37Z3wxRTwCcSviotqZSbrHh04DI3liRJcpmctV1C/DW9UGz6Ffe6GMKsd+ laU8pt+GxlNZv2S8FB8+jWjyRoT9nQAPcLgMtf73pK/j0GNFpzTyI6RL3KN6pWVUme8M cFuzvfeOobp50LNHCKddVKZC3RNDNcvmuMlSukLPWZbX8ARVs7lwUQuTg7QcHIDJht7f 5ScjVTusereH1BqNPIj7DqoCuKldKKPqBqnfFePT7GgtEM8BTfWwvUpenHmEW/9CmnJI gQqh4SEr/0mkvkOAH26qE2XaiwCzFTyMQ8fSxl/M+maMRCSYuBghtglaIx6e1EbOQ26X 3fGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=ExoQOdc8; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: <linux-kernel-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y72si3847506plh.393.2017.12.07.06.29.32; Thu, 07 Dec 2017 06:29:33 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=ExoQOdc8; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754065AbdLGO3a (ORCPT <rfc822; dan.rue@linaro.org> + 22 others); Thu, 7 Dec 2017 09:29:30 -0500 Received: from mail-wm0-f67.google.com ([74.125.82.67]:42959 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753795AbdLGO1X (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 7 Dec 2017 09:27:23 -0500 Received: by mail-wm0-f67.google.com with SMTP id l141so13349868wmg.1 for <linux-kernel@vger.kernel.org>; Thu, 07 Dec 2017 06:27:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=3+UYMrDQApFhAZNtxozbstALLWZm0nKobEox3zS1hFs=; b=ExoQOdc8ChMO5Qlrms90cLV6pwZdA98GbE7AB0SamwS7xmyNXw75bGLZx1zYoR5Boh EentQwHgp7j/Se18WvjuoQd1FkcF4bLqxeWQGES2jJN6eSrjh8mBW54BsttHVLurOCbV 3cmPlCHNXjh/znAeQeSQWW6U6njs6R3QU95VI0JBrV/r6Ef55RAqeGse+D3YZDx0eh1V axjvU+q2jgvLUqfQDfJryzJ1xSn+3bvKf6xnoUYDJawPR3/BQdi9f/zUS//wjmwNceuG W79082XzghbuXr7RacMN4BpHfs8x9xyweERDDNmATl8sv0nmn921ukVGpp5jHJu3W0DZ Chlg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=3+UYMrDQApFhAZNtxozbstALLWZm0nKobEox3zS1hFs=; b=YoblsjZNnpGJ/KqePSRCIgUt5PFnZZAhchLx/G/1bJrOtVbN0XGkme5wBN1mZ6PuSa LW2rSNIjgWJ4hqCZgTSxROW9aq7WyakdXBBhWy+YVsmLpB258eDhp5QvUPR0FIXQ1eGi BJqMBsKInUxUiNDTCamUpWTPV5ol39m8KrckEeFmAULSp0huCdOTRILXq+Ch5EJsXLI3 BiTMmF6+okojTZ2c6E0gYK2qIp5kOloPVkh6g/IjXrJd7AZUyUgV+cPEYaZU6Z6HVNau ybN1Tj5p2JEdXF1BvKK3OJzAMJ6oT+1k0A7HsMZgZOpR17vYNkVfCZNf/GI17s77blW3 v5IA== X-Gm-Message-State: AKGB3mLhzr5p/+8UrD/KhXcjL1aBgMU8M0GpCMPpPQvqqe4opxLHdFag 2YPkV35I69LDZFOJJDwvtOrfvA== X-Received: by 10.28.51.21 with SMTP id z21mr1385340wmz.94.1512656842271; Thu, 07 Dec 2017 06:27:22 -0800 (PST) Received: from boomer.baylibre.local ([90.63.244.31]) by smtp.googlemail.com with ESMTPSA id t138sm6264520wme.16.2017.12.07.06.27.21 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 07 Dec 2017 06:27:21 -0800 (PST) From: Jerome Brunet <jbrunet@baylibre.com> To: Andrew Lunn <andrew@lunn.ch>, Florian Fainelli <f.fainelli@gmail.com> Cc: Jerome Brunet <jbrunet@baylibre.com>, Kevin Hilman <khilman@baylibre.com>, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH net-next v2 4/8] net: phy: meson-gxl: use genphy_config_init Date: Thu, 7 Dec 2017 15:27:11 +0100 Message-Id: <20171207142715.32578-5-jbrunet@baylibre.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20171207142715.32578-1-jbrunet@baylibre.com> References: <20171207142715.32578-1-jbrunet@baylibre.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org |
Series |
phy: net: meson-gxl: clean-up and improvements
|
expand
|
On Thu, Dec 07, 2017 at 03:27:11PM +0100, Jerome Brunet wrote: > Use the generic init function to populate some of the phydev > structure fields > > Signed-off-by: Jerome Brunet <jbrunet@baylibre.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Andrew
diff --git a/drivers/net/phy/meson-gxl.c b/drivers/net/phy/meson-gxl.c index 05054770aefb..2e8c40df33c2 100644 --- a/drivers/net/phy/meson-gxl.c +++ b/drivers/net/phy/meson-gxl.c @@ -142,7 +142,7 @@ static int meson_gxl_config_init(struct phy_device *phydev) if (ret) return ret; - return 0; + return genphy_config_init(phydev); } static struct phy_driver meson_gxl_phy[] = {
Use the generic init function to populate some of the phydev structure fields Signed-off-by: Jerome Brunet <jbrunet@baylibre.com> --- drivers/net/phy/meson-gxl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.14.3