From patchwork Thu Feb 2 12:16:57 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= X-Patchwork-Id: 9551725 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 6CC9160405 for ; Thu, 2 Feb 2017 12:17:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 619FD28425 for ; Thu, 2 Feb 2017 12:17:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5640C28456; Thu, 2 Feb 2017 12:17:30 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9E9A528425 for ; Thu, 2 Feb 2017 12:17:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751532AbdBBMRY (ORCPT ); Thu, 2 Feb 2017 07:17:24 -0500 Received: from mail-lf0-f66.google.com ([209.85.215.66]:34033 "EHLO mail-lf0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751467AbdBBMRX (ORCPT ); Thu, 2 Feb 2017 07:17:23 -0500 Received: by mail-lf0-f66.google.com with SMTP id q89so1232781lfi.1 for ; Thu, 02 Feb 2017 04:17:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=pWz9o4DOnkhdj7vvlEqWRBkChLr+4+3Xw6LIvRsEcjM=; b=Bu23Tu9dqeZchbGRnZuCddR1r9e/+OI3eSIr+93XPA1Iggi3BaMrrIlYemffj3QuN3 OL45nQruPkVq9mi8oRnqBGJHIlqMW2ekd/pfbJN5ywFT51LhqC0ZVcaxiZTgUhwGfe9g MZR80LWVl7C73GGEcX7GJNdN2hkkK2KXfDrhA2lJEyc0/oe4uTGq4WYJF1jRAYRcK3YT MOjXesGtyEs38bJRXYq5E6l3DviGwJbAniTgv5Lw4XhyUm0EGaGUTmJFqHNjle5FTKL9 WhvYXBKiAGJbCKlvaSfjLFDrkTy3YxX/0c0nicjrCRmwt1zrdnNFvNWBfHXnOvIponwG PelQ== 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:mime-version:content-transfer-encoding; bh=pWz9o4DOnkhdj7vvlEqWRBkChLr+4+3Xw6LIvRsEcjM=; b=MzlsxeTDIgvLncSTTSo6s8+b7iSIEYrCxAeHaM89b1xLBoWtqWUd560ypM3Gle2QFZ +8loCHkwKHfbALL6jD8azhr12t0RNyNXovFY2N5HZCSUQhK63QgDMgF6G1v3f9q1tkqi m+RXz3RhBaiCwQWKW9tvwv4meSprOB5udqO35ZH5iAT6tUB5gLdS1gKtf3IhMiSrQ8SG efGyshQF6sid0hFxAk2Cmgu8bQGGpFVFeNRZ9avAHjZsq5ICdMEVbNqvSVRKksW1h0NX B+aMMdLwxGklqlpZdzB2uK/bxh5+O9yib6vZ3qnYVTFVaVSzc1x9Spxaex7jnuz5qQow rBWw== X-Gm-Message-State: AIkVDXJfAb88ht5OjLvzLHqhpDK6BN1x2AN5bfve5nAl2YxmpzFtm0uIxdS/gHeDE4Is7w== X-Received: by 10.46.7.17 with SMTP id 17mr3257199ljh.48.1486037841747; Thu, 02 Feb 2017 04:17:21 -0800 (PST) Received: from linux-samsung.lan (ip-194-187-74-233.konfederacka.maverick.com.pl. [194.187.74.233]) by smtp.gmail.com with ESMTPSA id t10sm2878398lja.48.2017.02.02.04.17.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 02 Feb 2017 04:17:21 -0800 (PST) From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= To: Kalle Valo Cc: Arend van Spriel , Franky Lin , Hante Meuleman , Pieter-Paul Giesberts , Franky Lin , linux-wireless@vger.kernel.org, brcm80211-dev-list.pdl@broadcom.com, =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= Subject: [PATCH V2 5/7] brcmfmac: sdio: store private pointer to struct brcmf_pub Date: Thu, 2 Feb 2017 13:16:57 +0100 Message-Id: <20170202121659.21130-5-zajec5@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170202121659.21130-1-zajec5@gmail.com> References: <20170202121659.21130-1-zajec5@gmail.com> MIME-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Rafał Miłecki Having access to this struct is useful for using generic stuff and e.g. improving logging messages. Signed-off-by: Rafał Miłecki --- V2: Add this (new) patch --- drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c index c5744b45ec8f..81a1e24852e0 100644 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c @@ -434,6 +434,7 @@ struct brcmf_sdio_count { struct brcmf_sdio { struct brcmf_sdio_dev *sdiodev; /* sdio device handler */ struct brcmf_chip *ci; /* Chip info struct */ + struct brcmf_pub *pub; /* Bus generic struct */ u32 hostintmask; /* Copy of Host Interrupt Mask */ atomic_t intstatus; /* Intstatus bits (events) pending */ @@ -4155,6 +4156,7 @@ struct brcmf_sdio *brcmf_sdio_probe(struct brcmf_sdio_dev *sdiodev) brcmf_err("brcmf_attach failed\n"); goto fail; } + bus->pub = sdiodev->bus_if->drvr; /* allocate scatter-gather table. sg support * will be disabled upon allocation failure.