From patchwork Thu Jan 7 07:15:47 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sudip Mukherjee X-Patchwork-Id: 7973841 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 8E463BEEE5 for ; Thu, 7 Jan 2016 07:16:55 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5CD082015E for ; Thu, 7 Jan 2016 07:16:51 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 1FBDE20142 for ; Thu, 7 Jan 2016 07:16:50 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 3D79F265711; Thu, 7 Jan 2016 08:16:49 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=no version=3.3.1 Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id BFBE1265713; Thu, 7 Jan 2016 08:16:15 +0100 (CET) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 4A56D265713; Thu, 7 Jan 2016 08:16:13 +0100 (CET) Received: from mail-pa0-f42.google.com (mail-pa0-f42.google.com [209.85.220.42]) by alsa0.perex.cz (Postfix) with ESMTP id 44C1C265546 for ; Thu, 7 Jan 2016 08:16:04 +0100 (CET) Received: by mail-pa0-f42.google.com with SMTP id uo6so233294324pac.1 for ; Wed, 06 Jan 2016 23:16:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=HN4nfIfEpKMjGlMGkTQtZKkLrZVPy15G7Ns2TUWHRlY=; b=Jyjh/sJNaQXXeMm4AU3XVRfKAenEuLZKIzvhlnAnpcCV+GmRUwpCh6ovqsLghLVSWp ybCGjGgnMbJtqwIB6TaORNY7PmELTpXzcL10I2ewMbO/5yxZU15tQ2+xawQuuVgEwChT dCnScPVD9+rcB5tdhpMaxFEj06bKb3hQ3HS4SaboU6HoSZhGOVcqZdZ4sG3gTcAWQfYA h/F1UV9HjVUpm/ffP6pq3gwQlWRiHbVpXwKqKGw1zcVPllv1J0cbyYAmAurdLAlbDYEc uzFvbKihCVvMKEGGWAuUu7kCMITckwjeQ5bh3V/uCWImcT91tTuhVI5PcgFN5C87FdRj nCQw== X-Received: by 10.66.149.7 with SMTP id tw7mr22897204pab.72.1452150963363; Wed, 06 Jan 2016 23:16:03 -0800 (PST) Received: from sudip-pc.vectortproxy.org ([183.82.228.160]) by smtp.gmail.com with ESMTPSA id ah10sm149645792pad.23.2016.01.06.23.16.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 06 Jan 2016 23:16:02 -0800 (PST) From: Sudip Mukherjee To: Jaroslav Kysela , Takashi Iwai Date: Thu, 7 Jan 2016 12:45:47 +0530 Message-Id: <1452150951-1571-2-git-send-email-sudipm.mukherjee@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1452150951-1571-1-git-send-email-sudipm.mukherjee@gmail.com> References: <1452150951-1571-1-git-send-email-sudipm.mukherjee@gmail.com> Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Sudip Mukherjee Subject: [alsa-devel] [PATCH 2/6] [ALSA] portman2x4 - fix blanklines X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP checkpatch complains about multiple blank lines and missing blank line after declaration. Signed-off-by: Sudip Mukherjee --- sound/drivers/portman2x4.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/sound/drivers/portman2x4.c b/sound/drivers/portman2x4.c index ba0860d..4f9717b 100644 --- a/sound/drivers/portman2x4.c +++ b/sound/drivers/portman2x4.c @@ -284,7 +284,6 @@ static void portman_write_midi(struct portman *pm, /* Data sent. */ } - /* * Read MIDI byte from port * Attempt to read input byte from specified hardware input port (0..). @@ -357,7 +356,6 @@ static int portman_read_midi(struct portman *pm, int port) portman_write_data(pm, 1); /* Cause rising edge, which shifts data. */ portman_write_data(pm, 0); /* Return data clock low. */ - /* De-assert Strobe and return data. */ portman_write_command(pm, cmdout); /* Output saved address+IE. */ @@ -375,6 +373,7 @@ static int portman_read_midi(struct portman *pm, int port) static int portman_data_avail(struct portman *pm, int channel) { int command = INT_EN; + switch (channel) { case 0: command |= RXDATA0; @@ -393,7 +392,6 @@ static int portman_data_avail(struct portman *pm, int channel) return 0; } - /* * Flushes any input */ @@ -823,7 +821,6 @@ static int snd_portman_remove(struct platform_device *pdev) return 0; } - static struct platform_driver snd_portman_driver = { .probe = snd_portman_probe, .remove = snd_portman_remove,