e1000e: fix LED blink logic for designs with LEDs driven by cathode
authorBruce Allan <bruce.w.allan@intel.com>
Wed, 6 Mar 2013 09:02:41 +0000 (09:02 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 28 Mar 2013 06:32:06 +0000 (23:32 -0700)
commit86a80eab8ced2454bae954b681797c692afe2ea2
tree3adcd833547a770be612ff72050ec1cdc7de3b07
parent772d05c51c4f4896c120ad418b1e91144a2ac813
e1000e: fix LED blink logic for designs with LEDs driven by cathode

When the LEDs are driven by cathode, the bit logic is reversed.  Use the
LED Invert bit to invert the logic.  Cleanup use of a magic number and
change the for loop increment to reduce the number of shifts.

Signed-off-by: Bruce Allan <bruce.w.allan@intel.com>
Tested-by: Jeff Pieper <jeffrey.e.pieper@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/e1000e/mac.c