Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753450AbdHGMZA (ORCPT ); Mon, 7 Aug 2017 08:25:00 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:47986 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753228AbdHGMY5 (ORCPT ); Mon, 7 Aug 2017 08:24:57 -0400 Cc: Sudeep Holla , ALKML , LKML , DTML , Roy Franz , Harb Abdulhamid , Nishanth Menon , Arnd Bergmann , Loc Ho , Alexey Klimov , Ryan Harkin , Jassi Brar , linux-hwmon@vger.kernel.org Subject: Re: [PATCH v2 16/18] hwmon: add support for sensors exported via ARM SCMI To: Guenter Roeck References: <1501857104-11279-1-git-send-email-sudeep.holla@arm.com> <1501857104-11279-17-git-send-email-sudeep.holla@arm.com> <20170804193231.GA18153@roeck-us.net> From: Sudeep Holla Organization: ARM Message-ID: <20e0a388-79a1-a7f1-57b4-fa5993eed9bf@arm.com> Date: Mon, 7 Aug 2017 13:25:14 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <20170804193231.GA18153@roeck-us.net> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 548 Lines: 23 On 04/08/17 20:32, Guenter Roeck wrote: > On Fri, Aug 04, 2017 at 03:31:42PM +0100, Sudeep Holla wrote: [...] >> + platform_set_drvdata(pdev, scmi_sensors); >> + >> + hwdev = devm_hwmon_device_register_with_groups(dev, "scmi_sensors", >> + scmi_sensors, >> + scmi_sensors->groups); > > Can you rework this to use devm_hwmon_device_register_with_info(), > and if possible let it handle the thermal registration ? > Thanks for the pointers. I will check on the possibility and use it if possible. -- Regards, Sudeep