From patchwork Fri Dec 10 18:30:18 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthias Kaehlcke X-Patchwork-Id: 12670621 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C7125C433F5 for ; Fri, 10 Dec 2021 18:30:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245379AbhLJSeK (ORCPT ); Fri, 10 Dec 2021 13:34:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57802 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245132AbhLJSeI (ORCPT ); Fri, 10 Dec 2021 13:34:08 -0500 Received: from mail-pj1-x1035.google.com (mail-pj1-x1035.google.com [IPv6:2607:f8b0:4864:20::1035]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E76AC0617A2 for ; Fri, 10 Dec 2021 10:30:33 -0800 (PST) Received: by mail-pj1-x1035.google.com with SMTP id cq22-20020a17090af99600b001a9550a17a5so10046140pjb.2 for ; Fri, 10 Dec 2021 10:30:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=NX3dxtdtVCuddOAZXwoTv41Ke3AY/AL4bS0SlhPJQ/c=; b=KJasxjA2DuQL857nciXxgyAoXX8Zvlk0p7/GY3zStVz2lbcdWbwxmjd69hNGjJffXQ BsRJQCoU33o3+c6cNGQkmFNfR7MPCWC2L3wclHK0iMK3/PcrP5LSpU512Lqlq99pFOBy lpNaiDxoIQsczl/FGNuM6nPxl+YxDnLof/U64= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=NX3dxtdtVCuddOAZXwoTv41Ke3AY/AL4bS0SlhPJQ/c=; b=HNJfDf+C1dWo4F3DtCNP01iLFA9jIQDoLQUZd8s5bl9q6mDR1eYpD359rRRaZTSTtC GLIF8h0AhTSsP1Yf8XkwnxO7td4zvkBg7/Xe0mFvhLO58tR0TkFdk2x9B8yB76rA8p5d hgYyvSP483JlDN6up0xkxzSwENq3rZTWseJQ9pURMp5LTEKNIEiEXGS+2pCa2BOW26QF 3IK0W36sVplxS6aoJ6yhcPX23IIgxxUelzy78dPuzW8nKmC9MyUVlnAbw2goxABGSrqy D+x2r8cgHyTHWUZXeBkJAD5aaQ/6SP/EtAeaEL0hM/p04Ae+Gmo73MIvpiDOHZIP3xVW MicA== X-Gm-Message-State: AOAM53144Uv2t0qTtlLA3Q2xd2SYPQGOUPPaGwPp2ixTouCFNyQ+7Zs2 U+4frimb872wWRGPWSC9XPhiWw== X-Google-Smtp-Source: ABdhPJzCgbEl8v8a5OVxjl4z8qN/jrANuTCcwiZ3tEdMdK4kiVvV5FaHkF4rUzgQgrIv0dhrZgAo2g== X-Received: by 2002:a17:90b:3b45:: with SMTP id ot5mr25509548pjb.235.1639161033150; Fri, 10 Dec 2021 10:30:33 -0800 (PST) Received: from localhost ([2620:15c:202:201:d386:8bb1:aaa7:a294]) by smtp.gmail.com with UTF8SMTPSA id lj15sm3408617pjb.12.2021.12.10.10.30.31 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 10 Dec 2021 10:30:32 -0800 (PST) From: Matthias Kaehlcke To: Greg Kroah-Hartman , Alan Stern , Rob Herring , Frank Rowand , Mathias Nyman , Felipe Balbi Cc: Peter Chen , linux-kernel@vger.kernel.org, Bastien Nocera , devicetree@vger.kernel.org, linux-usb@vger.kernel.org, Stephen Boyd , Douglas Anderson , Krzysztof Kozlowski , Michal Simek , Roger Quadros , Ravi Chandra Sadineni , Matthias Kaehlcke , "Rafael J. Wysocki" Subject: [PATCH v18 2/5] driver core: Export device_is_bound() Date: Fri, 10 Dec 2021 10:30:18 -0800 Message-Id: <20211210102923.v18.2.Ie1de382686d61909e17fa8def2b83899256e8f5d@changeid> X-Mailer: git-send-email 2.34.1.173.g76aa8bc2d0-goog In-Reply-To: <20211210183021.3500376-1-mka@chromium.org> References: <20211210183021.3500376-1-mka@chromium.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org Export device_is_bound() to enable its use by drivers that are built as modules. Signed-off-by: Matthias Kaehlcke --- Changes in v18: - patch added to the series drivers/base/dd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/base/dd.c b/drivers/base/dd.c index 68ea1f949daa..07eefddd4a77 100644 --- a/drivers/base/dd.c +++ b/drivers/base/dd.c @@ -370,6 +370,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) {