drm_encoder_init(9)

drm_encoder_init9

Init a preallocated encoder

Usage

int drm_encoder_init(struct drm_device * dev, struct drm_encoder * encoder, const struct drm_encoder_funcs * funcs, int encoder_type);

Arguments

dev

drm device

encoder

the encoder to init

funcs

callbacks for this encoder

encoder_type

user visible type of the encoder

Overview

Initialises a preallocated encoder. Encoder should be subclassed as part of driver encoder objects.

Returns

Zero on success, error code on failure.

Authors

Jesse Barnes <[email protected]>
Intel Corporation,

Initial version

Laurent Pinchart <[email protected]>
Ideas on board SPRL,

Driver internals

Daniel Vetter <[email protected]>
Intel Corporation,

Contributions all over the place

From linux-manual-3.16 3.16.56-1+deb8u1 in Debian 8 (Jessie). Parsed by carta from the page's man source.