{"push_id":542713375,"size":1,"distinct_size":1,"ref":"refs/heads/cm-12.0_staging","head":"73816c011af2486a3124979a1764eec28474c4ff","before":"9eee5c13cc7be99933905deed77e0c56745d412c","commits":[{"sha":"73816c011af2486a3124979a1764eec28474c4ff","author":{"email":"76e25f0b807bce4e784bae37c5a8a5b2e8663486@gmail.com","name":"Chris Verges"},"message":"hwmon: (lm73} Detect and report i2c bus errors\n\ncommit 0602934f302e016e2ea5dc6951681bfac77455ef upstream.\n\nIf an LM73 device does not exist on an I2C bus, attempts to communicate\nwith the device result in an error code returned from the i2c read/write\nfunctions.  The current lm73 driver casts that return value from a s32\ntype to a s16 type, then converts it to a temperature in celsius.\nBecause negative temperatures are valid, it is difficult to distinguish\nbetween an error code printed to the response buffer and a negative\ntemperature recorded by the sensor.\n\nThe solution is to evaluate the return value from the i2c functions\nbefore performing any temperature calculations.  If the i2c function did\nnot succeed, the error code should be passed back through the virtual\nfile system layer instead of being printed into the response buffer.\n\nBefore:\n\n   $ cat /sys/class/hwmon/hwmon0/device/temp1_input\n   -46\n\nAfter:\n\n   $ cat /sys/class/hwmon/hwmon0/device/temp1_input\n   cat: read error: No such device or address\n\nSigned-off-by: Chris Verges <kg4ysn@gmail.com>\nSigned-off-by: Guenter Roeck <linux@roeck-us.net>\nSigned-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>","distinct":true,"url":"https://api.github.com/repos/Starship-Android/android_kernel_lge_hammerhead-starship/commits/73816c011af2486a3124979a1764eec28474c4ff"}]}