drm/i915: Move default: to the end of the switch
Subsystems (2)
PATCH 1/2 drm/i915: Move default: to the end of the switch
As it's usual to do, don't leave it in the middle of valid cases.
--- drivers/gpu/drm/i915/i915_irq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/i915/i915_irq.c +2 -2
@@ -1484,14 +1484,14 @@ static void i915_get_extra_instdone(struct drm_device *dev, instdone[0 ] =I915_READ (INSTDONE_I965 ); instdone[1 ] =I915_READ (INSTDONE1 );break ; -default : -WARN_ONCE (1 ,"Unsupported platform\n" );case 7 : instdone[0 ] =I915_READ (GEN7_INSTDONE_1 ); instdone[1 ] =I915_READ (GEN7_SC_INSTDONE ); instdone[2 ] =I915_READ (GEN7_SAMPLER_INSTDONE ); instdone[3 ] =I915_READ (GEN7_ROW_INSTDONE );break ; +default : +WARN_ONCE (1 ,"Unsupported platform\n" ); } }
Signature · 1 line
1.8.1.4
PATCH 2/2 drm/i915: Fix 'port' typo in comment
--- drivers/gpu/drm/i915/i915_reg.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/i915/i915_reg.h +1 -1
@@ -390,7 +390,7 @@* * DPIO is VLV only. * -* Note: digital port B is DDI0, digital pot C is DDI1 +* Note: digital port B is DDI0, digital port C is DDI1 */ #define DPIO_DEVFN 0#define DPIO_OPCODE_REG_WRITE 1
Signature · 1 line
1.8.1.4
Jani Nikula
maintainerQuoted 12 lines · Damien Lespiau
As it's usual to do, don't leave it in the middle of valid cases.
Signed-off-by Damien Lespiau <[email protected]>--- drivers/gpu/drm/i915/i915_irq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/gpu/drm/i915/i915_irq.c +0
-0
drivers/gpu/drm/i915/i915_irq.c static void i915_get_extra_instdone(struct drm_device *dev, · line 1488
Quoted 5 lines
drivers/gpu/drm/i915/i915_irq.c +0
-2@@ -1484,14 +1484,14 @@ static void i915_get_extra_instdone(struct drm_device *dev, instdone[0 ] =I915_READ (INSTDONE_I965 ); instdone[1 ] =I915_READ (INSTDONE1 );break ; -default : -WARN_ONCE (1 ,"Unsupported platform\n" );
This is a functional change because of the follow through here. The commit message should reflect this.
BR,
Jani.
Quoted 18 lines
drivers/gpu/drm/i915/i915_irq.c +2
-0case 7 : instdone[0 ] =I915_READ (GEN7_INSTDONE_1 ); instdone[1 ] =I915_READ (GEN7_SC_INSTDONE ); instdone[2 ] =I915_READ (GEN7_SAMPLER_INSTDONE ); instdone[3 ] =I915_READ (GEN7_ROW_INSTDONE );break ; +default : +WARN_ONCE (1 ,"Unsupported platform\n" ); } }Signature · 6 lines
1.8.1.4 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 1 line
Jani Nikula, Intel Open Source Technology Center
Quoted 8 lines · Jani Nikula
Quoted 7 lines · Damien Lespiau
As it's usual to do, don't leave it in the middle of valid cases.
Signed-off-by Damien Lespiau <[email protected]>--- drivers/gpu/drm/i915/i915_irq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Quoted 13 lines
drivers/gpu/drm/i915/i915_irq.c static void i915_get_extra_instdone(struct drm_device *dev, · line 1488
Quoted 10 lines
drivers/gpu/drm/i915/i915_irq.c +0
-2@@ -1484,14 +1484,14 @@ static void i915_get_extra_instdone(struct drm_device *dev, instdone[0 ] =I915_READ (INSTDONE_I965 ); instdone[1 ] =I915_READ (INSTDONE1 );break ; -default : -WARN_ONCE (1 ,"Unsupported platform\n" );This is a functional change because of the follow through here. The commit message should reflect this.
Hum indeed, it was probably intentional, trying to provide a default behaviour? never mind then (it could do with a comment I guess).
Signature · 1 line
Damien
Quoted 25 lines
BR,
Jani.Quoted 18 lines
drivers/gpu/drm/i915/i915_irq.c +2
-0case 7 : instdone[0 ] =I915_READ (GEN7_INSTDONE_1 ); instdone[1 ] =I915_READ (GEN7_SC_INSTDONE ); instdone[2 ] =I915_READ (GEN7_SAMPLER_INSTDONE ); instdone[3 ] =I915_READ (GEN7_ROW_INSTDONE );break ; +default : +WARN_ONCE (1 ,"Unsupported platform\n" ); } }Signature · 6 lines
1.8.1.4 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfxSignature · 1 line
Jani Nikula, Intel Open Source Technology Center