From patchwork Fri Mar 18 02:20:59 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julian Calaby X-Patchwork-Id: 8615731 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 394E3C0553 for ; Fri, 18 Mar 2016 02:21:12 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 605D6202F0 for ; Fri, 18 Mar 2016 02:21:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 82A5120279 for ; Fri, 18 Mar 2016 02:21:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751316AbcCRCVK (ORCPT ); Thu, 17 Mar 2016 22:21:10 -0400 Received: from mail-pf0-f174.google.com ([209.85.192.174]:36034 "EHLO mail-pf0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752550AbcCRCVH (ORCPT ); Thu, 17 Mar 2016 22:21:07 -0400 Received: by mail-pf0-f174.google.com with SMTP id u190so146031736pfb.3 for ; Thu, 17 Mar 2016 19:21:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Bfm/FB4pM29LeMvvev8QHhLqN3SJwNavyOC5W1d4mLI=; b=xd84XxQdUA90P7iVqTQyrF2M8yl3Oo45BJhyW106CewZN/5GoZ7QMx2Nzby5U51y62 ZgOsMX60IMMLFxFU1xrrkjPIBThWFW8Aueu6khzIMiid63Lb6KV/4eNUPJ5BB8zQWHhX Zaa2XstBrxo3tTZQWoTlqhlLNzuBDCAXPOh45qFsYzqushO/QQ452dXfYr9RfsSGdOPs qGWbsAHqPN8KYuY678kKobJu/0kSA6pAGDrntxUKlTBVpSjKOhjbLMBnERoKoOi8qeqe Tt8OQvLA0uZeyNtFTdaAZse2W5nMYA/53MsnNdLPKAGgkp92znZI/FmOWhESCiOXj5ZN +wDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Bfm/FB4pM29LeMvvev8QHhLqN3SJwNavyOC5W1d4mLI=; b=LHCSdYHXBw5Mdt9a78CR2pT1VPuyRh+J3xTp24iYNQoJCWQdIfDRpFgA9gIKBQxRP3 3ZHNePRva+VY0KeeQW2C0pGU9dd3f+mR0AWRUqk1HNoOqpunfoj5he7HVjDkDQKuRsc4 EyAcHx/yG5Y14gW26/0eu2frRvTgnoHJPP1FLDwS8qJJnyYwrhht8kJ71PB2efTajd7l aZXTBgB5girhwPFlqiX1sxGbPbD9rTsaeBDqogsyMQ4hFmUSb2/+MaK4hu8Iz6aE2ZR6 srYsG37l3RkPB5a0utl1yiHZmGQR3jZ/Jg0r3eHMFhKbkVTsTfFm3Gw6RMiPOvKnPYl3 B5cg== X-Gm-Message-State: AD7BkJIPaplSOwGD5/HckX9Ibv2PwS7FQ9OI7i3gFtkMlwz8vEsQkYmrz5/WDLXp9pmBgg== X-Received: by 10.66.90.199 with SMTP id by7mr19762817pab.113.1458267665682; Thu, 17 Mar 2016 19:21:05 -0700 (PDT) Received: from multimedia.lan (C-59-101-14-180.hay.connect.net.au. [59.101.14.180]) by smtp.gmail.com with ESMTPSA id m87sm16378915pfj.38.2016.03.17.19.21.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 17 Mar 2016 19:21:05 -0700 (PDT) From: Julian Calaby To: Kalle Valo Cc: Stanislav Yakovlev , Alexey Khoroshilov , Nicholas Mc Guire , Geliang Tang , linux-wireless@vger.kernel.org Subject: [PATCH 02/19] ipw2x00: use to_pci_dev() Date: Fri, 18 Mar 2016 13:20:59 +1100 Message-Id: X-Mailer: git-send-email 2.7.0 In-Reply-To: References: Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Geliang Tang Use to_pci_dev() instead of open-coding it. Signed-off-by: Geliang Tang Signed-off-by: Julian Calaby Acked-by: Stanislav Yakovlev --- drivers/net/wireless/intel/ipw2x00/ipw2100.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/intel/ipw2x00/ipw2100.c b/drivers/net/wireless/intel/ipw2x00/ipw2100.c index f93a7f7..717320b 100644 --- a/drivers/net/wireless/intel/ipw2x00/ipw2100.c +++ b/drivers/net/wireless/intel/ipw2x00/ipw2100.c @@ -3521,7 +3521,7 @@ static void ipw2100_msg_free(struct ipw2100_priv *priv) static ssize_t show_pci(struct device *d, struct device_attribute *attr, char *buf) { - struct pci_dev *pci_dev = container_of(d, struct pci_dev, dev); + struct pci_dev *pci_dev = to_pci_dev(d); char *out = buf; int i, j; u32 val;