On 02/01/2017 11:44 PM, Andrea Merello wrote:
This patch adds a HWMON driver for ST Microelectronics STTS751 temperature sensors. Changes since V3: - fix sysfs_notify() filename - simplify error exit path in stts751_update_temp(): kill useless goto - fix set function were racy due to lock incorrectly placed - use msecs_to_jiffies instead of manual calculation - fix jiffies and msecs were mixed up - don't mark cache as good unless reads really succeded to fill up it - when updating therm, hyst keeps relative value rather than abs value - don't should in dev_dbg when chip is detected - don't ever generate two uevents - clarify clear-on-read behaviour of status reg alarm flags - simplify mDEG to HW conversion function - fix chip stops due to incorrect resolution configuration - fix incorrectly reading negative numbers from HW Changes since V4: - fix continuation lines (style, remove uncecessary, ..) - shorten a unnecessary verbose dev_warn() message - fix set_interval() exitpath didn't return error - change uncecesary neg-logic - change file symbolic permissions with octal - move chip revision test in probe(), change dev_notice() in dev_dbg() - use "return 0" on success (non functional change) - add further checks in i2c detect function - fix i2c detect function read wrong reg while checking for manufacturer ID Changes since V5: - fix mixed usage of i2c dev and hwmon dev for logging functions - avoid max/min alert log spam Thanks-to: LABBE Corentin [for suggestions] Thanks-to: Guenter Roeck [for suggestion and discussions] Signed-off-by: Andrea Merello <andrea.merello@xxxxxxxxx> Cc: LABBE Corentin <clabbe.montjoie@xxxxxxxxx> Cc: Guenter Roeck <linux@xxxxxxxxxxxx> Cc: Jean Delvare <jdelvare@xxxxxxxx>
Applied to hwmon-next. Guenter -- To unsubscribe from this list: send the line "unsubscribe linux-hwmon" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html