Clean up codes
This commit cleans up codes to follow coding style and conventions
of OpenBMC.
Change-Id: Ib2a9b2589b839db6eb0f31b392b3fa54aef3a8c6
Signed-off-by: Jae Hyun Yoo <jae.hyun.yoo@linux.intel.com>
diff --git a/sensors/include/HwmonTempSensor.hpp b/sensors/include/HwmonTempSensor.hpp
index ebdaea6..14cb6c7 100644
--- a/sensors/include/HwmonTempSensor.hpp
+++ b/sensors/include/HwmonTempSensor.hpp
@@ -12,7 +12,7 @@
HwmonTempSensor(const std::string &path, const std::string &objectType,
sdbusplus::asio::object_server &objectServer,
std::shared_ptr<sdbusplus::asio::connection> &conn,
- boost::asio::io_service &io, const std::string &fan_name,
+ boost::asio::io_service &io, const std::string &fanName,
std::vector<thresholds::Threshold> &&thresholds,
const std::string &sensorConfiguration);
~HwmonTempSensor();
@@ -21,17 +21,17 @@
std::string path;
std::string objectType;
sdbusplus::asio::object_server &objServer;
- boost::asio::posix::stream_descriptor input_dev;
- boost::asio::deadline_timer wait_timer;
- boost::asio::streambuf read_buf;
- int err_count;
- double max_value;
- double min_value;
- void setup_read(void);
- void handle_response(const boost::system::error_code &err);
- void check_thresholds(void);
- void update_value(const double &new_value);
+ boost::asio::posix::stream_descriptor inputDev;
+ boost::asio::deadline_timer waitTimer;
+ boost::asio::streambuf readBuf;
+ int errCount;
+ double maxValue;
+ double minValue;
+ void setupRead(void);
+ void handleResponse(const boost::system::error_code &err);
+ void checkThresholds(void);
+ void updateValue(const double &newValue);
- void set_initial_properties(
+ void setInitialProperties(
std::shared_ptr<sdbusplus::asio::connection> &conn);
};
\ No newline at end of file