Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <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>

authored by

Bhoomik Gupta and committed by
Alexandre Belloni
63c33ca0 62fe9d06

+2 -2
-2
drivers/i3c/internals.h
··· 10 10 11 11 #include <linux/i3c/master.h> 12 12 13 - extern const struct bus_type i3c_bus_type; 14 - 15 13 void i3c_bus_normaluse_lock(struct i3c_bus *bus); 16 14 void i3c_bus_normaluse_unlock(struct i3c_bus *bus); 17 15
+1
drivers/i3c/master.c
··· 342 342 .probe = i3c_device_probe, 343 343 .remove = i3c_device_remove, 344 344 }; 345 + EXPORT_SYMBOL_GPL(i3c_bus_type); 345 346 346 347 static enum i3c_addr_slot_status 347 348 i3c_bus_get_addr_slot_status(struct i3c_bus *bus, u16 addr)
+1
include/linux/i3c/master.h
··· 33 33 struct i3c_master_controller; 34 34 struct i3c_bus; 35 35 struct i3c_device; 36 + extern const struct bus_type i3c_bus_type; 36 37 37 38 /** 38 39 * struct i3c_i2c_dev_desc - Common part of the I3C/I2C device descriptor