struct i2c_client * i2c_new_device(struct i2c_adapter *adap, struct i2c_board_info const *info) { struct i2c_client *client; client = kzalloc(sizeof *client, GFP_KERNEL); if (!client) { client = NULL; return NULL; } client->adapter = adap; if (status < 0) { client = NULL; } return client; }