lib/igt_kms: Clean up the other _name functions/macros

And remove sprite_name, redundant and won't work due to lack of
dev_priv.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
Daniel Vetter
2014-08-12 11:04:49 +02:00
parent dd8fba44cd
commit 27a19de059
2 changed files with 35 additions and 18 deletions
+9 -4
View File
@@ -51,9 +51,7 @@ enum igt_plane {
IGT_PLANE_CURSOR,
};
const char *plane_name(enum igt_plane p);
#define sprite_name(p, s) ((p) * dev_priv->num_plane + (s) + 'A')
const char *kmstest_plane_name(enum igt_plane plane);
enum port {
PORT_A = 0,
@@ -63,7 +61,14 @@ enum port {
PORT_E,
I915_MAX_PORTS
};
#define port_name(p) ((p) + 'A')
/**
* kmstest_port_name:
* @port: display plane
*
* Returns: String represnting @port, e.g. "A".
*/
#define kmstest_port_name(port) ((port) + 'A')
enum igt_commit_style {
COMMIT_LEGACY = 0,