From patchwork Mon Aug 8 05:52:31 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anup Patel X-Patchwork-Id: 9266687 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 1E58560839 for ; Mon, 8 Aug 2016 05:56:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0F0E326E69 for ; Mon, 8 Aug 2016 05:56:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 039FA27813; Mon, 8 Aug 2016 05:56:02 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id BCA2126E69 for ; Mon, 8 Aug 2016 05:56:01 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bWdVs-0000ow-9H; Mon, 08 Aug 2016 05:54:12 +0000 Received: from mail-pa0-x236.google.com ([2607:f8b0:400e:c03::236]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bWdVK-0000dS-8M for linux-arm-kernel@lists.infradead.org; Mon, 08 Aug 2016 05:53:39 +0000 Received: by mail-pa0-x236.google.com with SMTP id ti13so32195895pac.0 for ; Sun, 07 Aug 2016 22:53:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=D9Cbc3Jak65ogF8GvjSPzoxkMARGirdan73KPscUJ2c=; b=fqp4CK9ma2KVoYdlg80HF3u4AewhDy5+50L8mW2s7GdFFPDkarEdP3X2dYIqITxaKv pDnjQb+WoEYtJyaZ7dlP8VtFr16wmfD59dNCWzmji9L6/sfgHuuA4zHojQfU8tbTZpg7 n2xOIFScUQOiecdOEvIRNgiggpP/Lj4+MxIwc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=D9Cbc3Jak65ogF8GvjSPzoxkMARGirdan73KPscUJ2c=; b=YTNkuiqrpiZ1mVl6pBb0Lio9B2UoZ2UxqYoknTz0O+IePSum0A+4/IIhAafQmkaMQZ bs7DjeZVTSm4TH/uswH+KmhgRj49ar6bpKNjUo5LHSzhYES2PH5tZ7hm8bqcRE2bZXV0 0A8BuPD+y6gufypFG2f097yPPn4yFDt3LEUggPlkx45/SrhCBDeqShAS4U+TwFGSaeg9 BX/MQuPvhSJqM12bIrFWDIiNVr/Hzc1UuuDj2Sk3CWfI2tTRQIM0WNk/IAYI/Ovacca4 c62SrHpuxiQTVpdB4ukLHlH0/TniykQc8Uenp6idlcjtxPyS1++LR7sb2gdcNoOzSUhr KXLg== X-Gm-Message-State: AEkoouslWIJN+0bWHBkb+fxAlXpQfzw6iceHwTyb0LxEGqdrDRuwlLGslx8S6AX+CeOvfPsM X-Received: by 10.66.217.132 with SMTP id oy4mr159573362pac.46.1470635597210; Sun, 07 Aug 2016 22:53:17 -0700 (PDT) Received: from anup-HP-Compaq-8100-Elite-CMT-PC.ban.broadcom.com ([202.140.56.34]) by smtp.gmail.com with ESMTPSA id u72sm44404402pfa.31.2016.08.07.22.53.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 07 Aug 2016 22:53:16 -0700 (PDT) From: Anup Patel To: Greg Kroah-Hartman , Jonathan Corbet Subject: [PATCH RESEND v2 2/8] uio: code style cleanup Date: Mon, 8 Aug 2016 11:22:31 +0530 Message-Id: <1470635557-13416-3-git-send-email-anup.patel@broadcom.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1470635557-13416-1-git-send-email-anup.patel@broadcom.com> References: <1470635557-13416-1-git-send-email-anup.patel@broadcom.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160807_225338_358397_E450ECDD X-CRM114-Status: GOOD ( 12.60 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, Anup Patel , Scott Branden , linux-doc@vger.kernel.org, Ray Jui , Russell King - ARM Linux , linux-kernel@vger.kernel.org, Rob Herring , bcm-kernel-feedback-list@broadcom.com, Ankit Jindal , linux-arm-kernel@lists.infradead.org, Jan Viktorin MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Ankit Jindal This patch fixes the indentation of switch-case block in uio driver. Signed-off-by: Ankit Jindal Signed-off-by: Anup Patel --- drivers/uio/uio.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/uio/uio.c b/drivers/uio/uio.c index fba021f..f2729b7 100644 --- a/drivers/uio/uio.c +++ b/drivers/uio/uio.c @@ -703,13 +703,13 @@ static int uio_mmap(struct file *filep, struct vm_area_struct *vma) } switch (idev->info->mem[mi].memtype) { - case UIO_MEM_PHYS: - return uio_mmap_physical(vma); - case UIO_MEM_LOGICAL: - case UIO_MEM_VIRTUAL: - return uio_mmap_logical(vma); - default: - return -EINVAL; + case UIO_MEM_PHYS: + return uio_mmap_physical(vma); + case UIO_MEM_LOGICAL: + case UIO_MEM_VIRTUAL: + return uio_mmap_logical(vma); + default: + return -EINVAL; } }