Skip to contentSkip to conversation

drm: Clean up errors in cdv_intel_dp.h

PATCH In review GuoHua Chen 2 participants 2 messages Jan 11, 2024

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm: Clean up errors in cdv_intel_dp.h

Fix the following errors reported by checkpatch:

ERROR: else should follow close brace '}'

---
 drivers/gpu/drm/gma500/cdv_intel_dp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/gma500/cdv_intel_dp.c +1 -1
index 27cfeb6b470f..135a1226df1a 100644
@@ -735,7 +735,7 @@ cdv_intel_dp_aux_native_read(struct gma_encoder *encoder,
 		if ((ack & DP_AUX_NATIVE_REPLY_MASK) == DP_AUX_NATIVE_REPLY_ACK) {
 			memcpy(recv, reply + 1, ret - 1);
 			return ret - 1;
-		} else 
+		} else
 			if ((ack & DP_AUX_NATIVE_REPLY_MASK) == DP_AUX_NATIVE_REPLY_DEFER)
 				udelay(100);
 			else
Signature · 1 line
2.17.1
maintainer
#1 lore raw

On Thu, Jan 11, 2024 at 06:56:48AM +0000, GuoHua Chen wrote:

Hi,

Please use the correct prefix: drm/gma500

Also, the change is made in cdv_intel_dp.c and not cdv_intel_dp.h. This seems to be wrong in most of the patches you sent.

Please send these fixes as a series. That makes them easier to process.

Quoted 14 lines

Fix the following errors reported by checkpatch:

ERROR: else should follow close brace '}'

---
 drivers/gpu/drm/gma500/cdv_intel_dp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/gma500/cdv_intel_dp.c +0 -0
index 27cfeb6b470f..135a1226df1a 100644

drivers/gpu/drm/gma500/cdv_intel_dp.c cdv_intel_dp_aux_native_read(struct gma_encoder *encoder, · line 738

Quoted 5 lines
drivers/gpu/drm/gma500/cdv_intel_dp.c +1 -1
@@ -735,7 +735,7 @@ cdv_intel_dp_aux_native_read(struct gma_encoder *encoder,
 		if ((ack & DP_AUX_NATIVE_REPLY_MASK) == DP_AUX_NATIVE_REPLY_ACK) {
 			memcpy(recv, reply + 1, ret - 1);
 			return ret - 1;
-		} else 
+		} else

This doesn't apply. Not sure what happened here. You're removing a trailing space but the error in your description says you need to fix the style of an if-else statement.

-Patrik

Quoted 6 lines
drivers/gpu/drm/gma500/cdv_intel_dp.c +0 -0
 			if ((ack & DP_AUX_NATIVE_REPLY_MASK) == DP_AUX_NATIVE_REPLY_DEFER)
 				udelay(100);
 			else
Signature · 1 line
2.17.1