Intel-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/i915/pcode: Fix the coding style
@ 2025-02-10 14:09 Nitin Gote
  2025-02-10 14:22 ` Andi Shyti
  2025-02-10 18:05 ` ✗ i915.CI.BAT: failure for " Patchwork
  0 siblings, 2 replies; 6+ messages in thread
From: Nitin Gote @ 2025-02-10 14:09 UTC (permalink / raw)
  To: intel-gfx; +Cc: andi.shyti, nitin.r.gote

Prefer binary operator at the end of the previous
line instead of putting operator at the start of
the next line as per coding style.

Signed-off-by: Nitin Gote <nitin.r.gote@intel.com>
---
 drivers/gpu/drm/i915/intel_pcode.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/drivers/gpu/drm/i915/intel_pcode.c b/drivers/gpu/drm/i915/intel_pcode.c
index 3db2ba439bb5..3e6cf3eb831e 100644
--- a/drivers/gpu/drm/i915/intel_pcode.c
+++ b/drivers/gpu/drm/i915/intel_pcode.c
@@ -248,9 +248,9 @@ int snb_pcode_read_p(struct intel_uncore *uncore, u32 mbcmd, u32 p1, u32 p2, u32
 	u32 mbox;
 	int err;
 
-	mbox = REG_FIELD_PREP(GEN6_PCODE_MB_COMMAND, mbcmd)
-		| REG_FIELD_PREP(GEN6_PCODE_MB_PARAM1, p1)
-		| REG_FIELD_PREP(GEN6_PCODE_MB_PARAM2, p2);
+	mbox = REG_FIELD_PREP(GEN6_PCODE_MB_COMMAND, mbcmd) |
+		REG_FIELD_PREP(GEN6_PCODE_MB_PARAM1, p1) |
+		REG_FIELD_PREP(GEN6_PCODE_MB_PARAM2, p2);
 
 	with_intel_runtime_pm(uncore->rpm, wakeref)
 		err = snb_pcode_read(uncore, mbox, val, NULL);
@@ -264,9 +264,9 @@ int snb_pcode_write_p(struct intel_uncore *uncore, u32 mbcmd, u32 p1, u32 p2, u3
 	u32 mbox;
 	int err;
 
-	mbox = REG_FIELD_PREP(GEN6_PCODE_MB_COMMAND, mbcmd)
-		| REG_FIELD_PREP(GEN6_PCODE_MB_PARAM1, p1)
-		| REG_FIELD_PREP(GEN6_PCODE_MB_PARAM2, p2);
+	mbox = REG_FIELD_PREP(GEN6_PCODE_MB_COMMAND, mbcmd) |
+		REG_FIELD_PREP(GEN6_PCODE_MB_PARAM1, p1) |
+		REG_FIELD_PREP(GEN6_PCODE_MB_PARAM2, p2);
 
 	with_intel_runtime_pm(uncore->rpm, wakeref)
 		err = snb_pcode_write(uncore, mbox, val);
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-02-12  9:53 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-10 14:09 [PATCH] drm/i915/pcode: Fix the coding style Nitin Gote
2025-02-10 14:22 ` Andi Shyti
2025-02-11 13:25   ` Jani Nikula
2025-02-12  9:46     ` Gote, Nitin R
2025-02-12  9:53       ` Jani Nikula
2025-02-10 18:05 ` ✗ i915.CI.BAT: failure for " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox