#
4cbdfef2 |
| 18-Oct-2018 |
William A. Kennington III <wak@google.com> |
Remove old experimental includes
We are now using c++17 so we no longer need experimental optional and any. We can use the standard any and optional now.
Change-Id: I88fcb4258c69ac5ad9766e2c65463c5
Remove old experimental includes
We are now using c++17 so we no longer need experimental optional and any. We can use the standard any and optional now.
Change-Id: I88fcb4258c69ac5ad9766e2c65463c52a3b7f05f Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
#
685efa16 |
| 12-Oct-2018 |
Patrick Venture <venture@google.com> |
cleanup: reduced scope of variables
Cppcheck CI tool identified many variables whose scope could be reduced.
Change-Id: I1478b5680adc560d08bc74ffc91929b1d19e24fa Signed-off-by: Patrick Venture <ven
cleanup: reduced scope of variables
Cppcheck CI tool identified many variables whose scope could be reduced.
Change-Id: I1478b5680adc560d08bc74ffc91929b1d19e24fa Signed-off-by: Patrick Venture <venture@google.com>
show more ...
|
#
b28f432a |
| 14-Sep-2018 |
Patrick Venture <venture@google.com> |
Use gpioplus for specifying gpio gating
A GPIO can control whether a hwmon sensor is readable. This module allows one to specify whether a sensor is gated and by what GPIO. This is often the case
Use gpioplus for specifying gpio gating
A GPIO can control whether a hwmon sensor is readable. This module allows one to specify whether a sensor is gated and by what GPIO. This is often the case for battery voltages, such that the battery isn't drained constantly by being left open.
For each sensor where you need GPIO locking: GPIOCHIP_in1=0 GPIO_in1=53
such that GPIOCHIP is the gpiochip: /sys/bus/gpio/devices/gpiochip{id} such that GPIO is the line offset. the value used to unlock the sensor via gpio is 1 after 1 is written to the gpio, it pauses for 500ms
Tested: Verified the failure case for invalid gpio fields. Verified correct behavior on two platforms. Change-Id: I2fa12848972075cad0e0f69c0bfa6382e15d4f50 Signed-off-by: Patrick Venture <venture@google.com>
show more ...
|
#
043d3230 |
| 31-Aug-2018 |
Patrick Venture <venture@google.com> |
add .clang-format
Change-Id: I94ce26d595367e08d6fb3734535bcd855f1b1473 Signed-off-by: Patrick Venture <venture@google.com>
|
#
ac47309f |
| 07-May-2018 |
Matthew Barth <msbarth@us.ibm.com> |
Move sensor adjust within sensor object
All sensor adjustments should be contained within the sensor object for the sensor. This allows the adjustments to be retrieved for a given sensor and applied
Move sensor adjust within sensor object
All sensor adjustments should be contained within the sensor object for the sensor. This allows the adjustments to be retrieved for a given sensor and applied accordingly.
Tested: No change in adjusting a sensor value No change in removing a sensor given a removal return code
Change-Id: I5e1e40fe41b4064422a47178aec1f297b781566d Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
show more ...
|
#
cb3daafb |
| 07-May-2018 |
Matthew Barth <msbarth@us.ibm.com> |
Move value iface creation into sensor object
Create the Sensor.Value interface for a sensor within the sensor object. Each sensor must have an input sysfs file to get a Value property on the Sensor.
Move value iface creation into sensor object
Create the Sensor.Value interface for a sensor within the sensor object. Each sensor must have an input sysfs file to get a Value property on the Sensor.Value interface and be included by hwmon.
Tested: No change in value interface creation for sensors
Change-Id: I09b1c79142ba2a34424f5ec29f41d19a987c84e7 Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
show more ...
|
#
2e41b13f |
| 07-May-2018 |
Matthew Barth <msbarth@us.ibm.com> |
Move status iface creation into sensor object
For sensors that have a status interface created with a functional property set according to its fault sysfs file value, the object associated with the
Move status iface creation into sensor object
For sensors that have a status interface created with a functional property set according to its fault sysfs file value, the object associated with the sensor should contain the creation of this interface.
Tested: No change in status interface creation for sensors
Change-Id: Ic3c0a81c661ac481b90ad9bd4c8bf415dae3520e Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
show more ...
|
#
9c43106c |
| 07-May-2018 |
Matthew Barth <msbarth@us.ibm.com> |
Add sensor object framework
Create a sensor object to store sensor monitoring specifications.
Tested: Sensor objects are created and stored for each sensor
Change-Id: Idfa982f1bb8da888abbd4738
Add sensor object framework
Create a sensor object to store sensor monitoring specifications.
Tested: Sensor objects are created and stored for each sensor
Change-Id: Idfa982f1bb8da888abbd473881870df4beec6824 Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
show more ...
|
#
35819381 |
| 18-Apr-2018 |
Matthew Barth <msbarth@us.ibm.com> |
Add status interface to sensors
When a fault sysfs file is present for a sensor, the OperationalStatus interface is attached to the sensor object. The functional property is initially set to the cor
Add status interface to sensors
When a fault sysfs file is present for a sensor, the OperationalStatus interface is attached to the sensor object. The functional property is initially set to the corresponding value read from the fault sysfs file when the sensor object is created. A follow-up commit will address updating the functional property based on reading the fault sysfs file during the polling interval.
Tested: OperationalStatus interface created for sensors with fault files Interface not created for sensors without fault file Functional property set to correct value from sensor's fault file
Change-Id: Id75b3711d048d4667d2173a3255512cf5482ab67 Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
show more ...
|