Rename buf_list->device to buf_list->dev

This commit is contained in:
Kamil Trzcinski
2022-04-11 09:00:32 +02:00
parent c42262d649
commit f5a6e4ceab
12 changed files with 32 additions and 32 deletions

View File

@ -38,7 +38,7 @@ bool buffer_consumed(buffer_t *buf, const char *who)
buf->mmap_reflinks--;
if (!buf->enqueued && buf->mmap_reflinks == 0) {
if (buf->buf_list->device->hw->buffer_enqueue(buf, who) < 0) {
if (buf->buf_list->dev->hw->buffer_enqueue(buf, who) < 0) {
goto error;
}
@ -138,7 +138,7 @@ buffer_t *buffer_list_dequeue(buffer_list_t *buf_list)
{
buffer_t *buf = NULL;
if (buf_list->device->hw->buffer_list_dequeue(buf_list, &buf) < 0) {
if (buf_list->dev->hw->buffer_list_dequeue(buf_list, &buf) < 0) {
goto error;
}
@ -173,5 +173,5 @@ error:
int buffer_list_pollfd(buffer_list_t *buf_list, struct pollfd *pollfd, bool can_dequeue)
{
return buf_list->device->hw->buffer_list_pollfd(buf_list, pollfd, can_dequeue);
return buf_list->dev->hw->buffer_list_pollfd(buf_list, pollfd, can_dequeue);
}