From mboxrd@z Thu Jan 1 00:00:00 1970 From: Guenter Roeck Subject: Re: [PATCH] Input: ads7846: Convert to devm_hwmon_device_register_with_groups Date: Mon, 25 Nov 2013 20:38:09 -0800 Message-ID: <529425B1.7000708@roeck-us.net> References: <1385242620-21719-1-git-send-email-linux@roeck-us.net> <20131126030308.GF31517@core.coreip.homeip.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mail.active-venture.com ([67.228.131.205]:53692 "EHLO mail.active-venture.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751524Ab3KZEiK (ORCPT ); Mon, 25 Nov 2013 23:38:10 -0500 In-Reply-To: <20131126030308.GF31517@core.coreip.homeip.net> Sender: linux-input-owner@vger.kernel.org List-Id: linux-input@vger.kernel.org To: Dmitry Torokhov Cc: linux-input@vger.kernel.org, lm-sensors@lm-sensors.org, linux-kernel@vger.kernel.org On 11/25/2013 07:03 PM, Dmitry Torokhov wrote: > Hi Guenter, > > On Sat, Nov 23, 2013 at 01:37:00PM -0800, Guenter Roeck wrote: >> Simplify the code and create mandatory 'name' attribute by using >> new hwmon API. >> >> Also use is_visible to determine visible attributes instead of creating >> several different attribute groups. > > This change does not quite work without converting the rest of the > driver to devm_ resources as it makes hwmon outlive regulator and other > essential resources when unbinding driver from the device. > Ok, I'll use hwmon_device_register_with_groups instead. Thanks, Guenter