From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dmitry Torokhov Subject: Re: [Patch v3 7/7] Onkey: DA9055 Onkey driver Date: Thu, 11 Oct 2012 09:28:53 -0700 Message-ID: <20121011162852.GB15588@core.coreip.homeip.net> References: <1349952316.9228.7.camel@dhruva> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mail-pb0-f46.google.com ([209.85.160.46]:60369 "EHLO mail-pb0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755814Ab2JKQ27 (ORCPT ); Thu, 11 Oct 2012 12:28:59 -0400 Content-Disposition: inline In-Reply-To: <1349952316.9228.7.camel@dhruva> Sender: linux-input-owner@vger.kernel.org List-Id: linux-input@vger.kernel.org To: Ashish Jangam Cc: Liam Girdwood , Samuel Ortiz , linux-input@vger.kernel.org, David Dajun Chen , linux-kernel@vger.kernel.org Hi Ashish, On Thu, Oct 11, 2012 at 04:15:16PM +0530, Ashish Jangam wrote: > This is the ONKEY driver of the Dialog DA9055 PMIC and depends on the DA9055 MFD > core driver. > > This patch is functionally tested on SMDK6410 board. > > Signed-off-by: David Dajun Chen > Signed-off-by: Ashish Jangam > --- > changes since v3: > - used of module_platform_driver macro > - add regmap virtual irq function > changes since v2: > - add support for button release > - use of devm_request_threaded_irq API This API does not make any sense for your driver as you are scheduling delayed work from the IRQ handler. In such cases you need _first_ free IRQ and _then_ cancel the work but with devm_* you do it in opposite order. Also, I think I mentioned this before - this driver looks like twin brother for da9055_onkey.c. How many of such parts do you have (or will you have)? Is there way to unify them? Thanks. -- Dmitry