Skip to contentSkip to conversation

drm/bridge: clean up some inconsistent indentings

PATCH NAK Yang Li 3 participants 3 messages Sep 20, 2023 – Sep 25, 2023

Subsystems (3)
lore
Share & tools
lore

Yang Li

author
#0 lore raw

PATCH 1/1 drm/bridge: clean up some inconsistent indentings

drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c:336 dw_hdmi_cec_suspend() warn: inconsistent indenting

---
 drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c +3 -3
index 673661160e54..fe2ff4984fc5 100644
@@ -333,9 +333,9 @@ static int __maybe_unused dw_hdmi_cec_suspend(struct device *dev)
 	struct dw_hdmi_cec *cec = dev_get_drvdata(dev);
 
 	/* store interrupt status/mask registers */
-	 cec->regs_polarity = dw_hdmi_read(cec, HDMI_CEC_POLARITY);
-	 cec->regs_mask = dw_hdmi_read(cec, HDMI_CEC_MASK);
-	 cec->regs_mute_stat0 = dw_hdmi_read(cec, HDMI_IH_MUTE_CEC_STAT0);
+	cec->regs_polarity = dw_hdmi_read(cec, HDMI_CEC_POLARITY);
+	cec->regs_mask = dw_hdmi_read(cec, HDMI_CEC_MASK);
+	cec->regs_mute_stat0 = dw_hdmi_read(cec, HDMI_IH_MUTE_CEC_STAT0);
 
 	return 0;
 }
Signature · 1 line
2.20.1.7.g153144c
maintainer NAK
#1 lore raw

NAK

Personally I value maintaining a simple to follow git blame history over correcting indentation.

Ideally bad indentation should never be committed in the first place.

Quoted 28 lines · Yang Li

drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c:336 dw_hdmi_cec_suspend() warn: inconsistent indenting

---
 drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c +3 -4
index 673661160e54..fe2ff4984fc5 100644
@@ -333,9 +333,9 @@ static int __maybe_unused dw_hdmi_cec_suspend(struct device *dev)
        struct dw_hdmi_cec *cec = dev_get_drvdata(dev);
 
        /* store interrupt status/mask registers */
-        cec->regs_polarity = dw_hdmi_read(cec, HDMI_CEC_POLARITY);
-        cec->regs_mask = dw_hdmi_read(cec, HDMI_CEC_MASK);
-        cec->regs_mute_stat0 = dw_hdmi_read(cec, HDMI_IH_MUTE_CEC_STAT0);
+       cec->regs_polarity = dw_hdmi_read(cec, HDMI_CEC_POLARITY);
+       cec->regs_mask = dw_hdmi_read(cec, HDMI_CEC_MASK);
+       cec->regs_mute_stat0 = dw_hdmi_read(cec, HDMI_IH_MUTE_CEC_STAT0);
 
        return 0;
 }
--

2.20.1.7.g153144c

#2 lore raw
Quoted 1 line · Robert Foss

NAK

Feels a bit harsh.

Quoted 4 lines

Personally I value maintaining a simple to follow git blame history over correcting indentation.

Ideally bad indentation should never be committed in the first place.

Agreed, but when that inevitably happens, do you really want it to be cast in stone? To me leaving bad indent (or style, or whatever) in place indicates we don't care, while the opposite is true.

Maybe look into tooling that lets you easily git blame the parent commit of a line in git blame? (For example, in emacs vc-annotate, it's just a matter of hitting 'a'.)

BR,
Jani.

Quoted 30 lines · Yang Li
Quoted 28 lines

drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c:336 dw_hdmi_cec_suspend() warn: inconsistent indenting

---
 drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c +3 -4
index 673661160e54..fe2ff4984fc5 100644
@@ -333,9 +333,9 @@ static int __maybe_unused dw_hdmi_cec_suspend(struct device *dev)
        struct dw_hdmi_cec *cec = dev_get_drvdata(dev);
 
        /* store interrupt status/mask registers */
-        cec->regs_polarity = dw_hdmi_read(cec, HDMI_CEC_POLARITY);
-        cec->regs_mask = dw_hdmi_read(cec, HDMI_CEC_MASK);
-        cec->regs_mute_stat0 = dw_hdmi_read(cec, HDMI_IH_MUTE_CEC_STAT0);
+       cec->regs_polarity = dw_hdmi_read(cec, HDMI_CEC_POLARITY);
+       cec->regs_mask = dw_hdmi_read(cec, HDMI_CEC_MASK);
+       cec->regs_mute_stat0 = dw_hdmi_read(cec, HDMI_IH_MUTE_CEC_STAT0);
 
        return 0;
 }
--

2.20.1.7.g153144c

Signature · 1 line
Jani Nikula, Intel