tg3: Create funcs for power source switching
authorMatt Carlson <mcarlson@broadcom.com>
Mon, 13 Jun 2011 13:39:02 +0000 (13:39 +0000)
committerDavid S. Miller <davem@conan.davemloft.net>
Wed, 15 Jun 2011 15:11:58 +0000 (11:11 -0400)
commit520b2756d9414cb6b0f6fc70714e95ee9248ebf4
tree0f204d3e50a141d4dcdb7d678553225da7ec2d7a
parent221c56373ee7088dd3015b928782d5e70dc5074e
tg3: Create funcs for power source switching

The power source switching code is about to get a little more complex.
This patch seeks to simplify future power source switching patches by
clarifying the existing code.

Signed-off-by: Matt Carlson <mcarlson@broadcom.com>
Reviewed-by: Michael Chan <mchan@broadcom.com>
Reviewed-by: Benjamin Li <benli@broadcom.com>
Signed-off-by: David S. Miller <davem@conan.davemloft.net>
drivers/net/tg3.c