ret = i2c_transfer(client->adapter, msgs, ARRAY_SIZE(msgs)); if (ret < 0) return ret; elseif (ret != ARRAY_SIZE(msgs)) return -EIO; return 0;
}
/** * devm_sigmadsp_init_i2c() - Initialize SigmaDSP instance * @client: The parent I2C device * @ops: The sigmadsp_ops to use for this instance * @firmware_name: Name of the firmware file to load * * Allocates a SigmaDSP instance and loads the specified firmware file. * * Returns a pointer to a struct sigmadsp on success, or a PTR_ERR() on error.
*/ struct sigmadsp *devm_sigmadsp_init_i2c(struct i2c_client *client, conststruct sigmadsp_ops *ops, constchar *firmware_name)
{ struct sigmadsp *sigmadsp;
sigmadsp = devm_sigmadsp_init(&client->dev, ops, firmware_name); if (IS_ERR(sigmadsp)) return sigmadsp;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.