Searched refs:slave_cb (Results 1 – 2 of 2) sorted by relevance
20 int i2c_slave_register(struct i2c_client *client, i2c_slave_cb_t slave_cb) in i2c_slave_register() argument24 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()
351 i2c_slave_cb_t slave_cb; /* callback for slave mode */ member389 int i2c_slave_register(struct i2c_client *client, i2c_slave_cb_t slave_cb);