Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp239772pxk; Thu, 24 Sep 2020 04:40:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyHiMDpYZQMTUmiXPCz7tpDl5WgPNM0vbBbmO76UdNd7tHLs9mwU32/79zos4dgabK7FRRb X-Received: by 2002:a50:e799:: with SMTP id b25mr505346edn.225.1600947613105; Thu, 24 Sep 2020 04:40:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600947613; cv=none; d=google.com; s=arc-20160816; b=h+/PrMGXoIQDF8HcxyTSH/4F/yGy1cTKU87wqnRxzRSqaf1U89nNwsFvOnpVWFHuCl qdns1u16SHZAZFNd4zYruu2sRQ/belkgKzg0p/aNdYBksUBEM22VwLqvBevOY2X+9nMa FTuBReKjtQWmt/W9wzHiiFzoaXXMu3Sy/ajqALvdI8aZfMesB/QXeKnQxHFIIHqZZWis BZS6B+3bN57A8tkl7w9m5L0vjxDHDZrUXG+Uc+DehsJyGk6s9qEKRkFefIIMNLa7n5yr K3LAGRADadHoxpoNuCJoytLGyfkqO8/RWUbW+sLbALvxz6aXgNVfoGg8SCYeq6UbDseD XVOw== 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=FLL/Sx98lxd1x3lyr+uBKTSay9yyyLoslx53kZxkqUI=; b=zdmC1H5LEuNHnl+rehxtE6ErcAG/z5H7PaT90N/W9v8YmSkz7kyAcvZJwgO1v00+Bz 4LotqE67xJcTvZcISHy0dJJAft1Ye0hb0l5rKpu7POWimh2rM5cZhGg+oaW/2AdBffRC gwCd7KzqQz2BW+rMc3VyYFy83nRyRPm4rhtQ/OF7MmHUnMz4f8SoZ4LyVr8sRDJPNQbt cfwC9SGWQdwhLhHAfYHXQSbsp+TunChPGW27lQISmdiMfSwZkO1aSqNq7Ebjl7gtJqjI HF0EYdLUnoTAw/JWLkxAs7W/z1dSlkHtJ+L7Fpq+AT93tkgEySnpg1if/wwy3UG8QKMG jMUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=vAQ0FAWT; 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 c15si1960954eds.227.2020.09.24.04.39.50; Thu, 24 Sep 2020 04:40:13 -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=vAQ0FAWT; 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 S1727447AbgIXLiu (ORCPT + 99 others); Thu, 24 Sep 2020 07:38:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59624 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727195AbgIXLiu (ORCPT ); Thu, 24 Sep 2020 07:38:50 -0400 Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C96B7C0613D3 for ; Thu, 24 Sep 2020 04:38:49 -0700 (PDT) Received: by mail-wr1-x444.google.com with SMTP id m6so3482601wrn.0 for ; Thu, 24 Sep 2020 04:38:49 -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=FLL/Sx98lxd1x3lyr+uBKTSay9yyyLoslx53kZxkqUI=; b=vAQ0FAWT0KVylcyqqJcCUfCFpNiDU+BswPp5oDUnxUalupXSWv08HnLTCWOY5Y/0vD /NNSV+JbKgeNHJnI/ZGBQi9LEtPzWcpRd5FZeCGxEm3bStW4h98DVZO65JP9Doo+3RvS vjefnFdYx0NPhxs9W/IVXx7nExH9+cIhTqtlmQleSxvZYs0wke7DIosXZ6KGrS0NeAT2 5KongtvQepTN4osy85pgyS+O294PcAwgIHsTIXc864Zan+OahUHMoRZ9OF2hxUbHfM52 hL/Ue0HOvAEN6/QKQY2af05vuXHmVoIYAeJksPst2UcktchbrOd7aQVrjFhzUCfZcqV8 kCAw== 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=FLL/Sx98lxd1x3lyr+uBKTSay9yyyLoslx53kZxkqUI=; b=IMd8myyCMXhVZo8EJpHhFYoas/2J0/Sx9/25ymXJDpoLinIwbDkPkjk0VbX7odSaZv l4zxvGNhVYq8QVgiRexiTuWZA6KksW49YwH5RLAtDiII5KVvywDR20uO1BQ2PJTt/mF7 oD+WeXQL4kaOkY6CA93Z79oHoPm38Zf47ydltt/edykzDQUe3FkbsxF/hxYz2odCCbg8 BHZM3U+csg+0CM4n4ni/DOmOdPQQ51JCNfm8+8sM0snLL3+SX3Knedny9nG2p2dMwd9+ U46Qs3C+gKviaBkaZXeGxGshvGG9spMqpKTyN1xFLrup+18qYBo3uECkbF0QVDN78gbt 3xSg== X-Gm-Message-State: AOAM530tVTkIAu4JQUNrVtKz2eO7DhUKq4E3Nj2ZmBXxu8HYls2xToNU VfzQG4tZM6Csy74ArMOy4LkSRw== X-Received: by 2002:a5d:49d2:: with SMTP id t18mr4366937wrs.99.1600947528426; Thu, 24 Sep 2020 04:38:48 -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 y207sm3390133wmc.17.2020.09.24.04.38.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Sep 2020 04:38:47 -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 0/9] gpio: mockup: refactoring + documentation Date: Thu, 24 Sep 2020 13:38:33 +0200 Message-Id: <20200924113842.11670-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). 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 | 22 +++ 4 files changed, 152 insertions(+), 76 deletions(-) create mode 100644 Documentation/admin-guide/gpio/gpio-mockup.rst -- 2.26.1