drm/i915/perf: remove user triggerable warn
authorMatthew Auld <matthew.auld@intel.com>
Mon, 27 Mar 2017 20:32:36 +0000 (21:32 +0100)
committerMika Kuoppala <mika.kuoppala@intel.com>
Tue, 28 Mar 2017 11:52:43 +0000 (14:52 +0300)
commit0a309f9e3dfaa4f5db0bf1b0cab54571744b491a
tree4037da9e3b23f81167e57f88c0c20b70603ddaa4
parentc1aecc537627cfb569a16b4badc2a5ec600c989a
drm/i915/perf: remove user triggerable warn

Don't throw a warning if we are given an invalid property id. While
here let's also bring back Robert' original idea of catching unhandled
enumeration values at compile time.

Fixes: eec688e1420d ("drm/i915: Add i915 perf infrastructure")
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Robert Bragg <robert@sixbynine.org>
Reviewed-by: Robert Bragg <robert@sixbynine.org>
Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170327203236.18276-1-matthew.auld@intel.com
drivers/gpu/drm/i915/i915_perf.c