Home
last modified time | relevance | path

Searched refs:slave_cb (Results 1 – 2 of 2) sorted by relevance

/Linux-v5.15/drivers/i2c/
Di2c-core-slave.c17 int i2c_slave_register(struct i2c_client *client, i2c_slave_cb_t slave_cb) in i2c_slave_register() argument
21 if (WARN(IS_ERR_OR_NULL(client) || !slave_cb, "insufficient data\n")) in i2c_slave_register()
42 client->slave_cb = slave_cb; in i2c_slave_register()
49 client->slave_cb = NULL; in i2c_slave_register()
74 client->slave_cb = NULL; in i2c_slave_unregister()
/Linux-v5.15/include/linux/
Di2c.h342 i2c_slave_cb_t slave_cb; /* callback for slave mode */ member
379 int i2c_slave_register(struct i2c_client *client, i2c_slave_cb_t slave_cb);
386 return client->slave_cb(client, event, val); in i2c_slave_event()