Skip to content
Snippets Groups Projects
Commit 140bc33e authored by Bin Meng's avatar Bin Meng Committed by Joe Hershberger
Browse files

net: e1000: Mark _disable_wr() and _write_status() as __maybe_unused


Per the comments, e1000_spi_eeprom_disable_wr() and
e1000_spi_eeprom_write_status() have been tested.
Remove the #if 0, #endif and mark them as __maybe_unused.

Signed-off-by: default avatarBin Meng <bmeng.cn@gmail.com>
Acked-by: default avatarJoe Hershberger <joe.hershberger@ni.com>
parent c65a5f4f
Branches
Tags
No related merge requests found
...@@ -182,22 +182,21 @@ static int e1000_spi_eeprom_enable_wr(struct e1000_hw *hw, bool intr) ...@@ -182,22 +182,21 @@ static int e1000_spi_eeprom_enable_wr(struct e1000_hw *hw, bool intr)
* These have been tested to perform correctly, but they are not used by any * These have been tested to perform correctly, but they are not used by any
* of the EEPROM commands at this time. * of the EEPROM commands at this time.
*/ */
#if 0 static __maybe_unused int e1000_spi_eeprom_disable_wr(struct e1000_hw *hw,
static int e1000_spi_eeprom_disable_wr(struct e1000_hw *hw, bool intr) bool intr)
{ {
u8 op[] = { SPI_EEPROM_DISABLE_WR }; u8 op[] = { SPI_EEPROM_DISABLE_WR };
e1000_standby_eeprom(hw); e1000_standby_eeprom(hw);
return e1000_spi_xfer(hw, 8*sizeof(op), op, NULL, intr); return e1000_spi_xfer(hw, 8*sizeof(op), op, NULL, intr);
} }
static int e1000_spi_eeprom_write_status(struct e1000_hw *hw, static __maybe_unused int e1000_spi_eeprom_write_status(struct e1000_hw *hw,
u8 status, bool intr) u8 status, bool intr)
{ {
u8 op[] = { SPI_EEPROM_WRITE_STATUS, status }; u8 op[] = { SPI_EEPROM_WRITE_STATUS, status };
e1000_standby_eeprom(hw); e1000_standby_eeprom(hw);
return e1000_spi_xfer(hw, 8*sizeof(op), op, NULL, intr); return e1000_spi_xfer(hw, 8*sizeof(op), op, NULL, intr);
} }
#endif
static int e1000_spi_eeprom_read_status(struct e1000_hw *hw, bool intr) static int e1000_spi_eeprom_read_status(struct e1000_hw *hw, bool intr)
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment