src/lib: Fix brace positions

Fix the following errors detected by checkpatch.pl:

ERROR: open brace '{' following function declarations go on the next
line
ERROR: that open brace { should be on the previous line
ERROR: open brace '{' following struct go on the same line
ERROR: else should follow close brace '}'

TEST=Build and run on Galileo Gen2

Change-Id: I971ada9ba9ba7ce5d8029323710fee1a6166570b
Signed-off-by: Lee Leahy <Leroy.P.Leahy@intel.com>
Reviewed-on: https://review.coreboot.org/18759
Tested-by: build bot (Jenkins)
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
Lee Leahy
2017-03-10 15:31:56 -08:00
committed by Martin Roth
parent bab6bc4d77
commit 342f8d6e50
8 changed files with 70 additions and 48 deletions

View File

@@ -23,17 +23,20 @@
#define VBDEBUG(format, args...) printk(BIOS_DEBUG, format, ## args)
#endif
uint32_t tlcl_lib_init(void) {
uint32_t tlcl_lib_init(void)
{
VBDEBUG("MOCK_TPM: %s\n", __func__);
return TPM_E_NO_DEVICE;
}
uint32_t tlcl_startup(void) {
uint32_t tlcl_startup(void)
{
VBDEBUG("MOCK_TPM: %s\n", __func__);
return TPM_E_NO_DEVICE;
}
uint32_t tlcl_resume(void) {
uint32_t tlcl_resume(void)
{
VBDEBUG("MOCK_TPM: %s\n", __func__);
return TPM_E_NO_DEVICE;
}
@@ -69,32 +72,38 @@ uint32_t tlcl_read(uint32_t index, void *data, uint32_t length)
}
uint32_t tlcl_assert_physical_presence(void) {
uint32_t tlcl_assert_physical_presence(void)
{
VBDEBUG("MOCK_TPM: %s\n", __func__);
return TPM_E_NO_DEVICE;
}
uint32_t tlcl_physical_presence_cmd_enable(void) {
uint32_t tlcl_physical_presence_cmd_enable(void)
{
VBDEBUG("MOCK_TPM: %s\n", __func__);
return TPM_E_NO_DEVICE;
}
uint32_t tlcl_finalize_physical_presence(void) {
uint32_t tlcl_finalize_physical_presence(void)
{
VBDEBUG("MOCK_TPM: %s\n", __func__);
return TPM_E_NO_DEVICE;
}
uint32_t tlcl_set_nv_locked(void) {
uint32_t tlcl_set_nv_locked(void)
{
VBDEBUG("MOCK_TPM: %s\n", __func__);
return TPM_E_NO_DEVICE;
}
uint32_t tlcl_force_clear(void) {
uint32_t tlcl_force_clear(void)
{
VBDEBUG("MOCK_TPM: %s\n", __func__);
return TPM_E_NO_DEVICE;
}
uint32_t tlcl_set_enable(void) {
uint32_t tlcl_set_enable(void)
{
VBDEBUG("MOCK_TPM: %s\n", __func__);
return TPM_E_NO_DEVICE;
}