From patchwork Mon Sep 27 13:01:36 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: ruslanpisarev@gmail.com X-Patchwork-Id: 212162 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 o8RD1wCs018238 for ; Mon, 27 Sep 2010 13:01:58 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752639Ab0I0NB4 (ORCPT ); Mon, 27 Sep 2010 09:01:56 -0400 Received: from mail-bw0-f46.google.com ([209.85.214.46]:44137 "EHLO mail-bw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752067Ab0I0NBz (ORCPT ); Mon, 27 Sep 2010 09:01:55 -0400 Received: by bwz11 with SMTP id 11so3241947bwz.19 for ; Mon, 27 Sep 2010 06:01:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer; bh=VUYbRdI9K+8cpfRaFrsHOOmOTSOrjNP6KvjFrsOT5ew=; b=uX53Hh7i+gMOHYp5P9e6d98EsKXCNZCdKSk9X1ZUd1f38ys1r/PY8Ta7zPMJx81uQp smys86dq4ZQBJBMMS9u/ZErr+caVxOaWbWNyUlOa0cgCv/XD60noe5ZFjMFoVyFt+Pvb dbwmMAPhu4rJ86uDtBdgu5NUtBiYi2E/g/rkg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=Nmnlgqd06RphF8uSgQYGdcZPt307py3QO6e3JJ+VxZj532H2byG56b/brs0kkRdhKx PghgtGqH9aBu5SyLmg6VBB5HOPGme/ZTVsDXymIwN+5UlKIjaiLQn6eX9RflYZr7vsM3 tDLJaJZwX5dRcUniucCwLHolxh2++C+owD/mU= Received: by 10.204.76.69 with SMTP id b5mr5309984bkk.79.1285592514283; Mon, 27 Sep 2010 06:01:54 -0700 (PDT) Received: from localhost.localdomain ([109.254.0.19]) by mx.google.com with ESMTPS id 11sm4346834bkj.11.2010.09.27.06.01.52 (version=SSLv3 cipher=RC4-MD5); Mon, 27 Sep 2010 06:01:53 -0700 (PDT) From: Ruslan Pisarev To: linux-media@vger.kernel.org Cc: ruslan@rpisarev.org.ua Subject: [PATCH 02/13] Staging: cx25821: fix braces and space coding style issue in cx25821-audio-upstream.c This is a patch to the cx25821-audio-upstream.c file that fixed up a brace and space Errors found by the checkpatch.pl tools. Date: Mon, 27 Sep 2010 16:01:36 +0300 Message-Id: <1285592496-32121-1-git-send-email-ruslan@rpisarev.org.ua> X-Mailer: git-send-email 1.7.0.4 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Mon, 27 Sep 2010 13:01:58 +0000 (UTC) diff --git a/drivers/staging/cx25821/cx25821-audio-upstream.c b/drivers/staging/cx25821/cx25821-audio-upstream.c index cdff49f..6f32006 100644 --- a/drivers/staging/cx25821/cx25821-audio-upstream.c +++ b/drivers/staging/cx25821/cx25821-audio-upstream.c @@ -40,8 +40,8 @@ MODULE_AUTHOR("Hiep Huynh "); MODULE_LICENSE("GPL"); static int _intr_msk = - FLD_AUD_SRC_RISCI1 | FLD_AUD_SRC_OF | FLD_AUD_SRC_SYNC | - FLD_AUD_SRC_OPC_ERR; + FLD_AUD_SRC_RISCI1 | FLD_AUD_SRC_OF | FLD_AUD_SRC_SYNC | + FLD_AUD_SRC_OPC_ERR; int cx25821_sram_channel_setup_upstream_audio(struct cx25821_dev *dev, struct sram_channel *ch, @@ -506,7 +506,7 @@ int cx25821_audio_upstream_irq(struct cx25821_dev *dev, int chan_num, { int i = 0; u32 int_msk_tmp; - struct sram_channel *channel = dev->channels[chan_num].sram_channels; + struct sram_channel *channel = dev->channels[chan_num].sram_channels; dma_addr_t risc_phys_jump_addr; __le32 *rp; @@ -608,7 +608,7 @@ static irqreturn_t cx25821_upstream_irq_audio(int irq, void *dev_id) if (!dev) return -1; - sram_ch = dev->channels[dev->_audio_upstream_channel_select]. + sram_ch = dev->channels[dev->_audio_upstream_channel_select]. sram_channels; msk_stat = cx_read(sram_ch->int_mstat); @@ -733,7 +733,7 @@ int cx25821_audio_upstream_init(struct cx25821_dev *dev, int channel_select) } dev->_audio_upstream_channel_select = channel_select; - sram_ch = dev->channels[channel_select].sram_channels; + sram_ch = dev->channels[channel_select].sram_channels; /* Work queue */ INIT_WORK(&dev->_audio_work_entry, cx25821_audioups_handler); @@ -764,9 +764,8 @@ int cx25821_audio_upstream_init(struct cx25821_dev *dev, int channel_select) str_length + 1); /* Default if filename is empty string */ - if (strcmp(dev->input_audiofilename, "") == 0) { + if (strcmp(dev->input_audiofilename, "") == 0) dev->_audiofilename = "/root/audioGOOD.wav"; - } } else { str_length = strlen(_defaultAudioName); dev->_audiofilename = kmalloc(str_length + 1, GFP_KERNEL);