Home
last modified time | relevance | path

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

/Linux-v6.6/drivers/i2c/
Di2c-core-slave.c20 int i2c_slave_register(struct i2c_client *client, i2c_slave_cb_t slave_cb) in i2c_slave_register() argument
24 if (WARN(IS_ERR_OR_NULL(client) || !slave_cb, "insufficient data\n")) in i2c_slave_register()
45 client->slave_cb = slave_cb; in i2c_slave_register()
52 client->slave_cb = NULL; in i2c_slave_register()
77 client->slave_cb = NULL; in i2c_slave_unregister()
88 int ret = client->slave_cb(client, event, val); in i2c_slave_event()
/Linux-v6.6/include/linux/
Di2c.h351 i2c_slave_cb_t slave_cb; /* callback for slave mode */ member
389 int i2c_slave_register(struct i2c_client *client, i2c_slave_cb_t slave_cb);