summary refs log tree commit diff
path: root/drivers/macintosh/ans-lcd.h
diff options
context:
space:
mode:
authorFinn Thain <fthain@telegraphics.com.au>2018-07-02 04:21:18 -0400
committerMichael Ellerman <mpe@ellerman.id.au>2018-07-31 19:56:40 +1000
commitc57902d52e2d61299872ddc89645d3aa299f1b91 (patch)
tree2ee789150109b1c10726a4ef36b8aee63ea95cf7 /drivers/macintosh/ans-lcd.h
parent7ad94699a94b388780e40158e6954a22b68e9d20 (diff)
downloadlinux-c57902d52e2d61299872ddc89645d3aa299f1b91.tar.gz
macintosh/via-pmu: Enhance state machine with new 'uninitialized' state
On 68k Macs, the via/vias pointer can't be used to determine whether
the PMU driver has been initialized. For portability, add a new state
to indicate that via_find_pmu() succeeded.

After via_find_pmu() executes, testing vias == NULL is equivalent to
testing via == NULL. Replace these tests with pmu_state == uninitialized
which is simpler and more consistent. No functional change.

Tested-by: Stan Johnson <userm57@yahoo.com>
Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'drivers/macintosh/ans-lcd.h')
0 files changed, 0 insertions, 0 deletions