From patchwork Tue Sep 6 22:18:29 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 9317991 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 46C6360760 for ; Tue, 6 Sep 2016 22:20:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 187BE28EA7 for ; Tue, 6 Sep 2016 22:20:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0A4A528E80; Tue, 6 Sep 2016 22:20:03 +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=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_HI autolearn=unavailable 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 938C928E80 for ; Tue, 6 Sep 2016 22:20:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934820AbcIFWSh (ORCPT ); Tue, 6 Sep 2016 18:18:37 -0400 Received: from mail-pf0-f175.google.com ([209.85.192.175]:33080 "EHLO mail-pf0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933754AbcIFWSg (ORCPT ); Tue, 6 Sep 2016 18:18:36 -0400 Received: by mail-pf0-f175.google.com with SMTP id g202so55557969pfb.0 for ; Tue, 06 Sep 2016 15:18:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=jPikqGXmm3ScdIgghnHbjAm/L3Eoy7uRku8MiSa5Pnw=; b=M/cjgJsNQu4r4OYeWO/Y/Uy41BgtGFP+ula8d6QB/FD4J303vgaA1bwl6VT6yCzj4D eUZfcnsYB60EaQj5HRD38ODNbeUAr6ir01fZVcWPxhpsJi9lZQGn4B6WjiPyQX+Zoz3T uiUxjHnZRmsccGaEkPwT6xzqjXHLXGqf3Caj0= 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; bh=jPikqGXmm3ScdIgghnHbjAm/L3Eoy7uRku8MiSa5Pnw=; b=CMVvCCO9Yg9+6XcLVdJen31FtslNsOYWfVCjqwxbuBkqcCN+KMeK9QfSRiQqAKcxdv 1IhwurgDL5082M28HEQXN6SbGwO/UAfEcBjYE9FAltM8EYPCcnM5Dozbhi2kb5bERHJx rFw4AysJQI4Da17dyfTS6/IidK2E1kD7ZowmzFhlxosmSdwc+xE+nUUz3T1vwsRIC4WB t5qwnOC15DLAwqPSZ9JHWiaz5GxsNANkOJz9+NLl5YcSkh4dTtEM7sqo5tDLU/sAu/e1 H0cq9LX5r1KlIIpOAP3B/yZ6wykFQwc2V8LS9352ISGb2ghn9Mx7TYVkzHPZbWw62tgx hjcQ== X-Gm-Message-State: AE9vXwNiVIoScZZ8grdZwFM2fkC8307Mv/FJ4p1zw9SV/hL18iAVa58dYGpMAE6Kub5IqWWK X-Received: by 10.98.107.198 with SMTP id g189mr39205633pfc.14.1473200315487; Tue, 06 Sep 2016 15:18:35 -0700 (PDT) Received: from localhost.localdomain (ip68-111-223-48.sd.sd.cox.net. [68.111.223.48]) by smtp.gmail.com with ESMTPSA id r19sm33305981pfb.31.2016.09.06.15.18.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 06 Sep 2016 15:18:34 -0700 (PDT) From: Bjorn Andersson To: Andy Gross , Eugene Krasnikov , Kalle Valo Cc: wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Marcel Holtmann Subject: [PATCH v4 1/4] soc: qcom: wcnss_ctrl: Stub wcnss_ctrl API Date: Tue, 6 Sep 2016 15:18:29 -0700 Message-Id: <1473200312-22438-1-git-send-email-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.5.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 Stub the wcnss_ctrl API to allow compile testing wcnss function drivers. Cc: Marcel Holtmann Signed-off-by: Bjorn Andersson Acked-by: Andy Gross --- There are no other pending changes colliding with this, so if Andy is okay with this it could be merged through Kalle's tree - together with the other patches. Marcel, with this applied we can drop the depends on QCOM_SMD from the btqcomsmd driver as well. Changes since v3: - Added this patch to allow compile testing without SMD support after patch 2 include/linux/soc/qcom/wcnss_ctrl.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/include/linux/soc/qcom/wcnss_ctrl.h b/include/linux/soc/qcom/wcnss_ctrl.h index a37bc5538f19..eab64976a73b 100644 --- a/include/linux/soc/qcom/wcnss_ctrl.h +++ b/include/linux/soc/qcom/wcnss_ctrl.h @@ -3,6 +3,19 @@ #include +#if IS_ENABLED(CONFIG_QCOM_WCNSS_CTRL) + struct qcom_smd_channel *qcom_wcnss_open_channel(void *wcnss, const char *name, qcom_smd_cb_t cb); +#else + +static inline struct qcom_smd_channel* +qcom_wcnss_open_channel(void *wcnss, const char *name, qcom_smd_cb_t cb) +{ + WARN_ON(1); + return ERR_PTR(-ENXIO); +} + +#endif + #endif