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/ADCSensor.hpp b/sensors/include/ADCSensor.hpp
index d59bd5f..e15ba0a 100644
--- a/sensors/include/ADCSensor.hpp
+++ b/sensors/include/ADCSensor.hpp
@@ -12,27 +12,26 @@
ADCSensor(const std::string &path,
sdbusplus::asio::object_server &objectServer,
std::shared_ptr<sdbusplus::asio::connection> &conn,
- boost::asio::io_service &io, const std::string &sensor_name,
+ boost::asio::io_service &io, const std::string &sensorName,
std::vector<thresholds::Threshold> &&thresholds,
- const double scale_factor,
- const std::string &sensorConfiguration);
+ const double scaleFactor, const std::string &sensorConfiguration);
~ADCSensor();
private:
std::string path;
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;
- double scale_factor;
- 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;
+ double scaleFactor;
+ 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
+};