Message ID | 20200929101004.20288-1-brgl@bgdev.pl |
---|---|
Headers | show
Return-Path: <SRS0=mvGR=DG=vger.kernel.org=linux-gpio-owner@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7FDAEC4727F for <linux-gpio@archiver.kernel.org>; Tue, 29 Sep 2020 10:10:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 323CD216C4 for <linux-gpio@archiver.kernel.org>; Tue, 29 Sep 2020 10:10:17 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=bgdev-pl.20150623.gappssmtp.com header.i=@bgdev-pl.20150623.gappssmtp.com header.b="SUUgbwPm" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725776AbgI2KKQ (ORCPT <rfc822; linux-gpio@archiver.kernel.org>); Tue, 29 Sep 2020 06:10:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52694 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725535AbgI2KKP (ORCPT <rfc822; linux-gpio@vger.kernel.org>); Tue, 29 Sep 2020 06:10:15 -0400 Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B5F3C0613D0 for <linux-gpio@vger.kernel.org>; Tue, 29 Sep 2020 03:10:15 -0700 (PDT) Received: by mail-wr1-x42a.google.com with SMTP id e16so4728140wrm.2 for <linux-gpio@vger.kernel.org>; Tue, 29 Sep 2020 03:10:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=wX07pSeUuLqA9wjMOYNBhUqlyD5UBvsVzAhl80AZh20=; b=SUUgbwPmv1HPLhX+VtkUbKJMt1hEhieePFb0t+WIuQX7veEzo16PF6UR+jveLb0dLU eVdkuFnstU26B1WMYRHzo8ci+a7NrAIskZLJqs29X1pf2JvVysAHdqH3KFGaeWer+WzB wBBEAZf6QkMgpRpw9d0A06fftXk6ZjTEqp6caDlatXmNIxVGDOylfGoDsf/2V83MmOun bUnzOcmr925AzmdLg+Oad/3dPqM+9ORedFQG3ekJoUcHwXFoF+6+KP9L8QLzR1muYk/9 2Kk1Z0xkxyX6UYKVDqZjkaT+d1dE0TG8UhUz94q6MypiAH4ioOLOlp4dWDC7WjOtjQ4I E9Mw== 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:mime-version :content-transfer-encoding; bh=wX07pSeUuLqA9wjMOYNBhUqlyD5UBvsVzAhl80AZh20=; b=lYYheT1Xc9lRkvRAme/hEIffIGk5KrT00iERkgV3vsN8r2QonftsCMLywm5Pf8cTTc zGeGpH85I9UTe3VGDX8qC1y0pEUm3GjBKOW1hEeAoHb5f0WhsCp7wE8h7Z56+eDlW3j3 3PJ1e0PtRxG/uXX4SmnV58NBGXnGFFIrHtfbasvKllD0tv3Ss7qb7cTLyJFfLrPJWUiT jS3ZPHQPD+vy6960tefbTRh/HXeu0x1fmSTWJD1xwNfjWMgOapH+8rfQNTrf6Wsb42jC pHq+KAw1g+0vrXz7ZhdfnQfpzTbqcxJ8+2WdjWk5t4b/6ghc0SiF7iiGvswDaqXTCRu9 loDw== X-Gm-Message-State: AOAM532kW/e5evf4nPjnA7xsAsp+eeglccg2lBnFiWa+P5eOYDhqH/1x D/VQo+EFNBI9iaRuOHB8olRdiA== X-Google-Smtp-Source: ABdhPJyu5A7kb1zd9o0XKRkIireLWaGzK0J84c5nNxmjTMndi7inQttwI+MoT+xB9vvauWg1QPJw5g== X-Received: by 2002:a5d:44cc:: with SMTP id z12mr3468027wrr.189.1601374214037; Tue, 29 Sep 2020 03:10:14 -0700 (PDT) Received: from localhost.localdomain (amontpellier-652-1-68-189.w109-210.abo.wanadoo.fr. [109.210.51.189]) by smtp.gmail.com with ESMTPSA id x19sm3380680wmj.48.2020.09.29.03.10.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Sep 2020 03:10:13 -0700 (PDT) From: Bartosz Golaszewski <brgl@bgdev.pl> To: Linus Walleij <linus.walleij@linaro.org>, Jonathan Corbet <corbet@lwn.net>, Andy Shevchenko <andriy.shevchenko@linux.intel.com>, Kent Gibson <warthog618@gmail.com> Cc: linux-gpio@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski <bgolaszewski@baylibre.com> Subject: [PATCH v3 00/10] gpio: mockup: refactoring + documentation Date: Tue, 29 Sep 2020 12:09:54 +0200 Message-Id: <20200929101004.20288-1-brgl@bgdev.pl> X-Mailer: git-send-email 2.26.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: <linux-gpio.vger.kernel.org> X-Mailing-List: linux-gpio@vger.kernel.org |
Series |
gpio: mockup: refactoring + documentation
|
expand
|
From: Bartosz Golaszewski <bgolaszewski@baylibre.com> These patches were part of the bigger overhaul of gpio-mockup but since the initial idea was dropped in favor of using configfs + sysfs in the future I thought I'd resent just the refactoring of the existing code + documentation patches. I think it's good to apply them since we don't really know when the new interface will be ready (configfs needs a new functionality - commitable items - to support mockup chip instantiation). v1 -> v2: - check for NULL pointer in kfree_strarray() to avoid having to always pass a zeroed string count when the array pointer is NULL - collect review tags from Andy v2 -> v3: - add a patch increasing the number of supported device properties - rename the arguments in kfree_strarray() Bartosz Golaszewski (10): lib: string_helpers: provide kfree_strarray() Documentation: gpio: add documentation for gpio-mockup gpio: mockup: drop unneeded includes gpio: mockup: use KBUILD_MODNAME gpio: mockup: use pr_fmt() gpio: mockup: remove unneeded return statement gpio: mockup: increase the number of supported device properties gpio: mockup: pass the chip label as device property gpio: mockup: use the generic 'gpio-line-names' property gpio: mockup: refactor the module init function .../admin-guide/gpio/gpio-mockup.rst | 50 ++++++ drivers/gpio/gpio-mockup.c | 158 +++++++++--------- include/linux/string_helpers.h | 2 + lib/string_helpers.c | 24 +++ 4 files changed, 156 insertions(+), 78 deletions(-) create mode 100644 Documentation/admin-guide/gpio/gpio-mockup.rst