2020-06-20 04:46:48

by Sudhip Nashi

[permalink] [raw]
Subject: [PATCH] gdrom: Block comments use a trailing */ on a separate line

Fix code style to conform with linux coding standards

Signed-off-by: Sudhip Nashi <[email protected]>
---
drivers/cdrom/gdrom.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/drivers/cdrom/gdrom.c b/drivers/cdrom/gdrom.c
index 09b0cd292720..9707f04b54a3 100644
--- a/drivers/cdrom/gdrom.c
+++ b/drivers/cdrom/gdrom.c
@@ -692,13 +692,15 @@ static int gdrom_init_dma_mode(void)
__raw_writeb(0xEF, GDROM_STATUSCOMMAND_REG);
if (!gdrom_wait_busy_sleeps())
return -EBUSY;
- /* Memory protection setting for GDROM DMA
+ /*
+ * Memory protection setting for GDROM DMA
* Bits 31 - 16 security: 0x8843
* Bits 15 and 7 reserved (0)
* Bits 14 - 8 start of transfer range in 1 MB blocks OR'ed with 0x80
* Bits 6 - 0 end of transfer range in 1 MB blocks OR'ed with 0x80
* (0x40 | 0x80) = start range at 0x0C000000
- * (0x7F | 0x80) = end range at 0x0FFFFFFF */
+ * (0x7F | 0x80) = end range at 0x0FFFFFFF
+ */
__raw_writel(0x8843407F, GDROM_DMA_ACCESS_CTRL_REG);
__raw_writel(9, GDROM_DMA_WAIT_REG); /* DMA word setting */
return 0;
--
2.27.0


2020-06-20 04:48:59

by Jens Axboe

[permalink] [raw]
Subject: Re: [PATCH] gdrom: Block comments use a trailing */ on a separate line

On 6/19/20 3:18 PM, Sudhip Nashi wrote:
> Fix code style to conform with linux coding standards

Let's please just leave these old things alone, not worth the trouble.

--
Jens Axboe