[PATCH 09/13] drm/i915/skl: Use MISSING_CASE() in skl_wrpll_params_populate()

Damien Lespiau
2015-05-07T17:38:58Z

We now have a special macro for those cases.

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
---
drivers/gpu/drm/i915/intel_ddi.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/i915/intel_ddi.c b/drivers/gpu/drm/i915/intel_ddi.c
index b9d5d65..ab327a1 100644
--- a/drivers/gpu/drm/i915/intel_ddi.c
+++ b/drivers/gpu/drm/i915/intel_ddi.c
@@ -1145,7 +1145,7 @@ static void skl_wrpll_params_populate(struct skl_wrpll_params *params,
params->pdiv = 4;
break;
default:
- WARN(1, "Incorrect PDiv\n");
+ MISSING_CASE(p0);
}

switch (p2) {
@@ -1162,7 +1162,7 @@ static void skl_wrpll_params_populate(struct skl_wrpll_params *params,
params->kdiv = 3;
break;
default:
- WARN(1, "Incorrect KDiv\n");
+ MISSING_CASE(p2);
}

params->qdiv_ratio = p1;
--
2.1.0