George Liu | b615162 | 2020-11-23 18:16:18 +0800 | [diff] [blame] | 1 | #include "config.h" |
| 2 | |
Patrick Venture | 91ac8d3 | 2018-11-01 17:03:22 -0700 | [diff] [blame] | 3 | #include "manager.hpp" |
| 4 | |
George Liu | e9fb5c6 | 2021-07-01 14:05:32 +0800 | [diff] [blame] | 5 | #include <phosphor-logging/lg2.hpp> |
William A. Kennington III | 151122a | 2018-05-15 12:00:32 -0700 | [diff] [blame] | 6 | #include <sdbusplus/exception.hpp> |
Vishwanatha Subbanna | 4fa9248 | 2017-03-10 14:39:20 +0530 | [diff] [blame] | 7 | #include <xyz/openbmc_project/Led/Physical/server.hpp> |
George Liu | a6c18f8 | 2020-06-22 10:50:04 +0800 | [diff] [blame] | 8 | |
| 9 | #include <algorithm> |
Patrick Williams | 858e573 | 2025-05-14 15:25:07 -0400 | [diff] [blame^] | 10 | #include <chrono> |
George Liu | a6c18f8 | 2020-06-22 10:50:04 +0800 | [diff] [blame] | 11 | #include <iostream> |
| 12 | #include <string> |
Patrick Williams | 858e573 | 2025-05-14 15:25:07 -0400 | [diff] [blame^] | 13 | |
Vishwanatha Subbanna | 4c8c72b | 2016-11-29 23:02:06 +0530 | [diff] [blame] | 14 | namespace phosphor |
| 15 | { |
| 16 | namespace led |
| 17 | { |
| 18 | |
Alexander Hansen | a6f9a41 | 2024-07-24 12:27:42 +0200 | [diff] [blame] | 19 | // apply the led action to the map |
| 20 | static void applyGroupAction(std::map<LedName, Layout::LedAction>& newState, |
| 21 | Layout::LedAction action) |
| 22 | { |
| 23 | if (!newState.contains(action.name)) |
| 24 | { |
| 25 | newState[action.name] = action; |
| 26 | return; |
| 27 | } |
| 28 | |
| 29 | auto currentAction = newState[action.name]; |
| 30 | |
Alexander Hansen | 55badf7 | 2024-07-24 14:35:13 +0200 | [diff] [blame] | 31 | const bool hasPriority = currentAction.priority.has_value(); |
| 32 | |
| 33 | if (hasPriority && currentAction.action == action.priority) |
Alexander Hansen | a6f9a41 | 2024-07-24 12:27:42 +0200 | [diff] [blame] | 34 | { |
| 35 | // if the current action is already the priority action, |
| 36 | // we cannot override it |
| 37 | return; |
| 38 | } |
| 39 | |
| 40 | newState[action.name] = action; |
| 41 | } |
| 42 | |
| 43 | // create the resulting new map from all currently asserted groups |
Alexander Hansen | 7ba70c8 | 2024-07-23 13:46:25 +0200 | [diff] [blame] | 44 | static auto getNewMapWithGroupPriorities( |
| 45 | std::set<const Layout::GroupLayout*, Layout::CompareGroupLayout> sorted) |
Alexander Hansen | a6f9a41 | 2024-07-24 12:27:42 +0200 | [diff] [blame] | 46 | -> std::map<LedName, Layout::LedAction> |
| 47 | { |
| 48 | std::map<LedName, Layout::LedAction> newState; |
| 49 | |
| 50 | // update the new map with the desired state |
George Liu | 3d48751 | 2024-08-23 09:19:57 +0800 | [diff] [blame] | 51 | for (const auto* it : sorted) |
Alexander Hansen | a6f9a41 | 2024-07-24 12:27:42 +0200 | [diff] [blame] | 52 | { |
| 53 | // apply all led actions of that group to the map |
George Liu | 112821c | 2024-08-22 19:00:24 +0800 | [diff] [blame] | 54 | for (const Layout::LedAction& action : it->actionSet) |
Alexander Hansen | 7ba70c8 | 2024-07-23 13:46:25 +0200 | [diff] [blame] | 55 | { |
| 56 | newState[action.name] = action; |
| 57 | } |
| 58 | } |
| 59 | return newState; |
| 60 | } |
| 61 | |
| 62 | static std::map<LedName, Layout::LedAction> getNewMapWithLEDPriorities( |
| 63 | std::set<const Layout::GroupLayout*> assertedGroups) |
| 64 | { |
| 65 | std::map<LedName, Layout::LedAction> newState; |
| 66 | // update the new map with the desired state |
| 67 | for (const Layout::GroupLayout* it : assertedGroups) |
| 68 | { |
| 69 | // apply all led actions of that group to the map |
George Liu | 112821c | 2024-08-22 19:00:24 +0800 | [diff] [blame] | 70 | for (const Layout::LedAction& action : it->actionSet) |
Alexander Hansen | a6f9a41 | 2024-07-24 12:27:42 +0200 | [diff] [blame] | 71 | { |
| 72 | applyGroupAction(newState, action); |
| 73 | } |
| 74 | } |
| 75 | return newState; |
| 76 | } |
| 77 | |
Alexander Hansen | 7ba70c8 | 2024-07-23 13:46:25 +0200 | [diff] [blame] | 78 | // create the resulting new map from all currently asserted groups |
Patrick Williams | 275ad18 | 2025-03-03 11:19:17 -0500 | [diff] [blame] | 79 | std::map<LedName, Layout::LedAction> Manager::getNewMap( |
| 80 | std::set<const Layout::GroupLayout*> assertedGroups) |
Alexander Hansen | 7ba70c8 | 2024-07-23 13:46:25 +0200 | [diff] [blame] | 81 | { |
| 82 | std::map<LedName, Layout::LedAction> newState; |
| 83 | |
| 84 | std::set<const Layout::GroupLayout*, Layout::CompareGroupLayout> sorted; |
| 85 | |
| 86 | bool groupPriorities = false; |
| 87 | |
| 88 | for (const Layout::GroupLayout* it : assertedGroups) |
| 89 | { |
| 90 | sorted.insert(it); |
| 91 | |
| 92 | if (it->priority != 0) |
| 93 | { |
| 94 | groupPriorities = true; |
| 95 | } |
| 96 | } |
| 97 | |
| 98 | if (groupPriorities) |
| 99 | { |
| 100 | newState = getNewMapWithGroupPriorities(sorted); |
| 101 | } |
| 102 | else |
| 103 | { |
| 104 | newState = getNewMapWithLEDPriorities(assertedGroups); |
| 105 | } |
| 106 | |
| 107 | return newState; |
| 108 | } |
| 109 | |
Vishwanatha Subbanna | 4c8c72b | 2016-11-29 23:02:06 +0530 | [diff] [blame] | 110 | // Assert -or- De-assert |
Vishwanatha Subbanna | ed49073 | 2016-12-20 15:59:29 +0530 | [diff] [blame] | 111 | bool Manager::setGroupState(const std::string& path, bool assert, |
Patrick Williams | 158b2c1 | 2022-03-17 05:57:44 -0500 | [diff] [blame] | 112 | ActionSet& ledsAssert, ActionSet& ledsDeAssert) |
Vishwanatha Subbanna | 4c8c72b | 2016-11-29 23:02:06 +0530 | [diff] [blame] | 113 | { |
| 114 | if (assert) |
| 115 | { |
| 116 | assertedGroups.insert(&ledMap.at(path)); |
| 117 | } |
| 118 | else |
| 119 | { |
George Liu | 7f53a03 | 2021-05-04 11:18:21 +0800 | [diff] [blame] | 120 | if (assertedGroups.contains(&ledMap.at(path))) |
Vishwanatha Subbanna | 4c8c72b | 2016-11-29 23:02:06 +0530 | [diff] [blame] | 121 | { |
| 122 | assertedGroups.erase(&ledMap.at(path)); |
| 123 | } |
| 124 | } |
Vishwanatha Subbanna | 4c8c72b | 2016-11-29 23:02:06 +0530 | [diff] [blame] | 125 | |
Alexander Hansen | a6f9a41 | 2024-07-24 12:27:42 +0200 | [diff] [blame] | 126 | // create the new map from the asserted groups |
| 127 | auto newState = getNewMap(assertedGroups); |
| 128 | |
| 129 | // the ledsAssert are those that are in the new map and change state |
| 130 | // + those in the new map and not in the old map |
| 131 | for (const auto& [name, action] : newState) |
Vishwanatha Subbanna | 4c8c72b | 2016-11-29 23:02:06 +0530 | [diff] [blame] | 132 | { |
Alexander Hansen | a6f9a41 | 2024-07-24 12:27:42 +0200 | [diff] [blame] | 133 | if (ledStateMap.contains(name)) |
| 134 | { |
| 135 | // check if the led action has changed |
| 136 | auto& currentAction = ledStateMap[name]; |
| 137 | |
| 138 | if (currentAction.action == action.action) |
George Liu | 9e10415 | 2024-08-23 09:38:20 +0800 | [diff] [blame] | 139 | { |
Alexander Hansen | a6f9a41 | 2024-07-24 12:27:42 +0200 | [diff] [blame] | 140 | continue; |
George Liu | 9e10415 | 2024-08-23 09:38:20 +0800 | [diff] [blame] | 141 | } |
Alexander Hansen | a6f9a41 | 2024-07-24 12:27:42 +0200 | [diff] [blame] | 142 | } |
| 143 | |
| 144 | ledsAssert.insert(action); |
Vishwanatha Subbanna | 4c8c72b | 2016-11-29 23:02:06 +0530 | [diff] [blame] | 145 | } |
| 146 | |
Alexander Hansen | a6f9a41 | 2024-07-24 12:27:42 +0200 | [diff] [blame] | 147 | // the ledsDeAssert are those in the old map but not in the new map |
| 148 | for (const auto& [name, action] : ledStateMap) |
Vishwanatha Subbanna | 4c8c72b | 2016-11-29 23:02:06 +0530 | [diff] [blame] | 149 | { |
Alexander Hansen | a6f9a41 | 2024-07-24 12:27:42 +0200 | [diff] [blame] | 150 | if (!newState.contains(name)) |
Vishwanatha Subbanna | 4b000d8 | 2017-05-03 18:44:16 +0530 | [diff] [blame] | 151 | { |
Alexander Hansen | a6f9a41 | 2024-07-24 12:27:42 +0200 | [diff] [blame] | 152 | ledsDeAssert.insert(action); |
Vishwanatha Subbanna | 4b000d8 | 2017-05-03 18:44:16 +0530 | [diff] [blame] | 153 | } |
Vishwanatha Subbanna | 4c8c72b | 2016-11-29 23:02:06 +0530 | [diff] [blame] | 154 | } |
| 155 | |
Alexander Hansen | a6f9a41 | 2024-07-24 12:27:42 +0200 | [diff] [blame] | 156 | ledStateMap = newState; |
Vishwanatha Subbanna | ed49073 | 2016-12-20 15:59:29 +0530 | [diff] [blame] | 157 | |
| 158 | // If we survive, then set the state accordingly. |
| 159 | return assert; |
| 160 | } |
| 161 | |
George Liu | b615162 | 2020-11-23 18:16:18 +0800 | [diff] [blame] | 162 | void Manager::setLampTestCallBack( |
Patrick Williams | 158b2c1 | 2022-03-17 05:57:44 -0500 | [diff] [blame] | 163 | std::function<bool(ActionSet& ledsAssert, ActionSet& ledsDeAssert)> |
| 164 | callBack) |
George Liu | b615162 | 2020-11-23 18:16:18 +0800 | [diff] [blame] | 165 | { |
| 166 | lampTestCallBack = callBack; |
| 167 | } |
| 168 | |
Vishwanatha Subbanna | ed49073 | 2016-12-20 15:59:29 +0530 | [diff] [blame] | 169 | /** @brief Run through the map and apply action on the LEDs */ |
Patrick Williams | 158b2c1 | 2022-03-17 05:57:44 -0500 | [diff] [blame] | 170 | void Manager::driveLEDs(ActionSet& ledsAssert, ActionSet& ledsDeAssert) |
Vishwanatha Subbanna | ed49073 | 2016-12-20 15:59:29 +0530 | [diff] [blame] | 171 | { |
George Liu | b615162 | 2020-11-23 18:16:18 +0800 | [diff] [blame] | 172 | #ifdef USE_LAMP_TEST |
| 173 | // Use the lampTestCallBack method and trigger the callback method in the |
| 174 | // lamp test(processLEDUpdates), in this way, all lamp test operations |
| 175 | // are performed in the lamp test class. |
| 176 | if (lampTestCallBack(ledsAssert, ledsDeAssert)) |
| 177 | { |
| 178 | return; |
| 179 | } |
| 180 | #endif |
Potin Lai | f1ed479 | 2023-07-13 18:45:14 +0800 | [diff] [blame] | 181 | ActionSet newReqChangedLeds; |
| 182 | std::vector<std::pair<ActionSet&, ActionSet&>> actionsVec = { |
| 183 | {reqLedsAssert, ledsAssert}, {reqLedsDeAssert, ledsDeAssert}}; |
| 184 | |
| 185 | timer.setEnabled(false); |
| 186 | std::set_union(ledsAssert.begin(), ledsAssert.end(), ledsDeAssert.begin(), |
| 187 | ledsDeAssert.end(), |
| 188 | std::inserter(newReqChangedLeds, newReqChangedLeds.begin()), |
| 189 | ledLess); |
| 190 | |
| 191 | // prepare reqLedsAssert & reqLedsDeAssert |
| 192 | for (auto pair : actionsVec) |
Vishwanatha Subbanna | ed49073 | 2016-12-20 15:59:29 +0530 | [diff] [blame] | 193 | { |
Potin Lai | f1ed479 | 2023-07-13 18:45:14 +0800 | [diff] [blame] | 194 | ActionSet tmpSet; |
| 195 | |
| 196 | // Discard current required LED actions, if these LEDs have new actions |
| 197 | // in newReqChangedLeds. |
| 198 | std::set_difference(pair.first.begin(), pair.first.end(), |
| 199 | newReqChangedLeds.begin(), newReqChangedLeds.end(), |
| 200 | std::inserter(tmpSet, tmpSet.begin()), ledLess); |
| 201 | |
| 202 | // Union the remaining LED actions with new LED actions. |
| 203 | pair.first.clear(); |
| 204 | std::set_union(tmpSet.begin(), tmpSet.end(), pair.second.begin(), |
| 205 | pair.second.end(), |
| 206 | std::inserter(pair.first, pair.first.begin()), ledLess); |
Vishwanatha Subbanna | ed49073 | 2016-12-20 15:59:29 +0530 | [diff] [blame] | 207 | } |
| 208 | |
Potin Lai | f1ed479 | 2023-07-13 18:45:14 +0800 | [diff] [blame] | 209 | driveLedsHandler(); |
Vishwanatha Subbanna | 4c8c72b | 2016-11-29 23:02:06 +0530 | [diff] [blame] | 210 | return; |
| 211 | } |
| 212 | |
Vishwanatha Subbanna | 11ca8f9 | 2017-02-27 19:33:45 +0530 | [diff] [blame] | 213 | // Calls into driving physical LED post choosing the action |
Potin Lai | f1ed479 | 2023-07-13 18:45:14 +0800 | [diff] [blame] | 214 | int Manager::drivePhysicalLED(const std::string& objPath, Layout::Action action, |
George Liu | 80f51bb | 2024-08-22 20:17:36 +0800 | [diff] [blame] | 215 | uint8_t dutyOn, uint16_t period) |
Vishwanatha Subbanna | 11ca8f9 | 2017-02-27 19:33:45 +0530 | [diff] [blame] | 216 | { |
George Liu | 1c737af | 2020-10-16 09:07:02 +0800 | [diff] [blame] | 217 | try |
Vishwanatha Subbanna | 11ca8f9 | 2017-02-27 19:33:45 +0530 | [diff] [blame] | 218 | { |
George Liu | 1c737af | 2020-10-16 09:07:02 +0800 | [diff] [blame] | 219 | // If Blink, set its property |
| 220 | if (action == Layout::Action::Blink) |
| 221 | { |
| 222 | PropertyValue dutyOnValue{dutyOn}; |
| 223 | PropertyValue periodValue{period}; |
| 224 | |
George Liu | f059255 | 2024-08-23 09:46:17 +0800 | [diff] [blame] | 225 | phosphor::led::utils::DBusHandler::setProperty( |
| 226 | objPath, phyLedIntf, "DutyOn", dutyOnValue); |
| 227 | phosphor::led::utils::DBusHandler::setProperty( |
| 228 | objPath, phyLedIntf, "Period", periodValue); |
George Liu | 1c737af | 2020-10-16 09:07:02 +0800 | [diff] [blame] | 229 | } |
| 230 | |
| 231 | PropertyValue actionValue{getPhysicalAction(action)}; |
George Liu | f059255 | 2024-08-23 09:46:17 +0800 | [diff] [blame] | 232 | phosphor::led::utils::DBusHandler::setProperty(objPath, phyLedIntf, |
| 233 | "State", actionValue); |
George Liu | 1c737af | 2020-10-16 09:07:02 +0800 | [diff] [blame] | 234 | } |
George Liu | 829c0b3 | 2023-07-18 10:00:47 +0800 | [diff] [blame] | 235 | catch (const sdbusplus::exception_t& e) |
George Liu | 1c737af | 2020-10-16 09:07:02 +0800 | [diff] [blame] | 236 | { |
Patrick Williams | 858e573 | 2025-05-14 15:25:07 -0400 | [diff] [blame^] | 237 | // This can be a really spammy event log, so we rate limit it to once an |
| 238 | // hour per LED. |
| 239 | auto now = std::chrono::steady_clock::now(); |
| 240 | |
| 241 | if (auto it = physicalLEDErrors.find(objPath); |
| 242 | it != physicalLEDErrors.end()) |
| 243 | { |
| 244 | using namespace std::literals::chrono_literals; |
| 245 | if ((now - it->second) < 1h) |
| 246 | { |
| 247 | return -1; |
| 248 | } |
| 249 | } |
| 250 | |
George Liu | e9fb5c6 | 2021-07-01 14:05:32 +0800 | [diff] [blame] | 251 | lg2::error( |
| 252 | "Error setting property for physical LED, ERROR = {ERROR}, OBJECT_PATH = {PATH}", |
| 253 | "ERROR", e, "PATH", objPath); |
Patrick Williams | 858e573 | 2025-05-14 15:25:07 -0400 | [diff] [blame^] | 254 | physicalLEDErrors[objPath] = now; |
Potin Lai | f1ed479 | 2023-07-13 18:45:14 +0800 | [diff] [blame] | 255 | return -1; |
Vishwanatha Subbanna | 11ca8f9 | 2017-02-27 19:33:45 +0530 | [diff] [blame] | 256 | } |
Vishwanatha Subbanna | dcc3f38 | 2017-03-24 20:15:02 +0530 | [diff] [blame] | 257 | |
Potin Lai | f1ed479 | 2023-07-13 18:45:14 +0800 | [diff] [blame] | 258 | return 0; |
Vishwanatha Subbanna | 11ca8f9 | 2017-02-27 19:33:45 +0530 | [diff] [blame] | 259 | } |
| 260 | |
| 261 | /** @brief Returns action string based on enum */ |
Vishwanatha Subbanna | 4fa9248 | 2017-03-10 14:39:20 +0530 | [diff] [blame] | 262 | std::string Manager::getPhysicalAction(Layout::Action action) |
Vishwanatha Subbanna | 11ca8f9 | 2017-02-27 19:33:45 +0530 | [diff] [blame] | 263 | { |
Vishwanatha Subbanna | 4fa9248 | 2017-03-10 14:39:20 +0530 | [diff] [blame] | 264 | namespace server = sdbusplus::xyz::openbmc_project::Led::server; |
| 265 | |
| 266 | // TODO: openbmc/phosphor-led-manager#5 |
| 267 | // Somehow need to use the generated Action enum than giving one |
| 268 | // in ledlayout. |
Patrick Venture | 91ac8d3 | 2018-11-01 17:03:22 -0700 | [diff] [blame] | 269 | if (action == Layout::Action::On) |
Vishwanatha Subbanna | 11ca8f9 | 2017-02-27 19:33:45 +0530 | [diff] [blame] | 270 | { |
Vishwanatha Subbanna | 4fa9248 | 2017-03-10 14:39:20 +0530 | [diff] [blame] | 271 | return server::convertForMessage(server::Physical::Action::On); |
Vishwanatha Subbanna | 11ca8f9 | 2017-02-27 19:33:45 +0530 | [diff] [blame] | 272 | } |
Patrick Venture | 91ac8d3 | 2018-11-01 17:03:22 -0700 | [diff] [blame] | 273 | else if (action == Layout::Action::Blink) |
Vishwanatha Subbanna | 11ca8f9 | 2017-02-27 19:33:45 +0530 | [diff] [blame] | 274 | { |
Vishwanatha Subbanna | 4fa9248 | 2017-03-10 14:39:20 +0530 | [diff] [blame] | 275 | return server::convertForMessage(server::Physical::Action::Blink); |
Vishwanatha Subbanna | 11ca8f9 | 2017-02-27 19:33:45 +0530 | [diff] [blame] | 276 | } |
| 277 | else |
| 278 | { |
Vishwanatha Subbanna | 4fa9248 | 2017-03-10 14:39:20 +0530 | [diff] [blame] | 279 | return server::convertForMessage(server::Physical::Action::Off); |
Vishwanatha Subbanna | 11ca8f9 | 2017-02-27 19:33:45 +0530 | [diff] [blame] | 280 | } |
| 281 | } |
| 282 | |
Potin Lai | f1ed479 | 2023-07-13 18:45:14 +0800 | [diff] [blame] | 283 | void Manager::driveLedsHandler(void) |
| 284 | { |
| 285 | ActionSet failedLedsAssert; |
| 286 | ActionSet failedLedsDeAssert; |
| 287 | |
| 288 | // This order of LED operation is important. |
Alexander Hansen | fe476e1 | 2024-07-23 15:45:22 +0200 | [diff] [blame] | 289 | for (const auto& it : reqLedsDeAssert) |
Potin Lai | f1ed479 | 2023-07-13 18:45:14 +0800 | [diff] [blame] | 290 | { |
Alexander Hansen | fe476e1 | 2024-07-23 15:45:22 +0200 | [diff] [blame] | 291 | std::string objPath = std::string(phyLedPath) + it.name; |
| 292 | lg2::debug("De-Asserting LED, NAME = {NAME}, ACTION = {ACTION}", "NAME", |
| 293 | it.name, "ACTION", it.action); |
| 294 | if (drivePhysicalLED(objPath, Layout::Action::Off, it.dutyOn, |
George Liu | 49875a2 | 2024-08-23 08:58:59 +0800 | [diff] [blame] | 295 | it.period) != 0) |
Potin Lai | f1ed479 | 2023-07-13 18:45:14 +0800 | [diff] [blame] | 296 | { |
Alexander Hansen | fe476e1 | 2024-07-23 15:45:22 +0200 | [diff] [blame] | 297 | failedLedsDeAssert.insert(it); |
Potin Lai | f1ed479 | 2023-07-13 18:45:14 +0800 | [diff] [blame] | 298 | } |
| 299 | } |
| 300 | |
Alexander Hansen | fe476e1 | 2024-07-23 15:45:22 +0200 | [diff] [blame] | 301 | for (const auto& it : reqLedsAssert) |
Potin Lai | f1ed479 | 2023-07-13 18:45:14 +0800 | [diff] [blame] | 302 | { |
Alexander Hansen | fe476e1 | 2024-07-23 15:45:22 +0200 | [diff] [blame] | 303 | std::string objPath = std::string(phyLedPath) + it.name; |
| 304 | lg2::debug("Asserting LED, NAME = {NAME}, ACTION = {ACTION}", "NAME", |
| 305 | it.name, "ACTION", it.action); |
George Liu | 49875a2 | 2024-08-23 08:58:59 +0800 | [diff] [blame] | 306 | if (drivePhysicalLED(objPath, it.action, it.dutyOn, it.period) != 0) |
Potin Lai | f1ed479 | 2023-07-13 18:45:14 +0800 | [diff] [blame] | 307 | { |
Alexander Hansen | fe476e1 | 2024-07-23 15:45:22 +0200 | [diff] [blame] | 308 | failedLedsAssert.insert(it); |
Potin Lai | f1ed479 | 2023-07-13 18:45:14 +0800 | [diff] [blame] | 309 | } |
| 310 | } |
| 311 | |
| 312 | reqLedsAssert = failedLedsAssert; |
| 313 | reqLedsDeAssert = failedLedsDeAssert; |
| 314 | |
| 315 | if (reqLedsDeAssert.empty() && reqLedsAssert.empty()) |
| 316 | { |
| 317 | timer.setEnabled(false); |
| 318 | } |
| 319 | else |
| 320 | { |
| 321 | timer.restartOnce(std::chrono::seconds(1)); |
| 322 | } |
| 323 | |
| 324 | return; |
| 325 | } |
| 326 | |
Vishwanatha Subbanna | 4c8c72b | 2016-11-29 23:02:06 +0530 | [diff] [blame] | 327 | } // namespace led |
| 328 | } // namespace phosphor |