blob: f1d913f44bbaeb28c778fb138e7a4c2f33a3baf3 [file] [log] [blame]
#include "power_state.hpp"
namespace phosphor::fan
{
std::shared_ptr<PowerState> powerState;
std::shared_ptr<PowerState> getPowerStateObject()
{
if (!powerState)
{
powerState = std::make_shared<PGoodState>();
}
return powerState;
}
} // namespace phosphor::fan