Commit 19773eda authored by Nathan Lynch's avatar Nathan Lynch Committed by Michael Ellerman

powerpc/rtas: Remove trailing space

Use scripts/cleanfile to remove instances of trailing space in the
core RTAS code and header.
Signed-off-by: default avatarNathan Lynch <nathanl@linux.ibm.com>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20231106-rtas-trivial-v1-6-61847655c51f@linux.ibm.com
parent 010862d2
...@@ -268,7 +268,7 @@ typedef struct { ...@@ -268,7 +268,7 @@ typedef struct {
#define RTAS_TYPE_DEALLOC 0xE3 #define RTAS_TYPE_DEALLOC 0xE3
#define RTAS_TYPE_DUMP 0xE4 #define RTAS_TYPE_DUMP 0xE4
#define RTAS_TYPE_HOTPLUG 0xE5 #define RTAS_TYPE_HOTPLUG 0xE5
/* I don't add PowerMGM events right now, this is a different topic */ /* I don't add PowerMGM events right now, this is a different topic */
#define RTAS_TYPE_PMGM_POWER_SW_ON 0x60 #define RTAS_TYPE_PMGM_POWER_SW_ON 0x60
#define RTAS_TYPE_PMGM_POWER_SW_OFF 0x61 #define RTAS_TYPE_PMGM_POWER_SW_OFF 0x61
#define RTAS_TYPE_PMGM_LID_OPEN 0x62 #define RTAS_TYPE_PMGM_LID_OPEN 0x62
...@@ -461,7 +461,7 @@ static inline void rtas_cancel_event_scan(void) { } ...@@ -461,7 +461,7 @@ static inline void rtas_cancel_event_scan(void) { }
/* Error types logged. */ /* Error types logged. */
#define ERR_FLAG_ALREADY_LOGGED 0x0 #define ERR_FLAG_ALREADY_LOGGED 0x0
#define ERR_FLAG_BOOT 0x1 /* log was pulled from NVRAM on boot */ #define ERR_FLAG_BOOT 0x1 /* log was pulled from NVRAM on boot */
#define ERR_TYPE_RTAS_LOG 0x2 /* from rtas event-scan */ #define ERR_TYPE_RTAS_LOG 0x2 /* from rtas event-scan */
#define ERR_TYPE_KERNEL_PANIC 0x4 /* from die()/panic() */ #define ERR_TYPE_KERNEL_PANIC 0x4 /* from die()/panic() */
#define ERR_TYPE_KERNEL_PANIC_GZ 0x8 /* ditto, compressed */ #define ERR_TYPE_KERNEL_PANIC_GZ 0x8 /* ditto, compressed */
...@@ -471,7 +471,7 @@ static inline void rtas_cancel_event_scan(void) { } ...@@ -471,7 +471,7 @@ static inline void rtas_cancel_event_scan(void) { }
(ERR_TYPE_RTAS_LOG | ERR_TYPE_KERNEL_PANIC | ERR_TYPE_KERNEL_PANIC_GZ) (ERR_TYPE_RTAS_LOG | ERR_TYPE_KERNEL_PANIC | ERR_TYPE_KERNEL_PANIC_GZ)
#define RTAS_DEBUG KERN_DEBUG "RTAS: " #define RTAS_DEBUG KERN_DEBUG "RTAS: "
#define RTAS_ERROR_LOG_MAX 2048 #define RTAS_ERROR_LOG_MAX 2048
/* /*
......
...@@ -670,7 +670,7 @@ static void call_rtas_display_status_delay(char c) ...@@ -670,7 +670,7 @@ static void call_rtas_display_status_delay(char c)
static int pending_newline = 0; /* did last write end with unprinted newline? */ static int pending_newline = 0; /* did last write end with unprinted newline? */
static int width = 16; static int width = 16;
if (c == '\n') { if (c == '\n') {
while (width-- > 0) while (width-- > 0)
call_rtas_display_status(' '); call_rtas_display_status(' ');
width = 16; width = 16;
...@@ -680,7 +680,7 @@ static void call_rtas_display_status_delay(char c) ...@@ -680,7 +680,7 @@ static void call_rtas_display_status_delay(char c)
if (pending_newline) { if (pending_newline) {
call_rtas_display_status('\r'); call_rtas_display_status('\r');
call_rtas_display_status('\n'); call_rtas_display_status('\n');
} }
pending_newline = 0; pending_newline = 0;
if (width--) { if (width--) {
call_rtas_display_status(c); call_rtas_display_status(c);
...@@ -820,7 +820,7 @@ void rtas_progress(char *s, unsigned short hex) ...@@ -820,7 +820,7 @@ void rtas_progress(char *s, unsigned short hex)
else else
rtas_call(display_character, 1, 1, NULL, '\r'); rtas_call(display_character, 1, 1, NULL, '\r');
} }
if (row_width) if (row_width)
width = row_width[current_line]; width = row_width[current_line];
else else
...@@ -840,9 +840,9 @@ void rtas_progress(char *s, unsigned short hex) ...@@ -840,9 +840,9 @@ void rtas_progress(char *s, unsigned short hex)
spin_unlock(&progress_lock); spin_unlock(&progress_lock);
return; return;
} }
/* RTAS wants CR-LF, not just LF */ /* RTAS wants CR-LF, not just LF */
if (*os == '\n') { if (*os == '\n') {
rtas_call(display_character, 1, 1, NULL, '\r'); rtas_call(display_character, 1, 1, NULL, '\r');
rtas_call(display_character, 1, 1, NULL, '\n'); rtas_call(display_character, 1, 1, NULL, '\n');
...@@ -852,7 +852,7 @@ void rtas_progress(char *s, unsigned short hex) ...@@ -852,7 +852,7 @@ void rtas_progress(char *s, unsigned short hex)
*/ */
rtas_call(display_character, 1, 1, NULL, *os); rtas_call(display_character, 1, 1, NULL, *os);
} }
if (row_width) if (row_width)
width = row_width[current_line]; width = row_width[current_line];
else else
...@@ -861,15 +861,15 @@ void rtas_progress(char *s, unsigned short hex) ...@@ -861,15 +861,15 @@ void rtas_progress(char *s, unsigned short hex)
width--; width--;
rtas_call(display_character, 1, 1, NULL, *os); rtas_call(display_character, 1, 1, NULL, *os);
} }
os++; os++;
/* if we overwrite the screen length */ /* if we overwrite the screen length */
if (width <= 0) if (width <= 0)
while ((*os != 0) && (*os != '\n') && (*os != '\r')) while ((*os != 0) && (*os != '\n') && (*os != '\r'))
os++; os++;
} }
spin_unlock(&progress_lock); spin_unlock(&progress_lock);
} }
EXPORT_SYMBOL_GPL(rtas_progress); /* needed by rtas_flash module */ EXPORT_SYMBOL_GPL(rtas_progress); /* needed by rtas_flash module */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment