Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp214630pxk; Wed, 9 Sep 2020 03:36:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwzHhI16bh02t1H75PtOuaJV7nGCxmnu4cvo4h+u+1dRhB8qYFlZPoUt2rmJcIleFt/mG89 X-Received: by 2002:aa7:c347:: with SMTP id j7mr3525907edr.185.1599647762298; Wed, 09 Sep 2020 03:36:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599647762; cv=none; d=google.com; s=arc-20160816; b=en1OKJ0Bl8AmMtQT1ukoY0Pn78S//qVFp/ETn2xnekaW72A02GKn27fXFvPiQ7Dm3L GP2EkWdrdRQvnNHfHktdHgm/KO8HE1LIHbPO7xgyX4SGd4OhjlpFcd1REfoRdo/SvFja CaIz/mwOKENrEVnViFfXa/5kWsx68uyH1lTI7B9+Ch9M8nQlEegM7PDCQh5zg5b6qFIw mQmlkaD55Hla3CCoNTCuXBIKtNCM7lZHgDDLdI4G27y5uUHdS7azUxlwlHudjwYrFUew VXg8oNl+yMC2WQuEpIxKa6gO5TAeJmvUxk0z+fc6U3aTk9qev5zfbQZHyhKxIsO4sf4B g2OQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:ironport-sdr:ironport-sdr; bh=NhQmA70jul3Xmt47lAcrwvgZiXr+WWWV2/pWUwmsD4w=; b=JLjwcSz/gaM8fu20qFPgg1FzumReNPE/nRcCtf0hneYX5em/oKne+mEcVrJ67fMBcr LnMRyypiFOVUK3tvr1tFd/p3tzkqa10aCkeupcRcZ9R90ryFn30fkVFplhLQVnMIuqTi XYmhhr5s7OdxhD+bcgaN7ORmFrJon8m2hYc2ua+hB70RzGL+fFhCOsqH3xkAUEbH8Eq/ 0565AksRoZ7xGi1aVmQQJqNlYUdjzsPhcxNFwSKStzveC5ldNoZqwvIEw0aPWE+0BC/T Yc9L9briIRXSuxIvEle3ZaOlqU/kUKH+nu0gmQPSuVIOOQ+CCDMYaGUM8YZQeyV/zbG4 SCvQ== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j6si1043180ejk.734.2020.09.09.03.35.39; Wed, 09 Sep 2020 03:36:02 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728363AbgIIKfJ (ORCPT + 99 others); Wed, 9 Sep 2020 06:35:09 -0400 Received: from mga11.intel.com ([192.55.52.93]:45989 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729129AbgIIKew (ORCPT ); Wed, 9 Sep 2020 06:34:52 -0400 IronPort-SDR: g/o0rrupzx140CJS7pDJtR1/Mh1pjHVrMxzBbBMR4E/jaI6Izbe79+Hi1IxGLiGkEy3uAzHWTw fC+KEjiaRp+A== X-IronPort-AV: E=McAfee;i="6000,8403,9738"; a="155781444" X-IronPort-AV: E=Sophos;i="5.76,409,1592895600"; d="scan'208";a="155781444" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Sep 2020 03:34:45 -0700 IronPort-SDR: 0tve1CYzhTsytisDy1TclHePtLyVjyq3/rDx/tErL8bdbcltl3BLKazn/LxTYXfTz+kvvbMY13 9vpMtXBxBTpQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,409,1592895600"; d="scan'208";a="333775053" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by orsmga008.jf.intel.com with ESMTP; 09 Sep 2020 03:34:43 -0700 Received: from andy by smile with local (Exim 4.94) (envelope-from ) id 1kFxR2-00FPx9-BJ; Wed, 09 Sep 2020 13:34:40 +0300 Date: Wed, 9 Sep 2020 13:34:40 +0300 From: Andy Shevchenko To: Bartosz Golaszewski Cc: Linus Walleij , Mika Westerberg , Kent Gibson , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, Bartosz Golaszewski Subject: Re: [PATCH v2 0/3] gpiolib: generalize GPIO line names property Message-ID: <20200909103440.GM1891694@smile.fi.intel.com> References: <20200909085426.19862-1-brgl@bgdev.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200909085426.19862-1-brgl@bgdev.pl> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 09, 2020 at 10:54:23AM +0200, Bartosz Golaszewski wrote: > 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. Seems it lost my tag for patch 1/3, but in any case now I'm good with it Reviewed-by: Andy Shevchenko > v1 -> v2: > - actually remove the previous devprop source file in patch 3 > - rename the string counting functions to something more explicit > > 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 | 63 ---------------------------------- > 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, 64 insertions(+), 79 deletions(-) > delete mode 100644 drivers/gpio/gpiolib-devprop.c > > -- > 2.26.1 > -- With Best Regards, Andy Shevchenko