c
// Assume this function is called by a higher-level function which manages the mutex.
int spi_sync(struct spi_device *spi, struct spi_message *message)
{
    return __spi_sync(spi, message);
}
