blob: f1d913f44bbaeb28c778fb138e7a4c2f33a3baf3 [file] [log] [blame]
Matt Spinler76e73c22021-04-21 11:03:05 -05001#include "power_state.hpp"
2
3namespace phosphor::fan
4{
5
6std::shared_ptr<PowerState> powerState;
7
8std::shared_ptr<PowerState> getPowerStateObject()
9{
10 if (!powerState)
11 {
12 powerState = std::make_shared<PGoodState>();
13 }
14 return powerState;
15}
16
17} // namespace phosphor::fan