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: 719716 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3v7q0l3cgCz9s9Y for ; Thu, 26 Jan 2017 02:36:55 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="pTEhhjMj"; dkim-atps=neutral Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751767AbdAYPee (ORCPT ); Wed, 25 Jan 2017 10:34:34 -0500 Received: from mail-wm0-f47.google.com ([74.125.82.47]:37047 "EHLO mail-wm0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751728AbdAYPed (ORCPT ); Wed, 25 Jan 2017 10:34:33 -0500 Received: by mail-wm0-f47.google.com with SMTP id c206so37095576wme.0 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=G85BoSYT2uVup8Tz28W0ij96zVvYW8ulGkEo4dQuuH9PORB7p6l+4Mlk5pNL687YA5 NWey1h2ZJZ0bcnLH2+gr2fS/0SnNzHQKQDauDKAOii7fh1xuLZmbPFL1RnvhKfiVMUB6 NQtrmn60dAcd0Q/RGFSdTov1i/STDyBKS18WverGrrmq/EbOpcurn0pHQ4/Cr6zSyLQz aX8divvY2FoyK2RRayxumCHVSuhDWHbOv6/cSe9nAOzgn52jpY9jLHxp30UgZb9G98OT qj+cea5EHor6jEvfh52QEUaXxUgSEgz66pjhSvo9TEjy7qpEZsU42Os32f+6FhAMKLwG 1I9Q== X-Gm-Message-State: AIkVDXJPSuCsqovvenNu9CaMmmuZs2vlW4miAbSv4NsbSrRRI2The6dI3pVsnN0Bvin1lIHC 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-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@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(+) 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) {