Add hwmon support to PMBus class
Add support to allow the class to handle accessing
hwmon files even though the device path passed to
the constructor wasn't a hwmon path.
This is useful because the users of this class have
to access files in both locations.
For example:
PMBus p(basePath);
p.write("myfile", 1, Type::Base)
-> writes to basePath/myfile
p.write("myfile", 1, Type::Hwmon)
-> writes to basePath/hwmon/hwmonN/myfile
where hwmonN is the hwmon dir for the device
Change-Id: Ic66835dace2a9958310c9f4ee8cbcaae3669dd0f
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
2 files changed