i3c: master: Enhance i3c_bus_type visibility for device searching & event monitoring
PATCH 1/1 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 Bhoomik Gupta <[email protected]>
--- drivers/i3c/internals.h | 2 -- drivers/i3c/master.c | 1 + include/linux/i3c/master.h | 1 + 3 files changed, 2 insertions(+), 2 deletions(-)
drivers/i3c/internals.h +0 -2
@@ -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);
drivers/i3c/master.c +1 -0
@@ -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)
include/linux/i3c/master.h +1 -0
@@ -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
Signature · 1 line
2.45.2
Quoted 5 lines · Bhoomik Gupta
Improve the visibility of
i3c_bus_typeto facilitate searching for i3c devices attached to the i3c bus. Enable other drivers to usebus_register_notifierto monitor i3c bus device events.
Applied, thanks!
[1/1] i3c: master: Enhance i3c_bus_type visibility for device searching & event monitoring
https://git.kernel.org/abelloni/c/e06704e3f513
Best regards,
Signature · 3 lines
Alexandre Belloni, co-owner and COO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com