Lines Matching +full:iio +full:- +full:hwmon
8 * http://www.apache.org/licenses/LICENSE-2.0
41 // with iio-hwmon nodes with a single sensor. Typically in findPhandleMatch()
42 // device trees are defined with all the iio sensors in a in findPhandleMatch()
43 // single iio-hwmon node so it would be nice to add support in findPhandleMatch()
47 // with multiple iio-hwmon nodes - one for each sensor. in findPhandleMatch()
50 ioChannelsPath /= "io-channels"; in findPhandleMatch()
87 // Follow the hwmon instance (/sys/class/hwmon/hwmon<N>) in findCalloutPath()
101 // See if the device is backed by the iio-hwmon driver. in findCalloutPath()
108 // Not backed by iio-hwmon. The device pointed to in findCalloutPath()
113 // Find the DT path to the iio-hwmon platform device. in findCalloutPath()
126 // Search /sys/bus/iio/devices for the phandle in io-channels. in findCalloutPath()
128 // iio device as the callout device. in findCalloutPath()
129 static constexpr auto iioDevices = "/sys/bus/iio/devices"; in findCalloutPath()
148 // This is the iio device referred to by io-channels. in findCalloutPath()
149 // Remove iio:device<N>. in findCalloutPath()
166 static constexpr auto hwmonRoot = "/sys/class/hwmon"; in findHwmonFromOFPath()
181 // realpath may encounter ENOENT (Hwmon in findHwmonFromOFPath()
192 // Try to find HWMON instance via phandle values. in findHwmonFromOFPath()
193 // Used for IIO device drivers. in findHwmonFromOFPath()
208 p /= "hwmon"; in findHwmonFromDevPath()
214 // been converted to '--'s. Convert them back now. in findHwmonFromDevPath()
217 while ((pos = path.find("--")) != std::string::npos) in findHwmonFromDevPath()
225 return (d.path().filename().string().find("hwmon") != in findHwmonFromDevPath()
230 return hwmonInst->path(); in findHwmonFromDevPath()
236 "Unable to find hwmon directory from the dev path: {}\n", in findHwmonFromDevPath()