Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5540784ybl; Tue, 10 Dec 2019 07:40:09 -0800 (PST) X-Google-Smtp-Source: APXvYqxSvIl7lWWo5RFuUuTX3FkKXYGbBtGIYR2u8cz24gQHy64T1rx7+oLe5zXs37IQkaTtP25x X-Received: by 2002:aca:d985:: with SMTP id q127mr4324802oig.132.1575992409365; Tue, 10 Dec 2019 07:40:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575992409; cv=none; d=google.com; s=arc-20160816; b=mJfWStW9SucCjw4WQXkaraze3YJXyirpQE7MD5xMXp/XM7TdF6ykiZbzjNq2lEIKf0 OuHZxDc90R9UcE1NXG2u7Esgy3q2XkQFPsm5/+9ULSCE5+v8prZGK2Xpdebv2GeL6w0S WZLx+RpbcFe0bY3O+6GWTFELu4LI2H2dfyt+T7pCKye3644rd29yw4KisuGrAn30FM37 Z9d4j0RCf59ZWxZQKzt3BmfS8i0hguWU/fxWyG/eyYC+qcSiRs4EbycHJg4MhfAuaKcQ zKwUeRdAPVY8e87yZUrazAzmGM9UcFOcncYyUlLOqKyjsg80RvjHiMJjAfv+qk+zxTqz Ev4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=Bj69CJ3nfDYHpCohjkOsZAEMr620SxwzFGJloSVl6Wc=; b=mPs906Ga/0wZiMQHMc7XR8Qo7Et2lO3Uo8eo5GOpodFnxkKVmgH8Os4YNmCgLV63bM rLonRRSTDdVF21+nnt8qvzuWtfgvXehqvr27A2f7EB/BCKVG++rgD9hlHiSuXUuifwha niC+sRv2+Q6wl+V+tb2ozsWN5Bq+nhEHqRWbGrf1eoOwzSBhzHTSD7n3OfqAZnwsVXHV K8ILKFlJwEzeMg5NYifSet79paEL/T0u/SBHBMjL5EDpplcIFLRrijJJ95i/SkkMewtk bypoY1RzHy6e4/FblLPOVr+D49J4DlEho1zU2BJfyQzcwDSJAnl0PMNTEZWdAE2cHbEV 62NQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=YDPKO9wz; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v6si2141675ota.19.2019.12.10.07.39.57; Tue, 10 Dec 2019 07:40:09 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=YDPKO9wz; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727519AbfLJPhk (ORCPT + 99 others); Tue, 10 Dec 2019 10:37:40 -0500 Received: from smtprelay-out1.synopsys.com ([149.117.87.133]:45222 "EHLO smtprelay-out1.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727330AbfLJPhk (ORCPT ); Tue, 10 Dec 2019 10:37:40 -0500 Received: from mailhost.synopsys.com (mdc-mailhost2.synopsys.com [10.225.0.210]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by smtprelay-out1.synopsys.com (Postfix) with ESMTPS id 8A2B9C00BC; Tue, 10 Dec 2019 15:37:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1575992259; bh=wCGz21uv5jylmEZ0nnnjoDbbVduGA33/JL1HaoI4a4g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:In-Reply-To: References:From; b=YDPKO9wzoyy39bw6iC7+R76kinU7HKu9ki7xlgNpkouzr6ES2FCtj56iRAgaPfe+Q ZIR9oIHNjzEildKY/ywHeHs4otRepS3e4WCOEoqPV8vXSYNRDhDqLJGEppwH5Yy6VB KVRXF+mk1PhEcJQURZ12MKLYx/Z7ZFQHLFAI7YCEI6ylywYo2x+5ZJaJrlANuH0DYO gEC24w6H1pFeGejXf+E77nQiAcdVTuPCXd3o3+ufxOKvtSHO6winoIcUFnljbJ4pDW uNDmuelsw1zoLpVCyB1kMDpGpv/ZhkUTZA65gGNilmn4Kg9m0KnemZh+5o3ZAAqny8 kzDPkFLhAHmqQ== Received: from de02.synopsys.com (de02.internal.synopsys.com [10.225.17.21]) by mailhost.synopsys.com (Postfix) with ESMTP id 96528A0062; Tue, 10 Dec 2019 15:37:36 +0000 (UTC) Received: from de02dwia024.internal.synopsys.com (de02dwia024.internal.synopsys.com [10.225.19.81]) by de02.synopsys.com (Postfix) with ESMTP id 6D4D23E2D0; Tue, 10 Dec 2019 16:37:36 +0100 (CET) From: Vitor Soares To: linux-kernel@vger.kernel.org, linux-i3c@lists.infradead.org Cc: Joao.Pinto@synopsys.com, bbrezillon@kernel.org, gregkh@linuxfoundation.org, wsa@the-dreams.de, arnd@arndb.de, broonie@kernel.org, Vitor Soares Subject: [RFC 1/5] i3c: master: export i3c_masterdev_type Date: Tue, 10 Dec 2019 16:37:29 +0100 Message-Id: X-Mailer: git-send-email 2.7.4 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Export i3c_masterdev_type symbol so i3cdev module can verify if an i3c device is a master device. Signed-off-by: Vitor Soares --- drivers/i3c/internals.h | 1 + drivers/i3c/master.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/i3c/internals.h b/drivers/i3c/internals.h index 86b7b44..bc062e8 100644 --- a/drivers/i3c/internals.h +++ b/drivers/i3c/internals.h @@ -11,6 +11,7 @@ #include extern struct bus_type i3c_bus_type; +extern const struct device_type i3c_masterdev_type; void i3c_bus_normaluse_lock(struct i3c_bus *bus); void i3c_bus_normaluse_unlock(struct i3c_bus *bus); diff --git a/drivers/i3c/master.c b/drivers/i3c/master.c index 0436916..a1fb5f7 100644 --- a/drivers/i3c/master.c +++ b/drivers/i3c/master.c @@ -523,9 +523,10 @@ static void i3c_masterdev_release(struct device *dev) of_node_put(dev->of_node); } -static const struct device_type i3c_masterdev_type = { +const struct device_type i3c_masterdev_type = { .groups = i3c_masterdev_groups, }; +EXPORT_SYMBOL_GPL(i3c_masterdev_type); int i3c_bus_set_mode(struct i3c_bus *i3cbus, enum i3c_bus_mode mode, unsigned long max_i2c_scl_rate) -- 2.7.4