Skip to content

Commit 63c33ca

Browse files
Bhoomik Guptaalexandrebelloni
authored andcommitted
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]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexandre Belloni <[email protected]>
1 parent 62fe9d0 commit 63c33ca

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

drivers/i3c/internals.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010

1111
#include <linux/i3c/master.h>
1212

13-
extern const struct bus_type i3c_bus_type;
14-
1513
void i3c_bus_normaluse_lock(struct i3c_bus *bus);
1614
void i3c_bus_normaluse_unlock(struct i3c_bus *bus);
1715

drivers/i3c/master.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,7 @@ const struct bus_type i3c_bus_type = {
342342
.probe = i3c_device_probe,
343343
.remove = i3c_device_remove,
344344
};
345+
EXPORT_SYMBOL_GPL(i3c_bus_type);
345346

346347
static enum i3c_addr_slot_status
347348
i3c_bus_get_addr_slot_status(struct i3c_bus *bus, u16 addr)

include/linux/i3c/master.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ enum {
3333
struct i3c_master_controller;
3434
struct i3c_bus;
3535
struct i3c_device;
36+
extern const struct bus_type i3c_bus_type;
3637

3738
/**
3839
* struct i3c_i2c_dev_desc - Common part of the I3C/I2C device descriptor

0 commit comments

Comments
 (0)