fan_pwm: add underscore prefix to members
Add underscore prefix to members for fan_pwm object.
Change-Id: Ic90d20b6e3881e8b7efe08fde3a08607d7bc6a38
Signed-off-by: Patrick Venture <venture@google.com>
diff --git a/fan_pwm.cpp b/fan_pwm.cpp
index f814c0a..23eb6dc 100644
--- a/fan_pwm.cpp
+++ b/fan_pwm.cpp
@@ -24,8 +24,8 @@
// Write target out to sysfs
try
{
- ioAccess->write(value, type, id, empty, hwmonio::retries,
- hwmonio::delay);
+ _ioAccess->write(value, _type, _id, empty, hwmonio::retries,
+ hwmonio::delay);
}
catch (const std::system_error& e)
{
@@ -34,9 +34,10 @@
xyz::openbmc_project::Control::Device::WriteFailure::CALLOUT_ERRNO(
e.code().value()),
xyz::openbmc_project::Control::Device::WriteFailure::
- CALLOUT_DEVICE_PATH(devPath.c_str()));
+ CALLOUT_DEVICE_PATH(_devPath.c_str()));
- auto file = sysfs::make_sysfs_path(ioAccess->path(), type, id, empty);
+ auto file =
+ sysfs::make_sysfs_path(_ioAccess->path(), _type, _id, empty);
log<level::INFO>("Logging failing sysfs file",
phosphor::logging::entry("FILE=%s", file.c_str()));