diff options
author | Guido Günther <agx@sigxcpu.org> | 2018-03-15 17:33:19 +0100 |
---|---|---|
committer | Pekka Paalanen <pekka.paalanen@collabora.co.uk> | 2018-03-16 13:39:23 +0200 |
commit | 512d29f82821dee69d2ed5f0a78b5f48ea462576 (patch) | |
tree | 5d98045e0630508781b2c64e70bd8793b3484d45 | |
parent | 6ed5700da5aa2bbaa7bbc0218f42a0e04e2a848c (diff) | |
download | weston-512d29f82821dee69d2ed5f0a78b5f48ea462576.tar.gz |
simpla-dmabuf-drm: Use more weston like coding style
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
-rw-r--r-- | clients/simple-dmabuf-drm.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/clients/simple-dmabuf-drm.c b/clients/simple-dmabuf-drm.c index 51ad51f8..b576ad3a 100644 --- a/clients/simple-dmabuf-drm.c +++ b/clients/simple-dmabuf-drm.c @@ -203,8 +203,8 @@ intel_unmap_bo(struct buffer *my_buf) #ifdef HAVE_LIBDRM_FREEDRENO #define ALIGN(v, a) ((v + a - 1) & ~(a - 1)) -static -int fd_alloc_bo(struct buffer *buf) +static int +fd_alloc_bo(struct buffer *buf) { int flags = DRM_FREEDRENO_GEM_CACHE_WCOMBINE; int size = buf->width * buf->height * buf->bpp / 8; @@ -218,14 +218,14 @@ int fd_alloc_bo(struct buffer *buf) return 1; } -static -void fd_free_bo(struct buffer *buf) +static void +fd_free_bo(struct buffer *buf) { fd_bo_del(buf->fd_bo); } -static -int fd_bo_export_to_prime(struct buffer *buf) +static int +fd_bo_export_to_prime(struct buffer *buf) { buf->dmabuf_fd = fd_bo_dmabuf(buf->fd_bo); if (buf->dmabuf_fd > 0) @@ -234,8 +234,8 @@ int fd_bo_export_to_prime(struct buffer *buf) return 1; } -static -int fd_map_bo(struct buffer *buf) +static int +fd_map_bo(struct buffer *buf) { buf->mmap = fd_bo_map(buf->fd_bo); @@ -245,8 +245,8 @@ int fd_map_bo(struct buffer *buf) return 0; } -static -void fd_unmap_bo(struct buffer *buf) +static void +fd_unmap_bo(struct buffer *buf) { } #endif /* HAVE_LIBDRM_FREEDRENO */ |