Skip to content

Commit 21a583f

Browse files
author
Marco Felsch
committed
libplatsch: pass platsch_ctx to modeset_create_fb
Pass the whole contect to the helper function to align it with the code base. No functional change. Signed-off-by: Marco Felsch <[email protected]>
1 parent c087139 commit 21a583f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

libplatsch.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,11 +266,12 @@ static int drmprepare_crtc(struct platsch_ctx *ctx, drmModeRes *res,
266266
return -ENOENT;
267267
}
268268

269-
static int modeset_create_fb(int fd, struct modeset_dev *dev)
269+
static int modeset_create_fb(struct platsch_ctx *ctx, struct modeset_dev *dev)
270270
{
271271
struct drm_mode_create_dumb creq;
272272
struct drm_mode_destroy_dumb dreq;
273273
struct drm_mode_map_dumb mreq;
274+
int fd = ctx->drmfd;
274275
int ret;
275276

276277
/* create dumb buffer */
@@ -490,7 +491,7 @@ static int drmprepare_connector(struct platsch_ctx *ctx, drmModeRes *res,
490491
}
491492

492493
/* create a framebuffer for this CRTC */
493-
ret = modeset_create_fb(ctx->drmfd, dev);
494+
ret = modeset_create_fb(ctx, dev);
494495
if (ret) {
495496
error("cannot create framebuffer for connector #%u\n",
496497
conn->connector_id);

0 commit comments

Comments
 (0)