Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2914045pxk; Mon, 28 Sep 2020 03:43:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwhKcjcRnWJSloluE7WYYMFKjrbBSJmQVdkQ+do6p7sibNgV8ev5/06Jw2N9YoWGgusVlIA X-Received: by 2002:a50:c051:: with SMTP id u17mr995634edd.39.1601289800746; Mon, 28 Sep 2020 03:43:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601289800; cv=none; d=google.com; s=arc-20160816; b=E3yjG6bFvrC0aw6qEBK+NEeUV9Xyovv4V5WNU2QVge7OfG2wsnBXht0stDadb1WqvF mR19WQfCJZM22faLyEvcjkos5BtmVozVCH1Q+9SDuDFx39HZqFmosQoq2ih+P3RGfpdZ xaw9Y6YTB8ryA3tcHBtQqgecbOl+D3zAlfyhxIyXhAcZsEqJfCDr9YfZMGxHetwTs7Je x3KzZqBwYQn8+zisUUMXxuh/u5WcVig55QJeI1ijMmbvvt59XYHKA3nQ0d+S2BWgV2J+ wulwb2jalbhd3H+n9Xe2f28cGzf9lGHek8d3r3d6ZsGqG61xf71g3vmpyepEyAIVgYK9 BpTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=TQMvlLYzShRCjCuL+yV81657EukM33lCWc0jTd+wtqA=; b=aNxjhcc1sBoN5HQqC6wLicVc8QigxTjT+MQXGxFjV8RdtOT7Y07R3eVgeWWAFlvupm uLs90xyopjv2GX5wYDO7kZ//ApAANnXjH9AqvlFtd/eOFpupELgNpJ5mf2qGcIiX17i/ bTSQeKyaMiQBrUqw3NLAwQ7IP3n1YRrW3zYwhxZEhrl05iJ9GlbPdt1sLT6hc0UJLqHQ ScKli6FsKIPOhGH+N59A7RgybQbuprh4afF6hpsFNdnmIwzoGKKvAkcoYFm3yFO3ULey MdR8bMXi2Kmy9CV2ZFEy9y/aGMHpE/2B96xSgcclSgtp2+u9tXzaCSd5V4FqDCv3kt7q oa+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=Q71rF1t2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d12si354761ejj.237.2020.09.28.03.42.56; Mon, 28 Sep 2020 03:43:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=Q71rF1t2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726500AbgI1KmB (ORCPT + 99 others); Mon, 28 Sep 2020 06:42:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33052 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726328AbgI1KmB (ORCPT ); Mon, 28 Sep 2020 06:42:01 -0400 Received: from mail-wm1-x343.google.com (mail-wm1-x343.google.com [IPv6:2a00:1450:4864:20::343]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C280AC0613CF for ; Mon, 28 Sep 2020 03:42:00 -0700 (PDT) Received: by mail-wm1-x343.google.com with SMTP id b79so627632wmb.4 for ; Mon, 28 Sep 2020 03:42:00 -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=TQMvlLYzShRCjCuL+yV81657EukM33lCWc0jTd+wtqA=; b=Q71rF1t2bmcMfRwytJBuynwNN15/ByLljGm4hKcReMfRR3aUAyDnZfL46xPJrM5reY 261DLQFLCHGTe6lH7wxM4tXKkkSWtiPukBCugp85jIdF2XZwCTk0ebKmQ0EGgUhV7NIX NZcl1Yp9qKCFM+lQ1uoHwG4JXjNGpK47v7SmFKWlcGTAHOgnCdm5khI9IsIRygT8PWeM Ihqw7dQhY6PnKnxRUuVowQRqopazgpt+QVAqTI7EiCdXPngzR3EaFUfl6IaHlugtQluw SewPjypPYg/hpYLabx0j+uyAm1+cmc+8RNc20hkwql5hnN3TLagYaeZBnCPGPi3RI9EI XLCw== 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=TQMvlLYzShRCjCuL+yV81657EukM33lCWc0jTd+wtqA=; b=TEj8kwadHodqjUHTxcdPxTA+9vTYJhVn2umD1ia1PmZtmUy8PBwXzaeMgI7PYtllDP bFxNDHjuI7AWFqoxufl/Q/nEKDsANsz8hLB7GNPYfREjJO6JF1tQoD2b5xzBfVEz0fQa e5D87P5x0na7WzMCb9d8kKiNkY1P76oH0c+20p3ljDYv/xp97sgp/ubVay5XyKcvaQsg f390MgXteeB2D9HZskpy1q9dLSDuFVDBxFvirAw43y5+sj0NShFaVVMwA2HX6WgXp+tw uJG9C18h0Xwc+Lj5BID1BGEN6mbcshoADHg+Tns9nL2/z03IrTS/NzeiAVJ2HQOxkWss NqTg== X-Gm-Message-State: AOAM531WoUDQBqfK8ELQpxrd8viYxGLwHrP18VhDXcAnUaKIrlWHPA6V WrRxvEcqLQ9txeAKhGBITRLqJQ== X-Received: by 2002:a05:600c:230c:: with SMTP id 12mr933441wmo.23.1601289719294; Mon, 28 Sep 2020 03:41:59 -0700 (PDT) Received: from debian-brgl.home (lfbn-nic-1-68-20.w2-15.abo.wanadoo.fr. [2.15.159.20]) by smtp.gmail.com with ESMTPSA id f14sm939258wrt.53.2020.09.28.03.41.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Sep 2020 03:41:58 -0700 (PDT) From: Bartosz Golaszewski To: Linus Walleij , Jonathan Corbet , Andy Shevchenko , Kent Gibson Cc: linux-gpio@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH v2 0/9] gpio: mockup: refactoring + documentation Date: Mon, 28 Sep 2020 12:41:46 +0200 Message-Id: <20200928104155.7385-1-brgl@bgdev.pl> X-Mailer: git-send-email 2.26.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Bartosz Golaszewski 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 Bartosz Golaszewski (9): 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: 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 | 154 +++++++++--------- include/linux/string_helpers.h | 2 + lib/string_helpers.c | 25 +++ 4 files changed, 155 insertions(+), 76 deletions(-) create mode 100644 Documentation/admin-guide/gpio/gpio-mockup.rst -- 2.26.1