summaryrefslogtreecommitdiffstats
path: root/occ_status.cpp
blob: ca8a1f973207e8fc17d0cf470a833cab19b9cea7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#include "occ_status.hpp"
namespace open_power
{
namespace occ
{

// Handles updates to occActive property
bool Status::occActive(bool value)
{
    if (value != this->occActive())
    {
        if (value)
        {
            // Bind the device
            device.bind();
        }
        else
        {
            // Do the unbind
            device.unBind();
        }
    }
    return Base::Status::occActive(value);
}

} // namespace occ
} // namespace open_power
OpenPOWER on IntegriCloud