summaryrefslogtreecommitdiffstats
path: root/hw/fsp/fsp-leds.c
diff options
context:
space:
mode:
authorAnshuman Khandual <khandual@linux.vnet.ibm.com>2014-09-23 18:26:49 +0530
committerStewart Smith <stewart@linux.vnet.ibm.com>2014-10-15 17:59:40 +1100
commit76d11883a9ab650e35adaded7306e9ad0ecc1573 (patch)
treee67f32d00979c1330bcdcfff7cf8a5bb89add368 /hw/fsp/fsp-leds.c
parentbf6451f9192d452ca33c42c848903f9269ca7433 (diff)
downloadtalos-skiboot-76d11883a9ab650e35adaded7306e9ad0ecc1573.tar.gz
talos-skiboot-76d11883a9ab650e35adaded7306e9ad0ecc1573.zip
led: Fix white space problems
This patch removes white space problems from the LED code and it's header file. Signed-off-by: Anshuman Khandual <khandual@linux.vnet.ibm.com> Acked-by: Stewart Smith <stewart@linux.vnet.ibm.com> Reviewed-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hw/fsp/fsp-leds.c')
-rw-r--r--hw/fsp/fsp-leds.c44
1 files changed, 22 insertions, 22 deletions
diff --git a/hw/fsp/fsp-leds.c b/hw/fsp/fsp-leds.c
index 4eea8d6b..904a18ee 100644
--- a/hw/fsp/fsp-leds.c
+++ b/hw/fsp/fsp-leds.c
@@ -250,9 +250,9 @@ static void fsp_spcn_set_led_completion(struct fsp_msg *msg)
u8 status = resp->word1 & 0xff00;
/*
- * LED state update request came as part of FSP async message
- * FSP_CMD_SET_LED_STATE, hence need to send response message.
- */
+ * LED state update request came as part of FSP async message
+ * FSP_CMD_SET_LED_STATE, hence need to send response message.
+ */
fail = (status == FSP_STATUS_INVALID_DATA) ||
(status == FSP_STATUS_DMA_ERROR) ||
(status == FSP_STATUS_SPCN_ERROR);
@@ -273,8 +273,8 @@ static void fsp_spcn_set_led_completion(struct fsp_msg *msg)
->ckpt_status;
/* Rollback the changes */
- update_led_list(loc_code, ckpt_status);
- }
+ update_led_list(loc_code, ckpt_status);
+ }
fsp_queue_msg(fsp_mkmsg(cmd, 0), fsp_freemsg);
}
@@ -282,12 +282,12 @@ static void fsp_spcn_set_led_completion(struct fsp_msg *msg)
* Set the state of the LED pointed by the location code
*
* LED command: FAULT state or IDENTIFY state
- * LED state : OFF (reset) or ON (set)
+ * LED state : OFF (reset) or ON (set)
*
* SPCN TCE mapped buffer entries for setting LED state
*
* struct spcn_led_data {
- * u8 lc_len;
+ * u8 lc_len;
* u16 state;
* char lc_code[LOC_CODE_SIZE];
*};
@@ -323,10 +323,10 @@ static int fsp_msg_set_led_state(char *loc_code, bool command, bool state)
return rc;
}
- /*
- * Checkpoint the status here, will use it if the SPCN
- * command eventually fails.
- */
+ /*
+ * Checkpoint the status here, will use it if the SPCN
+ * command eventually fails.
+ */
led->ckpt_status = led->status;
sled.state = led->status;
@@ -367,14 +367,14 @@ static int fsp_msg_set_led_state(char *loc_code, bool command, bool state)
buf_write(buf, u8, sled.lc_len); /* Location code length */
strncpy(buf, sled.lc_code, sled.lc_len); /* Location code */
buf += sled.lc_len;
- buf_write(buf, u16, sled.state); /* LED state */
+ buf_write(buf, u16, sled.state); /* LED state */
msg = fsp_mkmsg(FSP_CMD_SPCN_PASSTHRU, 4,
SPCN_ADDR_MODE_CEC_NODE, cmd_hdr, 0, PSI_DMA_LED_BUF);
- /*
- * Update the local lists based on the attempted SPCN command to
- * set/reset an individual led (CEC or ENCL).
- */
+ /*
+ * Update the local lists based on the attempted SPCN command to
+ * set/reset an individual led (CEC or ENCL).
+ */
lock(&led_lock);
update_led_list(loc_code, sled.state);
msg->user_data = led;
@@ -428,7 +428,7 @@ static u32 fsp_push_data_to_tce(struct fsp_led_data *led, u8 *out_data,
lcode.size = sizeof(lcode);
lcode.status &= 0x0f;
- /*
+ /*
* Check for outbound buffer overflow. If there are still
* more LEDs to be sent across to FSP, dont send, ignore.
*/
@@ -466,11 +466,11 @@ static void fsp_ret_loc_code_list(u16 req_type, char *loc_code)
/* CEC LED list */
list_for_each_safe(&cec_ledq, led, next, link) {
/*
- * When the request type is system wide led list
- * i.e GET_LC_CMPLT_SYS, send the entire contents
- * of the CEC list including both all descendents
- * and all of their enclosures.
- */
+ * When the request type is system wide led list
+ * i.e GET_LC_CMPLT_SYS, send the entire contents
+ * of the CEC list including both all descendents
+ * and all of their enclosures.
+ */
if (req_type == GET_LC_ENCLOSURES)
break;
OpenPOWER on IntegriCloud