Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1835307pxb; Fri, 5 Mar 2021 00:20:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJwpwXacSSW9+xFbtyZiSFkOak13zKx8MTMlqXy5sp7LTeVAZLy2S5UNHp0zGYmAqAHsVUGq X-Received: by 2002:a05:6402:b31:: with SMTP id bo17mr8077997edb.113.1614932425476; Fri, 05 Mar 2021 00:20:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614932425; cv=none; d=google.com; s=arc-20160816; b=nMGSDrt4OfWei91O3PIlg4oRFi0d4lb5ulmwzEreAy1oIFI+66sJjh7W0dv+ohQLIa RtKu9eXD7sabK/R2uJU5+gkjdQs2l2/5xr3Z2O8fXuZcvGbu5ma2nFlB9yyU22oL/jCd 1S163ePkaI+ySjZXy/eyyn5HnJMiqEca1oOhrUJmdqLRhmhuStfet+PFytikvjSbd4ER yJt6rB3lECVeY2Pv8TvPudHKOmR4eGHnWsJbmdtogYEO9AIdIn1kxGe46JRJ+cj4PBTW R8zi/Sm6bl56geNTPSHWXJXnXPPeEHncteTUsCxdSy7vQdHdSozVf1fQg9MOjUc3D0ya yAbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=frr7Psk12tIGcsSy5WyVmhf8hp/xoH8Q3T4PKTXrUQk=; b=jGkzRX+s4+VkUhH4qNwfEq7+pVLYG3W/z/yK0AdP/nRDliZvkuWgp1GzhD0nUa6lk8 nlQ5vej/NFHivUttWJA+nQnAosVTwEbDVrFpwNT7n7Kgj5KUg9Rj7pkLzz5uKSG46Rfd EHxy2iInZ3DmZmWPDCDImpCFuY+D7l8Qhly68zf+GErInJxenWEF0jqWHYeaL5UUPcKV VzFfiQ5KXRjL1jnI+hHovdqi/5+vHFMLHSifW6I9h9omTs9gRCrb71hloTufYAOjN+w9 +JTFFZeWKtl2f7Y7DkBSW79LPhxny7ZTrkCUrAhgROs2LYiz+MNAhSa33JtW1gH6h0K5 dF1g== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bi6si1176886edb.419.2021.03.05.00.20.02; Fri, 05 Mar 2021 00:20:25 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229558AbhCEITF (ORCPT + 99 others); Fri, 5 Mar 2021 03:19:05 -0500 Received: from mail-vs1-f49.google.com ([209.85.217.49]:42196 "EHLO mail-vs1-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229551AbhCEISm (ORCPT ); Fri, 5 Mar 2021 03:18:42 -0500 Received: by mail-vs1-f49.google.com with SMTP id v123so516912vsv.9; Fri, 05 Mar 2021 00:18:41 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=frr7Psk12tIGcsSy5WyVmhf8hp/xoH8Q3T4PKTXrUQk=; b=dVCfmAUxzYomVehH2FxWJEVX2HU4QlG/U6/kfsOwLiH89A9BnWy2q2gSBOqTmMltwp 7m+ijDL9Z6AB4Lr3ROeKeay3te/W5KRjF8fODrx582onNnq/SBwGUWMOcZEyPgG/xkFY ILNn6r6+rEjgQCnkQBTaDk51VOl6ELKdGu7KlcqxkRTxaNrTFWsLMIHEzEO/qgP/4f0h ZumdMLg1Ga75uXD62jItVfIejvfg5Tz8ZFMCj//XjqwBKaBYeuatualAHQgDDFBa1epW Li3ppCIY7DX7ljHCtCvb9trhGkdvheEedr2FMun3piMpNjn6pUmXilrry8ktCrETWssg ofEg== X-Gm-Message-State: AOAM531k0zQjfl5jOxdjCMWptqHUSnr+U55Td6zRrT41FdunK6ZV/f85 9AOI9+VTXt1b0wcMMnfJNdEsZPAqWlJ7NVXt1Bs= X-Received: by 2002:a05:6102:2403:: with SMTP id j3mr5023007vsi.40.1614932321174; Fri, 05 Mar 2021 00:18:41 -0800 (PST) MIME-Version: 1.0 References: <20210304102452.21726-1-brgl@bgdev.pl> <20210304102452.21726-9-brgl@bgdev.pl> In-Reply-To: <20210304102452.21726-9-brgl@bgdev.pl> From: Geert Uytterhoeven Date: Fri, 5 Mar 2021 09:18:30 +0100 Message-ID: Subject: Re: [PATCH v2 08/12] drivers: export device_is_bound() To: Bartosz Golaszewski Cc: Joel Becker , Christoph Hellwig , Shuah Khan , Linus Walleij , Andy Shevchenko , =?UTF-8?Q?Uwe_Kleine=2DK=C3=B6nig?= , Kent Gibson , Jonathan Corbet , "open list:GPIO SUBSYSTEM" , Linux Kernel Mailing List , "open list:DOCUMENTATION" , Bartosz Golaszewski , Greg KH Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org CC Greg On Thu, Mar 4, 2021 at 11:30 AM Bartosz Golaszewski wrote: > > From: Bartosz Golaszewski > > Export the symbol for device_is_bound() so that we can use it in gpio-sim > to check if the simulated GPIO chip is bound before fetching its driver > data from configfs callbacks in order to retrieve the name of the GPIO > chip device. > > Signed-off-by: Bartosz Golaszewski > --- > drivers/base/dd.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/base/dd.c b/drivers/base/dd.c > index 9179825ff646..c62c02e3490a 100644 > --- a/drivers/base/dd.c > +++ b/drivers/base/dd.c > @@ -353,6 +353,7 @@ bool device_is_bound(struct device *dev) > { > return dev->p && klist_node_attached(&dev->p->knode_driver); > } > +EXPORT_SYMBOL_GPL(device_is_bound); > > static void driver_bound(struct device *dev) > { > -- > 2.29.1