blob: ca8a1f973207e8fc17d0cf470a833cab19b9cea7 [file] [log] [blame]
Vishwanatha Subbanna307d80b2017-06-28 15:56:09 +05301#include "occ_status.hpp"
2namespace open_power
3{
4namespace occ
5{
6
7// Handles updates to occActive property
8bool Status::occActive(bool value)
9{
Vishwanatha Subbanna32e84e92017-06-28 19:17:28 +053010 if (value != this->occActive())
11 {
12 if (value)
13 {
14 // Bind the device
15 device.bind();
16 }
17 else
18 {
19 // Do the unbind
20 device.unBind();
21 }
22 }
Vishwanatha Subbanna307d80b2017-06-28 15:56:09 +053023 return Base::Status::occActive(value);
24}
25
26} // namespace occ
27} // namespace open_power