sfc: Make board information explicitly Falcon-specific
Rename struct efx_board to struct falcon_board. Introduce and use inline function to look up board info from struct efx_nic, in preparation for moving it. Move board init and fini calls into NIC probe and remove functions. Signed-off-by: Ben Hutchings <bhutchings@solarflare.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
981fc1b4b8
commit
278c0621fb
@@ -395,7 +395,7 @@ enum efx_led_mode {
|
||||
};
|
||||
|
||||
/**
|
||||
* struct efx_board - board information
|
||||
* struct falcon_board - board information
|
||||
* @type: Board model type
|
||||
* @major: Major rev. ('A', 'B' ...)
|
||||
* @minor: Minor rev. (0, 1, ...)
|
||||
@@ -407,7 +407,7 @@ enum efx_led_mode {
|
||||
* @hwmon_client: I2C client for hardware monitor
|
||||
* @ioexp_client: I2C client for power/port control
|
||||
*/
|
||||
struct efx_board {
|
||||
struct falcon_board {
|
||||
int type;
|
||||
int major;
|
||||
int minor;
|
||||
@@ -752,7 +752,7 @@ struct efx_nic {
|
||||
unsigned int irq_rx_moderation;
|
||||
|
||||
struct i2c_adapter i2c_adap;
|
||||
struct efx_board board_info;
|
||||
struct falcon_board board_info;
|
||||
|
||||
enum nic_state state;
|
||||
enum reset_type reset_pending;
|
||||
|
Reference in New Issue
Block a user