From patchwork Fri May 31 06:08:25 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 247848 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 5D6E52C007C for ; Fri, 31 May 2013 16:09:30 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752451Ab3EaGJQ (ORCPT ); Fri, 31 May 2013 02:09:16 -0400 Received: from mail-ea0-f170.google.com ([209.85.215.170]:63098 "EHLO mail-ea0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752318Ab3EaGIk (ORCPT ); Fri, 31 May 2013 02:08:40 -0400 Received: by mail-ea0-f170.google.com with SMTP id f15so1137710eak.15 for ; Thu, 30 May 2013 23:08:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references:in-reply-to:references:content-type:x-gm-message-state; bh=/WXK33oll1ZplJcmJIPj6yHJ1bY25ftRIlR27FmCnGY=; b=U9Z520ylwStkpJBXRphw0m8faetSyNWcgmObA8mBdTqmqiwFkTvJNR9QQevb2YcXEV NF82qDZSizBmmCWODboVCycn947M+kkZy2kXPw5Y8T2Ns43B5knKzwaSL7vfzojY4b3U CfOE7y/Yg6cky3gPO6qKgeYt4k8qaZa9Hxy6z5XtXpooOBw3gDJ8xiD98TfmAfm8T+yM sVdHeOKK8Dp06/yKft8VRypKcDYrlT1oIKLioc1ujgnsE+a1lqkI/3AVWDYbeQpvJWJ9 TjG7K6AYycukkp70q/TJqZ4LOG06+GZdYGShfYTOye0iyccHfd7G2uqzeSXguLJl224m Typg== X-Received: by 10.15.22.14 with SMTP id e14mr12042771eeu.124.1369980518924; Thu, 30 May 2013 23:08:38 -0700 (PDT) Received: from localhost (nat-63.starnet.cz. [178.255.168.63]) by mx.google.com with ESMTPSA id w43sm35315816eel.0.2013.05.30.23.08.37 for (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Thu, 30 May 2013 23:08:38 -0700 (PDT) From: Michal Simek To: linux-kernel@vger.kernel.org Cc: Michal Simek , Michal Simek , "David S. Miller" , Lars-Peter Clausen , Christian Hohnstaedt , Rick Hoover , netdev@vger.kernel.org Subject: [PATCH v2 3/5] phy: Use macros instead of hardcoded values in marvell phy driver Date: Fri, 31 May 2013 08:08:25 +0200 Message-Id: <1ce55f2ae709b48733bb68e05253c23a4e90f1ae.1369980470.git.michal.simek@xilinx.com> X-Mailer: git-send-email 1.8.2.3 In-Reply-To: References: In-Reply-To: References: X-Gm-Message-State: ALoCoQmQOm6JbYmG2lpbjxB/dqafWZVxnB4qBqt5pJlJsRDC+w9iNbyNi5f9SkRSeUHGXnRSS7OU Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Use macros from linux/marvell_phy.h instead of duplicate magic phy ID in the driver. Signed-off-by: Michal Simek --- Changes in v2: None drivers/net/phy/marvell.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) -- 1.8.2.3 diff --git a/drivers/net/phy/marvell.c b/drivers/net/phy/marvell.c index 202fe1f..371353c 100644 --- a/drivers/net/phy/marvell.c +++ b/drivers/net/phy/marvell.c @@ -958,15 +958,15 @@ module_init(marvell_init); module_exit(marvell_exit); static struct mdio_device_id __maybe_unused marvell_tbl[] = { - { 0x01410c60, 0xfffffff0 }, - { 0x01410c90, 0xfffffff0 }, - { 0x01410cc0, 0xfffffff0 }, - { 0x01410e10, 0xfffffff0 }, - { 0x01410cb0, 0xfffffff0 }, - { 0x01410cd0, 0xfffffff0 }, - { 0x01410e50, 0xfffffff0 }, - { 0x01410e30, 0xfffffff0 }, - { 0x01410e90, 0xfffffff0 }, + { MARVELL_PHY_ID_88E1101, MARVELL_PHY_ID_MASK }, + { MARVELL_PHY_ID_88E1112, MARVELL_PHY_ID_MASK }, + { MARVELL_PHY_ID_88E1111, MARVELL_PHY_ID_MASK }, + { MARVELL_PHY_ID_88E1118, MARVELL_PHY_ID_MASK }, + { MARVELL_PHY_ID_88E1121R, MARVELL_PHY_ID_MASK }, + { MARVELL_PHY_ID_88E1145, MARVELL_PHY_ID_MASK }, + { MARVELL_PHY_ID_88E1149R, MARVELL_PHY_ID_MASK }, + { MARVELL_PHY_ID_88E1240, MARVELL_PHY_ID_MASK }, + { MARVELL_PHY_ID_88E1318S, MARVELL_PHY_ID_MASK }, { } };