Lines Matching +full:auto +full:- +full:i2c
8 * http://www.apache.org/licenses/LICENSE-2.0
22 #include <phosphor-logging/lg2.hpp>
42 constexpr auto IBMCFFPSInterface =
44 constexpr auto i2cBusProp = "I2CBus";
45 constexpr auto i2cAddressProp = "I2CAddress";
49 auto depth = 0; in getPsuI2c()
50 auto objects = getSubTree(bus, "/", IBMCFFPSInterface, depth); in getPsuI2c()
61 for (const auto& [path, services] : objects) in getPsuI2c()
63 auto service = services.begin()->first; in getPsuI2c()
79 auto properties = in getPsuI2c()
81 for (const auto& property : properties) in getPsuI2c()
111 throw std::runtime_error("Failed to get I2C bus or address"); in getPsuI2c()
191 auto data = loadJSONFromFile(PSU_JSON_PATH); in getDevicePath()
196 auto devicePath = data["psuDevices"][psuInventoryPath]; in getDevicePath()
205 const auto [i2cbus, i2caddr] = getPsuI2c(bus, psuInventoryPath); in getDevicePath() local
206 const auto DevicePath = "/sys/bus/i2c/devices/"; in getDevicePath()
211 std::string devPath = DevicePath + busStr + "-" + addrStr; in getDevicePath()
229 // Get I2C bus and device address, e.g. 3-0068 in parseDeviceName()
231 auto pos = devName.find('-'); in parseDeviceName()