mirror of
https://github.com/memtest86plus/memtest86plus.git
synced 2025-02-25 18:55:23 -06:00
Remove unused strings and useless smb_idx argument in get_spd()
This commit is contained in:
parent
e0cee8e2c3
commit
3bc72c1fd4
508
system/smbus.c
508
system/smbus.c
File diff suppressed because it is too large
Load Diff
@ -55,9 +55,7 @@
|
|||||||
struct pci_smbus_controller{
|
struct pci_smbus_controller{
|
||||||
unsigned vendor;
|
unsigned vendor;
|
||||||
unsigned device;
|
unsigned device;
|
||||||
char *name;
|
|
||||||
void (*get_adr)(void);
|
void (*get_adr)(void);
|
||||||
uint8_t (*read_spd_byte)(uint8_t dimmadr, uint16_t bytenum);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef struct spd_infos {
|
typedef struct spd_infos {
|
||||||
@ -91,8 +89,8 @@ typedef struct ram_infos {
|
|||||||
|
|
||||||
extern ram_info ram;
|
extern ram_info ram;
|
||||||
|
|
||||||
#define get_spd(smb_idx, slot_idx, spd_adr) \
|
#define get_spd(slot_idx, spd_adr) \
|
||||||
smbcontrollers[smb_idx].read_spd_byte(slot_idx, spd_adr)
|
ich5_read_spd_byte(slot_idx, spd_adr)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Print SMBUS Info
|
* Print SMBUS Info
|
||||||
|
Loading…
Reference in New Issue
Block a user