From patchwork Thu Mar 12 13:09:30 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Olivier Sobrie X-Patchwork-Id: 5994721 Return-Path: X-Original-To: patchwork-linux-input@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id D56069F444 for ; Thu, 12 Mar 2015 13:09:49 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D2FBB203E5 for ; Thu, 12 Mar 2015 13:09:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 357D1203A1 for ; Thu, 12 Mar 2015 13:09:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753928AbbCLNJn (ORCPT ); Thu, 12 Mar 2015 09:09:43 -0400 Received: from mail-we0-f181.google.com ([74.125.82.181]:45837 "EHLO mail-we0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753893AbbCLNJl (ORCPT ); Thu, 12 Mar 2015 09:09:41 -0400 Received: by wesu56 with SMTP id u56so16182176wes.12; Thu, 12 Mar 2015 06:09:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id; bh=upX0pSDlZaP0BlSIvm1uIrMR/a0SeMWfyCO6lKVACLM=; b=ulwI308QzqMruQP2H/7/tcKL5EWUMfEJmUHMCoM7HeRV1x74SPEmjhxrMTJXsYaRi3 oatIach6tHc3TQNE0XINxSOuekWkDEflHj2kFbqsaOxIMvrtNG3J2VmgquIXB2nU8X1p mpq55Tb4RePY04r4szoui7SGQVFbZl0gdN4S01JdGHNZpaTm/5+MlAnj3PceqZixRdAz 9eZ8bLIKWZa3AOGwd7ClGWv2fPcNJrBNjhQZnfyIhVG8b+GW0E3cRVk/sKGzmxC22QEv 1z5bh7DXkK9jC3u/0xD3n6ykkB0w0Xy5veWDCIxxSHDRymnMlI6ZykrDidEGYfeBO7xH rQ6w== X-Received: by 10.180.126.69 with SMTP id mw5mr133938937wib.12.1426165780496; Thu, 12 Mar 2015 06:09:40 -0700 (PDT) Received: from hposo.PSBE.site (mail.fortiscorp.eu. [213.246.247.62]) by mx.google.com with ESMTPSA id kr5sm10018951wjc.1.2015.03.12.06.09.39 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 12 Mar 2015 06:09:39 -0700 (PDT) From: Olivier Sobrie To: Dmitry Torokhov Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Olivier Sobrie Subject: [PATCH] input: misc: pwm-beeper: remove useless call to pwm_config() Date: Thu, 12 Mar 2015 14:09:30 +0100 Message-Id: <1426165770-11130-1-git-send-email-olivier@sobrie.be> X-Mailer: git-send-email 2.2.0 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID,T_RP_MATCHES_RCVD,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Calling pwm_config() with a period equal to zero always results in error (-EINVAL) and pwm chip config method is never called. Signed-off-by: Olivier Sobrie --- drivers/input/misc/pwm-beeper.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/input/misc/pwm-beeper.c b/drivers/input/misc/pwm-beeper.c index a28ee70..2a23643 100644 --- a/drivers/input/misc/pwm-beeper.c +++ b/drivers/input/misc/pwm-beeper.c @@ -50,7 +50,6 @@ static int pwm_beeper_event(struct input_dev *input, } if (value == 0) { - pwm_config(beeper->pwm, 0, 0); pwm_disable(beeper->pwm); } else { period = HZ_TO_NANOSECONDS(value);