From patchwork Wed Apr 13 17:39:13 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 65746 Delivered-To: patch@linaro.org Received: by 10.140.93.198 with SMTP id d64csp142252qge; Wed, 13 Apr 2016 10:39:42 -0700 (PDT) X-Received: by 10.66.141.42 with SMTP id rl10mr14817822pab.48.1460569179600; Wed, 13 Apr 2016 10:39:39 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id xj1si2390870pab.237.2016.04.13.10.39.39; Wed, 13 Apr 2016 10:39:39 -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 S1754133AbcDMRjh (ORCPT + 29 others); Wed, 13 Apr 2016 13:39:37 -0400 Received: from mail-wm0-f50.google.com ([74.125.82.50]:37650 "EHLO mail-wm0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754086AbcDMRjf (ORCPT ); Wed, 13 Apr 2016 13:39:35 -0400 Received: by mail-wm0-f50.google.com with SMTP id n3so90976185wmn.0 for ; Wed, 13 Apr 2016 10:39:34 -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:in-reply-to:references; bh=PcuLgDZ/AYAYpfsBS+a+JiSKWnpRKmSzU88s6eF0//Y=; b=aXlTVWdWntoiSy3VTX8iLIiCZOh9ia5bigVAS3XwlfbT8DnqovekTB6EH1Ua7dq+zk BlSLiQGhJlZmsqGx4Et7VymyjswtSEsJQCemgxcAa4pY+bfBetP6dztYXh+57f04f7mi 3hGEL2PAAUh8hxiX5BXROxPyxmoH5jRgek0Cc= 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=PcuLgDZ/AYAYpfsBS+a+JiSKWnpRKmSzU88s6eF0//Y=; b=aUsdHI8vZNit54TMcLlcz/JtpKGLdSu7HPK2wAqS81ck2iMDy3ON/H/ouEtHGiUzLD 6QjQxHm01pF03/KbMudh220kqcQIZrZ2fAwL91RTL4CKyf2jiahHypa/CIQrUn/17L6r Z/5umdWwtFiBL1gtIuMqX9zZxEfi/yik596LwbWMoywl096ctAZ3uMd+Ip2yuEb2BhN+ OgFB9k65Os256eNtDWjkwQ3Mxgsd2AGUAII1syD/65qIbuM3xJLnvuJM+8A2zuEozOb4 yt5lMMLcN0jfL9CDs7h7OcWrYmKD583XgKONqcYjiwUmKre/+bTU0wiDfhjDOw3Q0tFQ iFqQ== X-Gm-Message-State: AOPr4FU0WwEZ/4vEZ3oN9GG2YPqBGoGdykqPDRZipMP9uzlYfY5cUwn3JMGd1RgTsfr3cTKs X-Received: by 10.28.87.18 with SMTP id l18mr8177973wmb.38.1460569173461; Wed, 13 Apr 2016 10:39:33 -0700 (PDT) Received: from localhost.localdomain (host-92-17-247-99.as13285.net. [92.17.247.99]) by smtp.gmail.com with ESMTPSA id d131sm2317962wmd.12.2016.04.13.10.39.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 13 Apr 2016 10:39:32 -0700 (PDT) From: Srinivas Kandagatla To: Mark Brown , Greg Kroah-Hartman Cc: Srinivas Kandagatla , Maxime Ripard , linux-kernel@vger.kernel.org, rjendra@qti.qualcomm.com Subject: [PATCH v1 2/3] regmap: add dummy regmap_can_raw_write() to header Date: Wed, 13 Apr 2016 18:39:13 +0100 Message-Id: <1460569154-25030-3-git-send-email-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1460569154-25030-1-git-send-email-srinivas.kandagatla@linaro.org> References: <1460569154-25030-1-git-send-email-srinivas.kandagatla@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch adds dummy function for regmap_can_raw_write() in the header file, so that the code can be atleast compiled without regmap enabled. This kind of setup is mostly tested using randomconfig or zero day-testing. Signed-off-by: Srinivas Kandagatla --- include/linux/regmap.h | 6 ++++++ 1 file changed, 6 insertions(+) -- 2.5.0 diff --git a/include/linux/regmap.h b/include/linux/regmap.h index be3da4c..c060b9b 100644 --- a/include/linux/regmap.h +++ b/include/linux/regmap.h @@ -1052,6 +1052,12 @@ static inline bool regmap_can_raw_read(struct regmap *map) return false; } +static inline bool regmap_can_raw_write(struct regmap *map) +{ + WARN_ONCE(1, "regmap API is disabled"); + return false; +} + static inline int regmap_register_patch(struct regmap *map, const struct reg_sequence *regs, int num_regs)