From patchwork Wed Jan 25 15:34:17 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 92464 Delivered-To: patch@linaro.org Received: by 10.182.3.34 with SMTP id 2csp2237608obz; Wed, 25 Jan 2017 07:34:46 -0800 (PST) X-Received: by 10.98.8.11 with SMTP id c11mr47361822pfd.135.1485358486393; Wed, 25 Jan 2017 07:34:46 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r17si20243879pgd.173.2017.01.25.07.34.46; Wed, 25 Jan 2017 07:34:46 -0800 (PST) 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=@baylibre-com.20150623.gappssmtp.com; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751803AbdAYPef (ORCPT + 25 others); Wed, 25 Jan 2017 10:34:35 -0500 Received: from mail-wm0-f49.google.com ([74.125.82.49]:36666 "EHLO mail-wm0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751731AbdAYPed (ORCPT ); Wed, 25 Jan 2017 10:34:33 -0500 Received: by mail-wm0-f49.google.com with SMTP id c85so31497741wmi.1 for ; Wed, 25 Jan 2017 07:34:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=B60h2x1N2gcRnEg0o3+3ymjTDz3+F+yMITVR6XGM5eM=; b=pTEhhjMjUUyMFQgip4DyZAmrpGPo2asSk1945+W0kyIQQAkKBrg1O3q8h1uW4dTu/+ gzm1wdaIa04zTO+QVYUtZJHIDQVuoF6w4CgcjqEVyarR5HlmOkjiy9ZLyPhAqhoI+k+B SppjaSyieXqAtFs58PT9BNMSmycPTKexS14LiTaNm3/S6WE8Uso2bmiYU76jyuvc19xk euRQNpJM7CxF7prUYqa55NuT4YbboiScBSE2VbemR+MocG0dfqmV85zKEQYwUslmJARn 4647W59KXoFCDr2HvjACKMlZ19lp3sTb9AmFDi22DZkpjOExLfMDXEED98fuCFfOp3CQ fOuQ== 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; bh=B60h2x1N2gcRnEg0o3+3ymjTDz3+F+yMITVR6XGM5eM=; b=Or5siKvvsRsfynj5Rkt6bfYa3xX6J51lzdGpj71QwaOuay0lb5Y5zc9PoXUY4GkMrP QwejroOCtOp33NcikVQm/YXIG08VmDHEw4OQoovyYaWwOxOk6JUoA70s77Yb42oHzQuk NcRrWa2KQs9Htku+cJ5+aXYXB35UxRvtwOXJc12EfsHpQ6w0sva8WJgz84ThmZCuQwGY ywzakMd3AGz8Dqe1Bk1Qh9cWdJHD0x2rc3XgNswAVR4PJOMHo43vWZchPMktYIQ7uXBg DpboLaRJ2IYLmsdbueShoFOdeNDyHzgAI/AE2A4NE04m9rArckawaGfegrlAXEQ8vwQE gmXw== X-Gm-Message-State: AIkVDXIj84D/Q5NxTM33JTCsz5pP/vjYEitzTXuenghRk1OlsLRRv7rEsdhqLidWmSkbJJ5X X-Received: by 10.28.7.7 with SMTP id 7mr25439318wmh.55.1485358471734; Wed, 25 Jan 2017 07:34:31 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id 33sm2462760wrd.34.2017.01.25.07.34.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 25 Jan 2017 07:34:31 -0800 (PST) From: Bartosz Golaszewski To: Linus Walleij , Alexandre Courbot , Bamvor Jian Zhang Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH 3/7] gpio: mockup: set the mockup flag in struct gpio_chip Date: Wed, 25 Jan 2017 16:34:17 +0100 Message-Id: <1485358461-24070-4-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1485358461-24070-1-git-send-email-bgolaszewski@baylibre.com> References: <1485358461-24070-1-git-send-email-bgolaszewski@baylibre.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org gpio-mockup creates dummy devices, so indicate it. Signed-off-by: Bartosz Golaszewski --- drivers/gpio/gpio-mockup.c | 1 + 1 file changed, 1 insertion(+) -- 2.9.3 diff --git a/drivers/gpio/gpio-mockup.c b/drivers/gpio/gpio-mockup.c index 82a9efd..cf8b1b2 100644 --- a/drivers/gpio/gpio-mockup.c +++ b/drivers/gpio/gpio-mockup.c @@ -101,6 +101,7 @@ static int mockup_gpio_add(struct device *dev, cntr->gc.direction_output = mockup_gpio_dirout; cntr->gc.direction_input = mockup_gpio_dirin; cntr->gc.get_direction = mockup_gpio_get_direction; + cntr->gc.mockup = true; cntr->stats = devm_kzalloc(dev, sizeof(*cntr->stats) * cntr->gc.ngpio, GFP_KERNEL); if (!cntr->stats) {