[PATCH] drm/i915/pcode: Fix the coding style
Nitin Gote
nitin.r.gote at intel.com
Mon Feb 10 14:09:24 UTC 2025
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 at 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
More information about the Intel-gfx
mailing list