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