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: 75577 Delivered-To: patch@linaro.org Received: by 10.140.106.11 with SMTP id d11csp24805qgf; Tue, 6 Sep 2016 15:18:42 -0700 (PDT) X-Received: by 10.66.229.9 with SMTP id sm9mr76351890pac.138.1473200322620; Tue, 06 Sep 2016 15:18:42 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g63si37415894pfj.289.2016.09.06.15.18.42; Tue, 06 Sep 2016 15:18:42 -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=pass header.i=@linaro.org; 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=pass (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934897AbcIFWSj (ORCPT + 27 others); Tue, 6 Sep 2016 18:18:39 -0400 Received: from mail-pf0-f181.google.com ([209.85.192.181]:34637 "EHLO mail-pf0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934061AbcIFWSg (ORCPT ); Tue, 6 Sep 2016 18:18:36 -0400 Received: by mail-pf0-f181.google.com with SMTP id p64so78640285pfb.1 for ; Tue, 06 Sep 2016 15:18:36 -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=cpiFnsDmcJ4exDNYYUHkxoFYwQHXTzeD28Lr4gWqtQr/6GAPLGnNeLjDRuEJHGvjkx uq90/Q9w7FB3ZOTgfv0z5kweOHBc7SYnowRnmzn6A/+giT/AJks6Kp4+pwRer2idiBpv pyq0BU1/C9T8LDNn493M+3RdYZN21JC2gPWsVmJo61ykS3GCvV32BCDVyqG+XKzwtB5a ApEvjp0l+nqfkp0PisOiEvTBjO5tKYbilBx1vldSDpTHVik/CPdBuZLXm5Y0gfiqTaGK z9d9Lnh9Ufi+fqUfUxBTyJHLuL1yvWnjKdvV9vZnzErwhkEKpLOMY8r+QY0aVOtNfa3a dMMg== X-Gm-Message-State: AE9vXwPXdGEe51bw6MEIOEGKDpUj4xlYf5C+ttMhXpiwAaBAQOzF5NotwdO5t4mok1H2SJsN 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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Stub the wcnss_ctrl API to allow compile testing wcnss function drivers. Cc: Marcel Holtmann Signed-off-by: Bjorn Andersson --- 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(+) -- 2.5.0 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