drm/i915: Unifying debugfs return codes for unsupported features
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Fri, 15 Dec 2017 14:36:35 +0000 (14:36 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Sun, 17 Dec 2017 18:06:01 +0000 (18:06 +0000)
commitab309a6a3a0b3b6ce495c7a31731ff82cff7faa2
tree02308fbd22493f1effda2b3f6e75d5023d14d78e
parent7b6da818d86fddfc88ddb523d6539c1bf7fc6302
drm/i915: Unifying debugfs return codes for unsupported features

Instead of trying different seq_puts messages, lets use common
-ENODEV error code to indicate missing/unsupported feature.

v2: don't forget about guc_log_control fops (Sagar)

Suggested-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Sagar Arun Kamble <sagar.a.kamble@intel.com>
Cc: Sujaritha Sundaresan <sujaritha.sundaresan@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20171215143635.17884-1-michal.wajdeczko@intel.com
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/i915_debugfs.c