aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/sfc/net_driver.h
diff options
context:
space:
mode:
authorBen Hutchings <bhutchings@solarflare.com>2009-02-27 08:08:03 -0500
committerDavid S. Miller <davem@davemloft.net>2009-03-02 06:15:05 -0500
commit8129d2173ea7a5b030b4cba044d1f92689895083 (patch)
tree0ae9108fa888fbed0f4b846e17c27f6b44cd3c6e /drivers/net/sfc/net_driver.h
parentb4a44a69877960e620461c663805f7cc52e2a798 (diff)
sfc: Clean up LED control
Reinitialise LEDs after overriding them for identification. Rename set_fault_led method to set_id_led since we always use it for NIC identification and not faults. Signed-off-by: Ben Hutchings <bhutchings@solarflare.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/sfc/net_driver.h')
-rw-r--r--drivers/net/sfc/net_driver.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/sfc/net_driver.h b/drivers/net/sfc/net_driver.h
index ebc7b6340fb0..b81fc727dfff 100644
--- a/drivers/net/sfc/net_driver.h
+++ b/drivers/net/sfc/net_driver.h
@@ -402,8 +402,8 @@ struct efx_blinker {
402 * @major: Major rev. ('A', 'B' ...) 402 * @major: Major rev. ('A', 'B' ...)
403 * @minor: Minor rev. (0, 1, ...) 403 * @minor: Minor rev. (0, 1, ...)
404 * @init: Initialisation function 404 * @init: Initialisation function
405 * @init_leds: Sets up board LEDs 405 * @init_leds: Sets up board LEDs. May be called repeatedly.
406 * @set_fault_led: Turns the fault LED on or off 406 * @set_id_led: Turns the identification LED on or off
407 * @blink: Starts/stops blinking 407 * @blink: Starts/stops blinking
408 * @monitor: Board-specific health check function 408 * @monitor: Board-specific health check function
409 * @fini: Cleanup function 409 * @fini: Cleanup function
@@ -419,9 +419,9 @@ struct efx_board {
419 /* As the LEDs are typically attached to the PHY, LEDs 419 /* As the LEDs are typically attached to the PHY, LEDs
420 * have a separate init callback that happens later than 420 * have a separate init callback that happens later than
421 * board init. */ 421 * board init. */
422 int (*init_leds)(struct efx_nic *efx); 422 void (*init_leds)(struct efx_nic *efx);
423 void (*set_id_led) (struct efx_nic *efx, bool state);
423 int (*monitor) (struct efx_nic *nic); 424 int (*monitor) (struct efx_nic *nic);
424 void (*set_fault_led) (struct efx_nic *efx, bool state);
425 void (*blink) (struct efx_nic *efx, bool start); 425 void (*blink) (struct efx_nic *efx, bool start);
426 void (*fini) (struct efx_nic *nic); 426 void (*fini) (struct efx_nic *nic);
427 struct efx_blinker blinker; 427 struct efx_blinker blinker;