Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4061984pxk; Tue, 8 Sep 2020 09:41:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy3cj8GJ/VQm1qdAU62GxwKknFdBt6WMQs+wrZDBVcUswk1lFPT7Tpyw2XYOenl8K1s4VwD X-Received: by 2002:a17:906:2704:: with SMTP id z4mr26065878ejc.350.1599583309865; Tue, 08 Sep 2020 09:41:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599583309; cv=none; d=google.com; s=arc-20160816; b=KWTmmNaRvFdI356FX0Y9f9uKu86eYtVqaofrEifht1jf8X2I0JRXIFFmw/MSy8a3aV cM0C2faB3mTGQRyy+FBep5bSZRWOqSGT9P3bht05g3mFzoz0lSjZxx/1pTgppCflT21k ttjGBHFbaoO9ceYnxpEtTUjRgqv5K90KuNaCX8/u0ib94hWS2b0dHDPGYeLoHPeZr20O nerOhlNwNe0HmnFKBcQvYwuiuqiEQ+bnGBOUkxJz2vnPIJuMmAXQLbJuWisoX9BmeYpr Hof6tKXg2p+wixUfqWuqKjQ1b9Bjgd1Y9+f87BVsgWos8GUJIUNqtz50NuFHhAfGRVE1 hvrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=DQtqq8I3b88XI5RYkNp0j+Hhm0cs0BlkIjWpufTUkHo=; b=v8lp7YeiSMto6hG9NuZc9CVbd6F4PdJ0yioCQSyGyThAKeA6atAlhnyHujnHonofu7 6jC0k3et6QZ2l3vt5z7+tRNkle+bOvsaQV0s4+GdZ9/8DysHORaCE5WHf41AzbcXTzvw d+L8inE7TTVpHizmC9YttsbNRhlcT65IfHMcXSh5L8XYIWcHTiDF873+e9GcN8pXGR5b 7WBtkhLkdVhWKflHWS84CJM9MM2Vc9c9L9gl2/qpPubvb3QiD92RgHKGs4xHRg3RSf2C M2wU6FIFufQ3q87h/E9EztRDFjWjbXwCjAQhkps1b1HcIqbikO5ULPURyjGs0uTsoalM ZafQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=zGVSmZ8T; 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 k21si12197760eje.480.2020.09.08.09.41.27; Tue, 08 Sep 2020 09:41:49 -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=zGVSmZ8T; 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 S1732060AbgIHQko (ORCPT + 99 others); Tue, 8 Sep 2020 12:40:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60584 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732062AbgIHQhZ (ORCPT ); Tue, 8 Sep 2020 12:37:25 -0400 Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 70ED9C0612F3 for ; Tue, 8 Sep 2020 05:58:24 -0700 (PDT) Received: by mail-wm1-x342.google.com with SMTP id a65so17178768wme.5 for ; Tue, 08 Sep 2020 05:58:24 -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=DQtqq8I3b88XI5RYkNp0j+Hhm0cs0BlkIjWpufTUkHo=; b=zGVSmZ8TUolLFNV/SsDchqySxOuN18r9lrsOARAJiX8qgn27HVUTobIjs+FYWvWZpK QJ9gcWtrP5eg2kUnaDlT/VIsKzYVJy5Tgjs6skknmbDBNfWKHIhhM8k92MWQP9grUzvx hO/bdDAA1TCeMktIhuyqFMepQssGn5M6ifZvgjb+ybyIOnK+CeRS5pIKUqZiL2Yvb8c3 p+OxFlYmMmL/IPbMNHXlwiYsiND/zk/JjY2fKEW6VLjK0jG6FgBW4WFbYSkSyJtCUPCy uzKGXeFcqyrWDhyozGOeoo3YF6BqoGxKrANx3KnIVV/KCbwsQmkGjcW4P0RzNP+dYHVk PExQ== 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=DQtqq8I3b88XI5RYkNp0j+Hhm0cs0BlkIjWpufTUkHo=; b=iFwuqjSXH932LVou+U8cM+1nVqTYxspy/LwP7wwUfQCGiWp59nVQgqGQ3OnZZNM2lY RWF/IX5h/lKQ26URfucmhL6SOQn7dTemfrca0ET2OhL6DjeXySevDRp9NB2pVLm1gsQp f003W+EwiX4USEHDlVbMcbJmFrwQXSsAdlinKkbJBRA4MSDbqGdB7vo4kc+jvqCMwist A139cHSLhVc0EQh77aacFuUIwQnUmzHW37DSb0TwswiOOfmovBIMdT0qQEj8BSULl0eH jh1gxwXtTgwDWIg1Jvn+pdbFLcOeXCYcuC2Ee7MIpibpXVJbBQV1GVPDEdoehGddp2G7 sMhA== X-Gm-Message-State: AOAM532l/SGpSPAX30YqId1bYh122ofZ77u9MD+uJQywENOygP4jBgBy /NKKrhDT2W63Tkab4APJnmlGvQ== X-Received: by 2002:a7b:c4c4:: with SMTP id g4mr4396170wmk.110.1599569902933; Tue, 08 Sep 2020 05:58:22 -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 y207sm34817875wmc.17.2020.09.08.05.58.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Sep 2020 05:58:22 -0700 (PDT) From: Bartosz Golaszewski To: Linus Walleij , Mika Westerberg , Andy Shevchenko , Kent Gibson , Greg Kroah-Hartman Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH 0/3] gpiolib: generalize GPIO line names property Date: Tue, 8 Sep 2020 14:58:10 +0200 Message-Id: <20200908125813.8809-1-brgl@bgdev.pl> X-Mailer: git-send-email 2.26.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Bartosz Golaszewski I initially sent this as part of the gpio-mockup overhaul but since these patches are indepentent and the work on gpio-mockup may become more complicated - I'm sending these separately. The only change is adding additional property helpers to count strings in array. Bartosz Golaszewski (3): device: property: add helpers to count items in string arrays gpiolib: generalize devprop_gpiochip_set_names() for device properties gpiolib: unexport devprop_gpiochip_set_names() drivers/gpio/Makefile | 1 - drivers/gpio/gpiolib-acpi.c | 3 -- drivers/gpio/gpiolib-devprop.c | 20 ++++++------- drivers/gpio/gpiolib-of.c | 5 ---- drivers/gpio/gpiolib.c | 55 +++++++++++++++++++++++++++++++--- include/linux/gpio/driver.h | 3 -- include/linux/property.h | 13 ++++++++ 7 files changed, 74 insertions(+), 26 deletions(-) -- 2.26.1