mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-02 06:23:18 +02:00
Remove trailing whitespace
Change-Id: I1ff9418bcf150558ce7c97fafa3a68e5fa59f11e Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/31227 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:
@ -120,7 +120,7 @@ static int pickit2_get_firmware_version(void)
|
||||
|
||||
ret = usb_interrupt_write(pickit2_handle, ENDPOINT_OUT, (char *)command, CMD_LENGTH, DFLT_TIMEOUT);
|
||||
ret = usb_interrupt_read(pickit2_handle, ENDPOINT_IN, (char *)command, CMD_LENGTH, DFLT_TIMEOUT);
|
||||
|
||||
|
||||
msg_pdbg("PICkit2 Firmware Version: %d.%d\n", (int)command[0], (int)command[1]);
|
||||
if (ret != CMD_LENGTH) {
|
||||
msg_perr("Command Get Firmware Version failed (%s)!\n", usb_strerror());
|
||||
@ -240,7 +240,7 @@ static int pickit2_spi_send_command(struct flashctx *flash, unsigned int writecn
|
||||
buf[i++] = 10;
|
||||
else
|
||||
buf[i++] = 13;
|
||||
|
||||
|
||||
/* Assert CS# */
|
||||
buf[i++] = SCR_VPP_OFF;
|
||||
buf[i++] = SCR_MCLR_GND_ON;
|
||||
@ -291,7 +291,7 @@ static int pickit2_spi_send_command(struct flashctx *flash, unsigned int writecn
|
||||
readcnt, ret);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
/* Actual data starts at byte number two */
|
||||
memcpy(readarr, &buf[1], readcnt);
|
||||
}
|
||||
|
Reference in New Issue
Block a user