From patchwork Wed Feb 2 21:29:29 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Stein X-Patchwork-Id: 527621 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p12LsYCR001755 for ; Wed, 2 Feb 2011 21:54:34 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751628Ab1BBVye (ORCPT ); Wed, 2 Feb 2011 16:54:34 -0500 Received: from jack.hrz.tu-chemnitz.de ([134.109.132.46]:47185 "EHLO jack.hrz.tu-chemnitz.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751494Ab1BBVyd (ORCPT ); Wed, 2 Feb 2011 16:54:33 -0500 X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Wed, 02 Feb 2011 21:54:34 +0000 (UTC) X-Greylist: delayed 1494 seconds by postgrey-1.27 at vger.kernel.org; Wed, 02 Feb 2011 16:54:33 EST DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tu-chemnitz.de; s=dkim2010; h=Message-Id:Date:Subject:Cc:To:From; bh=Efl0cNEy758pzCNCWcMFFvHOcmSydRrbVNusYkuXZnY=; b=G86J1SNe7QBxrSQCgyJe2LXgeSgPPMEnVp2WTglDS+DLFNzVhkjF4Drx0qd1SvbYWAYnbpVLAnFHNu27gd7mQnXzfr87dzgNP+UWmi2zocDMQMCZgWRxE78ZClRQAIVz/1u6F2zjjGmOrQSB93KwzlmuN1NDWNkEWmh3Z+6A0wo=; Received: from 77-64-132-120.dynamic.primacom.net ([77.64.132.120] helo=kongar.lan.local) by jack.hrz.tu-chemnitz.de with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.74) (envelope-from ) id 1PkkGg-00048j-AE; Wed, 02 Feb 2011 22:29:38 +0100 From: Alexander Stein To: Dmitry Torokhov Cc: linux-input@vger.kernel.org, Alexander Stein Subject: [PATCH] rotary_encoder: Use proper irqflags Date: Wed, 2 Feb 2011 22:29:29 +0100 Message-Id: <1296682169-12653-1-git-send-email-alexander.stein@informatik.tu-chemnitz.de> X-Mailer: git-send-email 1.7.4.rc3 X-Spam-Score: -0.9 (/) X-Spam-Report: --- Textanalyse SpamAssassin 3.3.1 (-0.9 Punkte) Fragen an/questions to: Postmaster TU Chemnitz * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP * 0.1 TVD_RCVD_IP TVD_RCVD_IP --- Ende Textanalyse X-Scan-Signature: 2da4cb75faf7b3f12212370ffd4cc0ae Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org diff --git a/drivers/input/misc/rotary_encoder.c b/drivers/input/misc/rotary_encoder.c index 1f8e010..7e64d01 100644 --- a/drivers/input/misc/rotary_encoder.c +++ b/drivers/input/misc/rotary_encoder.c @@ -176,7 +176,7 @@ static int __devinit rotary_encoder_probe(struct platform_device *pdev) /* request the IRQs */ err = request_irq(encoder->irq_a, &rotary_encoder_irq, - IORESOURCE_IRQ_HIGHEDGE | IORESOURCE_IRQ_LOWEDGE, + IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING, DRV_NAME, encoder); if (err) { dev_err(&pdev->dev, "unable to request IRQ %d\n", @@ -185,7 +185,7 @@ static int __devinit rotary_encoder_probe(struct platform_device *pdev) } err = request_irq(encoder->irq_b, &rotary_encoder_irq, - IORESOURCE_IRQ_HIGHEDGE | IORESOURCE_IRQ_LOWEDGE, + IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING, DRV_NAME, encoder); if (err) { dev_err(&pdev->dev, "unable to request IRQ %d\n",