From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jean Delvare Subject: Re: CONFIG_THERMAL_HWMON in thermal_sys.c Date: Tue, 11 Sep 2012 16:05:38 +0200 Message-ID: <20120911160538.1fc4d23e@endymion.delvare> References: <4D68720C2E767A4AA6A8796D42C8EB591B6F8F@BGSMSX101.gar.corp.intel.com> <20120911091204.24fd1510@endymion.delvare> <4D68720C2E767A4AA6A8796D42C8EB591B7261@BGSMSX101.gar.corp.intel.com> <20120911110335.68009452@endymion.delvare> <4D68720C2E767A4AA6A8796D42C8EB591B72C6@BGSMSX101.gar.corp.intel.com> <20120911114921.2e39e28c@endymion.delvare> <20120911134505.GA4123@roeck-us.net> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from zoneX.GCU-Squad.org ([194.213.125.0]:27416 "EHLO services.gcu-squad.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753406Ab2IKOF6 (ORCPT ); Tue, 11 Sep 2012 10:05:58 -0400 In-Reply-To: <20120911134505.GA4123@roeck-us.net> Sender: linux-acpi-owner@vger.kernel.org List-Id: linux-acpi@vger.kernel.org To: Guenter Roeck Cc: "R, Durgadoss" , "Zhang, Rui" , Len Brown , lm-sensors@lm-sensors.org, linux-acpi@vger.kernel.org On Tue, 11 Sep 2012 06:45:05 -0700, Guenter Roeck wrote: > I do wonder what is going to happen with existing hwmon temperature sensor > drivers which are needed as thermal drivers. Re-write/copy ? Have them register as thermal devices and leave their hwmon interface unchanged? For simple temperature sensor devices, the current situation (expose thermal devices as hwmon devices automatically) works well, but if a more complex devices (with, say, voltage sensors) needs to be exposed as a thermal device then it doesn't work. If we want to handle this case, then I see no alternative to having each driver implement both interfaces. -- Jean Delvare