Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp947968pxk; Fri, 25 Sep 2020 02:02:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzg+8iidvuy4EhJdGji3I+aqc94ZJ9cZn6CLtXa/9vOBNE+AFJs0Fc6z1X73LHmZT3n7L5o X-Received: by 2002:a50:c8cd:: with SMTP id k13mr162780edh.387.1601024535153; Fri, 25 Sep 2020 02:02:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601024535; cv=none; d=google.com; s=arc-20160816; b=CZ0SpFrshRb03hB+s0NInVpr5SN1pPbkOCUCgBNjR+lBtUF39CpItie7WZIS7Jns+2 DFWsCKY44v1vDriJu8kV3Jb/GFVtRG3jKauyhsgc+8ltA8qJFACltfW3ClrmSVH4QCYQ LeyG4hdwymsfp7tVmt5Mdx+S0zw44UcEfiL/FRnpEzeKPnWBSt4gqG2bSSNDEE+zAYfK qSIPj+CczAZthf9O98tYMD72R+uzU2gMDK7L/Soa9e1k+QF1J6uELzOR0qJ9coTyZB0+ I5SpkhCXfQttQQ/v/W1ZFqUSD9snP+5+aOXWF+ZaJ2yIPEt8kYN2kXfmBuB5HUHSWq0X oE2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :ironport-sdr:ironport-sdr; bh=tFOy9BKwYWViHXvNpjVeoiEWHlGVYKbLVru7Lql5Erk=; b=Gl2AeLZwuD4UL+yqOexeveXyQ9exjLQxMVh+wMTj+A+wLzhT+xIUo227rSwY3El/KY eSmad1G2U1gHON2ffkQxvHwYkml8FAXQS8hdCXnzJasEsjawVCtfE1l1onzBMHBW0Rmv Fp2j3B7naTUlQSOYB2WaceRLUmz+duCMLJMh9dgcUmaVqCprUNpAsy8XNwUJ4wI31stE 3+qEnkq36V8hLTYbuu1FIWpKV0uKUb05/FCTU7VbfiWCdI2fD2ZN1Gm7YwaHn1PSztkH rkN11QO91wi67unCkZMN93be9WWryzlHEUJXSK3FOl61tLR9Vxn7Ko34f/tc4MxHD4oh T7zg== 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 q18si1388406eja.581.2020.09.25.02.01.51; Fri, 25 Sep 2020 02:02:15 -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 S1727426AbgIYJAh (ORCPT + 99 others); Fri, 25 Sep 2020 05:00:37 -0400 Received: from mga07.intel.com ([134.134.136.100]:19406 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727044AbgIYJAh (ORCPT ); Fri, 25 Sep 2020 05:00:37 -0400 IronPort-SDR: 7OjYIsobAf/PLluLcJdrFiB8zVVyYx/FUIJdbN++1YmgTkm5vYFj+AGXJOAkCjH/e+41BF2d/L CVuK6PRouY1g== X-IronPort-AV: E=McAfee;i="6000,8403,9754"; a="225621530" X-IronPort-AV: E=Sophos;i="5.77,301,1596524400"; d="scan'208";a="225621530" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Sep 2020 02:00:36 -0700 IronPort-SDR: ILA4FS7fJgpNARCSc58njc14jCnhe09EWCz0ihD1wqPoQ8WeuTcHl89HM/ac6imOfHomH7wyYo mFHomaURuJ3Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,301,1596524400"; d="scan'208";a="339420923" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by orsmga008.jf.intel.com with ESMTP; 25 Sep 2020 02:00:34 -0700 Received: from andy by smile with local (Exim 4.94) (envelope-from ) id 1kLjag-001sVF-NX; Fri, 25 Sep 2020 12:00:30 +0300 Date: Fri, 25 Sep 2020 12:00:30 +0300 From: Andy Shevchenko To: Bartosz Golaszewski Cc: Linus Walleij , Jonathan Corbet , Kent Gibson , linux-gpio@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski Subject: Re: [PATCH 7/9] gpio: mockup: pass the chip label as device property Message-ID: <20200925090030.GY3956970@smile.fi.intel.com> References: <20200924113842.11670-1-brgl@bgdev.pl> <20200924113842.11670-8-brgl@bgdev.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200924113842.11670-8-brgl@bgdev.pl> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 24, 2020 at 01:38:40PM +0200, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski > > While we do check the "chip-name" property in probe(), we never actually > use it. Let's pass the chip label to the driver using device properties > as we'll want to allow users to define their own once dynamically > created chips are supported. > > The property is renamed to "chip-label" to not cause any confusion with > the actual chip name which is of the form: "gpiochipX". > > If the "chip-label" property is missing, let's do what most devices in > drivers/gpio/ do and use dev_name(). ... > + properties[prop++] = PROPERTY_ENTRY_STRING("chip-label", > + chip_label); Forgot to update GPIO_MOCKUP_MAX_PROP? > base = gpio_mockup_range_base(i); > if (base >= 0) > properties[prop++] = PROPERTY_ENTRY_U32("gpio-base", -- With Best Regards, Andy Shevchenko