Commit 63c33ca0 authored by Bhoomik Gupta's avatar Bhoomik Gupta Committed by Alexandre Belloni

i3c: master: Enhance i3c_bus_type visibility for device searching & event monitoring

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: default avatarBhoomik Gupta <bhoomik.gupta@nxp.com>
Link: https://lore.kernel.org/r/20240708053835.3003986-1-bhoomik.gupta@nxp.comSigned-off-by: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
parent 62fe9d06
...@@ -10,8 +10,6 @@ ...@@ -10,8 +10,6 @@
#include <linux/i3c/master.h> #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_lock(struct i3c_bus *bus);
void i3c_bus_normaluse_unlock(struct i3c_bus *bus); void i3c_bus_normaluse_unlock(struct i3c_bus *bus);
......
...@@ -342,6 +342,7 @@ const struct bus_type i3c_bus_type = { ...@@ -342,6 +342,7 @@ const struct bus_type i3c_bus_type = {
.probe = i3c_device_probe, .probe = i3c_device_probe,
.remove = i3c_device_remove, .remove = i3c_device_remove,
}; };
EXPORT_SYMBOL_GPL(i3c_bus_type);
static enum i3c_addr_slot_status static enum i3c_addr_slot_status
i3c_bus_get_addr_slot_status(struct i3c_bus *bus, u16 addr) i3c_bus_get_addr_slot_status(struct i3c_bus *bus, u16 addr)
......
...@@ -33,6 +33,7 @@ enum { ...@@ -33,6 +33,7 @@ enum {
struct i3c_master_controller; struct i3c_master_controller;
struct i3c_bus; struct i3c_bus;
struct i3c_device; struct i3c_device;
extern const struct bus_type i3c_bus_type;
/** /**
* struct i3c_i2c_dev_desc - Common part of the I3C/I2C device descriptor * struct i3c_i2c_dev_desc - Common part of the I3C/I2C device descriptor
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment