]> www.infradead.org Git - nvme.git/commitdiff
i3c: master: Enhance i3c_bus_type visibility for device searching & event monitoring
authorBhoomik Gupta <bhoomik.gupta@nxp.com>
Mon, 8 Jul 2024 05:38:35 +0000 (11:08 +0530)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Fri, 26 Jul 2024 12:21:30 +0000 (14:21 +0200)
Improve the visibility of i3c_bus_type to facilitate searching for
i3c devices attached to the i3c bus. Enable other drivers to use
bus_register_notifier to monitor i3c bus device events.

Signed-off-by: Bhoomik Gupta <bhoomik.gupta@nxp.com>
Link: https://lore.kernel.org/r/20240708053835.3003986-1-bhoomik.gupta@nxp.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/i3c/internals.h
drivers/i3c/master.c
include/linux/i3c/master.h

index 4d99a3524171b9908315bb243fee9c1a3666eb8c..433f6088b7cec8c77288ee24dbee8b18338aa1eb 100644 (file)
@@ -10,8 +10,6 @@
 
 #include <linux/i3c/master.h>
 
-extern const struct bus_type i3c_bus_type;
-
 void i3c_bus_normaluse_lock(struct i3c_bus *bus);
 void i3c_bus_normaluse_unlock(struct i3c_bus *bus);
 
index 3b4d6a8edca36d58f9201892e8beaa9cc6280f72..a211dc4d25bb4bdc66c69f0e90c9eeb496bdd00e 100644 (file)
@@ -342,6 +342,7 @@ const struct bus_type i3c_bus_type = {
        .probe = i3c_device_probe,
        .remove = i3c_device_remove,
 };
+EXPORT_SYMBOL_GPL(i3c_bus_type);
 
 static enum i3c_addr_slot_status
 i3c_bus_get_addr_slot_status(struct i3c_bus *bus, u16 addr)
index 0ca27dd869561fd96c8f2a1470a0f8adae6d4d5e..074f632868d98e2570e109e952c827e92e4e3c89 100644 (file)
@@ -33,6 +33,7 @@ enum {
 struct i3c_master_controller;
 struct i3c_bus;
 struct i3c_device;
+extern const struct bus_type i3c_bus_type;
 
 /**
  * struct i3c_i2c_dev_desc - Common part of the I3C/I2C device descriptor