Skip to content

Commit 0ee8d76

Browse files
ColinIanKingmiquelraynal
authored andcommitted
mtd: lpddr: Remove space before newline
There is an extraneous space before a newline in a handful of printk messages. Remove the spaces. Signed-off-by: Colin Ian King <colin.i.king@gmail.com> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
1 parent 0ce34f9 commit 0ee8d76

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

drivers/mtd/lpddr/lpddr_cmds.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ static int wait_for_ready(struct map_info *map, struct flchip *chip,
142142
if (dsr & DSR_READY_STATUS)
143143
break;
144144
if (!timeo) {
145-
printk(KERN_ERR "%s: Flash timeout error state %d \n",
145+
printk(KERN_ERR "%s: Flash timeout error state %d\n",
146146
map->name, chip_state);
147147
ret = -ETIME;
148148
break;
@@ -186,7 +186,7 @@ static int wait_for_ready(struct map_info *map, struct flchip *chip,
186186
if (dsr & DSR_ERR) {
187187
/* Clear DSR*/
188188
map_write(map, CMD(~(DSR_ERR)), map->pfow_base + PFOW_DSR);
189-
printk(KERN_WARNING"%s: Bad status on wait: 0x%x \n",
189+
printk(KERN_WARNING"%s: Bad status on wait: 0x%x\n",
190190
map->name, dsr);
191191
print_drs_error(dsr);
192192
ret = -EIO;
@@ -321,7 +321,7 @@ static int chip_ready(struct map_info *map, struct flchip *chip, int mode)
321321
/* Resume and pretend we weren't here. */
322322
put_chip(map, chip);
323323
printk(KERN_ERR "%s: suspend operation failed."
324-
"State may be wrong \n", map->name);
324+
"State may be wrong\n", map->name);
325325
return -EIO;
326326
}
327327
chip->erase_suspended = 1;
@@ -468,7 +468,7 @@ static int do_write_buffer(struct map_info *map, struct flchip *chip,
468468
chip->state = FL_WRITING;
469469
ret = wait_for_ready(map, chip, (1<<lpddr->qinfo->ProgBufferTime));
470470
if (ret) {
471-
printk(KERN_WARNING"%s Buffer program error: %d at %lx; \n",
471+
printk(KERN_WARNING"%s Buffer program error: %d at %lx\n",
472472
map->name, ret, adr);
473473
goto out;
474474
}
@@ -736,7 +736,7 @@ static int do_xxlock(struct mtd_info *mtd, loff_t adr, uint32_t len, int thunk)
736736

737737
ret = wait_for_ready(map, chip, 1);
738738
if (ret) {
739-
printk(KERN_ERR "%s: block unlock error status %d \n",
739+
printk(KERN_ERR "%s: block unlock error status %d\n",
740740
map->name, ret);
741741
goto out;
742742
}

drivers/mtd/lpddr/qinfo_probe.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ static long lpddr_get_qinforec_pos(struct map_info *map, char *id_str)
5555
return minor | (major << bankwidth);
5656
}
5757
}
58-
printk(KERN_ERR"%s qinfo id string is wrong! \n", map->name);
58+
printk(KERN_ERR"%s qinfo id string is wrong!\n", map->name);
5959
BUG();
6060
return -1;
6161
}
@@ -112,7 +112,7 @@ static int lpddr_pfow_present(struct map_info *map, struct lpddr_private *lpddr)
112112

113113
return 1; /* "PFOW" is found */
114114
out:
115-
printk(KERN_WARNING"%s: PFOW string at 0x%lx is not found \n",
115+
printk(KERN_WARNING"%s: PFOW string at 0x%lx is not found\n",
116116
map->name, map->pfow_base);
117117
return 0;
118118
}

0 commit comments

Comments
 (0)