From df7f4690cd12e8f92f47f37fcf8343277b3ab3bc Mon Sep 17 00:00:00 2001 From: Srikar Srimath Tirumala Date: Tue, 2 May 2017 15:32:34 -0700 Subject: misc: nct1008: clean cdev registration The shutdown warning cooling device should register only once when the sensors are being configured not every time the shutdown limits are changed. Also remove trip point managment from the sensor driver. Change-Id: I9a555d56662c83e9e81e9ca9f7041514383e1cca Signed-off-by: Srikar Srimath Tirumala Reviewed-on: https://git-master.nvidia.com/r/1586407 Reviewed-by: Navneet Kumar Reviewed-by: svc-mobile-coverity GVS: Gerrit_Virtual_Submit Reviewed-by: Bo Yan Reviewed-by: mobile promotions Tested-by: mobile promotions --- include/linux/nct1008.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'include/linux') diff --git a/include/linux/nct1008.h b/include/linux/nct1008.h index 45e7ed723..fa0f16edf 100644 --- a/include/linux/nct1008.h +++ b/include/linux/nct1008.h @@ -45,8 +45,6 @@ struct nct1008_sensor_platform_data { int shutdown_limit; long suspend_limit_hi; long suspend_limit_lo; - struct thermal_trip_info trips[THERMAL_MAX_TRIPS]; - int num_trips; }; struct nct1008_platform_data { -- cgit v1.2.2