Skip to content

Commit aa59941

Browse files
author
Veijo Pesonen
committed
SFDP: replaces statix fx with usage of anon namespace
1 parent a7e97ef commit aa59941

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

drivers/source/SFDP.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,20 +25,22 @@
2525
#include "mbed_trace.h"
2626
#define TRACE_GROUP "SFDP"
2727

28-
namespace mbed {
28+
namespace {
2929

3030
/* Extracts Parameter ID MSB from the second DWORD of a parameter header */
31-
static inline uint8_t sfdp_get_param_id_msb(uint32_t dword2)
31+
inline uint8_t sfdp_get_param_id_msb(uint32_t dword2)
3232
{
3333
return (dword2 & 0xFF000000) >> 24;
3434
}
3535

3636
/* Extracts Parameter Table Pointer from the second DWORD of a parameter header */
37-
static inline uint32_t sfdp_get_param_tbl_ptr(uint32_t dword2)
37+
inline uint32_t sfdp_get_param_tbl_ptr(uint32_t dword2)
3838
{
3939
return dword2 & 0x00FFFFFF;
4040
}
41+
}
4142

43+
namespace mbed {
4244

4345
/* Verifies SFDP Header and return number of parameter headers */
4446
int sfdp_parse_sfdp_header(sfdp_hdr *sfdp_hdr_ptr)

0 commit comments

Comments
 (0)