Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp9163359ybi; Tue, 23 Jul 2019 23:06:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqxriS9UjkV2M85ttS5dJXpBrrBDlKbJhYlVeJV1exfK/9ogwZfQ3ILB1CSIOHqPX8J2Ik1z X-Received: by 2002:a17:90a:1a0d:: with SMTP id 13mr81658046pjk.99.1563948393390; Tue, 23 Jul 2019 23:06:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563948393; cv=none; d=google.com; s=arc-20160816; b=y+StA68GGuyIMjmbb6HvyBBJCRyEo+3tUSstFRyKPrkmvn3VZye3biFuJcbwx+nT40 NWaBWzTSUY3Ml1sMO30qRRsbWceoZBvuBzB8mNyBSZU0BN1cjT72KH16q+lL6SCNGSru bo+pf9TVuJsci/gUSdrKvTMnB8yuBcKonf+YTQQn2mvwLYrHBPLOCvPA3hdkvpMsKFvk aQE4dTL2S5g7h5cGyQ486VAzvhDnZ/H9vVzjSALTyTt22GCE1LSuFDo/SVbE17tVz4v9 RYhvcohY/lNMNL2Xry/fdGs/70fLJb2wSuuQWMtu6SnflCkRcgpBTyku06J8ZFXxuTEJ Gs8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:content-transfer-encoding:mime-version :message-id:date:subject:cc:from:dkim-signature; bh=kEit7lAB1Ue2Pj5oh+Mlb7ShDCe+fsz5zjPxqobMIKg=; b=ApHYnOc3R/p5vGV0Gx8Zj+eK5CiheHgOESNAnWgPJhvEcBYd97zM7DdtDU/vphm6HX 7CKEIEFXmkBNnNewHb3mlB1FCgVdBwFtsduYTI2oWJ3S2TYp5nRIpIibEHc5VlhNnbn4 mDdy54GIFUOtD2KsosWk9RjZgCQoIC5T894V/8qELirI67uZ3Bf9Jf+OdzOGFfLF6QW+ apJrKoNMxLusKzTW6UsR9LpoxTvpMhxybOeqNDMZvORFG7VNBa730vO2HGQCiYHBr/D7 GSLZUYNru+vlt/JAJ2HBLYNmIejNKCLOQdclqTcVsnYedNmuBPT/BnIr06DL8E+hKdaO rclg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=LOZBVGQx; 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; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t6si14612990pfe.231.2019.07.23.23.06.18; Tue, 23 Jul 2019 23:06:33 -0700 (PDT) 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=fail header.i=@gmail.com header.s=20161025 header.b=LOZBVGQx; 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; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726393AbfGXGFW (ORCPT + 99 others); Wed, 24 Jul 2019 02:05:22 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:35910 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725909AbfGXGFW (ORCPT ); Wed, 24 Jul 2019 02:05:22 -0400 Received: by mail-pg1-f194.google.com with SMTP id l21so20635214pgm.3; Tue, 23 Jul 2019 23:05:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=kEit7lAB1Ue2Pj5oh+Mlb7ShDCe+fsz5zjPxqobMIKg=; b=LOZBVGQxyAGRUFVP8mPfnlKQD07SIGGlVfHqkFTEab3aa0FHzBfOCDb58AWG2QNF11 KT0/Q5L2+y3O8rh914AlOqnBcMckN/0ycwl1E/FhHjHhxV2wsgtluQ9amIthLTXIZ6KI QVczTYnvho5/2SufK7VAhoSU8moWT1GL6DvExtCg7Lrsdc1SHpVZwkLjiB5eWwS5whNu kcFm5zVqBELbsneoH3jM4hjpxAOvrtK2WlyOrptwVEbr6W1vFe8nIK5Yy/36E2LXxg0k zqShovDJzgsBZsQbU6ER2hMs5AJGkNOEhhKPM1P5aGHDoNZ9thbjTArNYZ0eU6WOP1pG GpSQ== 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:mime-version :content-transfer-encoding; bh=kEit7lAB1Ue2Pj5oh+Mlb7ShDCe+fsz5zjPxqobMIKg=; b=SXlT0E7jkA0HBX/cW8hyPkN6v4+RrVPfXJVCHWMZZchX7EZmP7WXmw0XgOtMznMtMj HVdZZfKQSzus6EzrT+RNSOXw2QckRkh+k1DKRKUUasDTXIqUK9VYg+GLMmGQjqHsmcJH JSVDv4inN6jb0agBikhIM7Ig5cRU6rhKBnoB+RMSjKgbs7T7VbSoZ56/l1ystjaLfkbo fv/cGIbGNy4Z0lZQFTSF2EwMh/wret5IbTWtLj7oWt34cEnPUPnTlk+pLR8yYSvvSNER Qj/zRkcdso6RYb8LKK3XBNw4ZotKyi0Hm7mz9kvLI94lIhUwBKFRUmPh8zBclTl1OvhG mtXg== X-Gm-Message-State: APjAAAUHr9EWJ7anGaHG2YfnYzXKPKeAIzZqnVe0YxFE3r88zWASsDRk V6h3Ryxh2WRdoDvhSbjyXf8= X-Received: by 2002:a17:90a:220a:: with SMTP id c10mr87503028pje.33.1563948321586; Tue, 23 Jul 2019 23:05:21 -0700 (PDT) Received: from suzukaze.ipads-lab.se.sjtu.edu.cn ([89.31.126.54]) by smtp.gmail.com with ESMTPSA id y8sm42498752pfn.52.2019.07.23.23.05.17 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 23 Jul 2019 23:05:20 -0700 (PDT) From: Chuhong Yuan Cc: Steffen Klassert , "David S . Miller" , Jay Cliburn , Chris Snook , Rasesh Mody , Michael Chan , Siva Reddy Kallam , Prashant Sreedharan , GR-Linux-NIC-Dev@marvell.com, Jeff Kirsher , Guo-Fu Tseng , intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Chuhong Yuan Subject: [PATCH net-next v2 0/8] Use dev_get_drvdata where possible Date: Wed, 24 Jul 2019 14:05:12 +0800 Message-Id: <20190724060512.23899-1-hslester96@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org These patches use dev_get_drvdata instead of using to_pci_dev + pci_get_drvdata to make code simpler where possible. Changelog: v1 -> v2: - Change pci_set_drvdata to dev_set_drvdata to keep consistency. Chuhong Yuan (8): net: 3com: 3c59x: Use dev_get_drvdata net: atheros: Use dev_get_drvdata net: broadcom: Use dev_get_drvdata e1000e: Use dev_get_drvdata where possible fm10k: Use dev_get_drvdata i40e: Use dev_get_drvdata igb: Use dev_get_drvdata where possible net: jme: Use dev_get_drvdata drivers/net/ethernet/3com/3c59x.c | 8 +++----- drivers/net/ethernet/atheros/alx/main.c | 8 +++----- drivers/net/ethernet/atheros/atl1c/atl1c_main.c | 10 ++++------ drivers/net/ethernet/atheros/atlx/atl1.c | 8 +++----- drivers/net/ethernet/broadcom/bnx2.c | 8 +++----- drivers/net/ethernet/broadcom/bnxt/bnxt.c | 8 +++----- drivers/net/ethernet/broadcom/tg3.c | 8 +++----- drivers/net/ethernet/intel/e1000e/netdev.c | 9 ++++----- drivers/net/ethernet/intel/fm10k/fm10k_pci.c | 6 +++--- drivers/net/ethernet/intel/i40e/i40e_main.c | 10 ++++------ drivers/net/ethernet/intel/igb/igb_main.c | 5 ++--- drivers/net/ethernet/jme.c | 8 +++----- 12 files changed, 38 insertions(+), 58 deletions(-) -- 2.20.1