Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1897746imm; Sat, 2 Jun 2018 11:40:06 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKVNCbNulxDugjhXFRXyQjXWaE0zUcuUx8kcu43r6sT1k1m9p23MUJW6jlmFkI0zUNVACla X-Received: by 2002:a62:3c15:: with SMTP id j21-v6mr15423322pfa.7.1527964806747; Sat, 02 Jun 2018 11:40:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527964806; cv=none; d=google.com; s=arc-20160816; b=iapanWyiZ9+tIqRLkNT2Y2dRGOA9/JLuSnicqNnZcjwu6YKB1GusKGFcFTzS1bJG+B rXyQGtm61CYk0bBMDjyUKtGYTT87ydg78wqCOtWQjZr1isdW0UmC72nMvIVtutDxKGO9 GvpD8IlTIFKH3nauEYPWOpDVwAY7/Qvd+8eSS3QXfGlbh9K/pEAH9NxUdT7dboGZWah+ jb11ux1VfyA4I6Vtld+dE1FzNk5gEdHUbg6W1sKHFsFX0aotGyvNRIW34YgdyCkwOsbN 6y1yXHPXE6W/RLEOnHFAtH4DeHfc7Kl87pbVkTrThCI5/EL1IE4w/fYJjZ/x1i3r+Yhx 1Img== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=gwtX6xmFUjI6jMiEMsSoTwDJhgG6zGt5WPgN3rm1Dqc=; b=XKWuHuS/l4rqDfusAek6RkFW8khl6DhNElaIUk24kO8vUlwUojTPD1GcgmX7CibMRv bAElskNOYnrSJTa0sZkarAPs+mRHT53bY4oRLZixSeMGg/s7FAxWDZptNGf96YLCwAcz c6vMf5FXM5qRxzPTZicZmFAiUGENJPsUoF0cjcN1Uxk7aRNxv9cKoFpuKTfhGCBBP4YH s0LcpDP4AwUAZ/GlCTMs9vbvu3jbWCptD9Qpjb/sdGkTMoE6Kw6w6BVjOZ2b0hbtFeQ/ 0twZNl7CBqPhYjjZAzo8sf8N+TWjekFfstrjDpxrSTxqWJltFhTrsnj0EUBYZYrd5Rjg uUuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=o+Gisaix; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w28-v6si7530251pge.329.2018.06.02.11.39.33; Sat, 02 Jun 2018 11:40:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=o+Gisaix; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751948AbeFBSio (ORCPT + 99 others); Sat, 2 Jun 2018 14:38:44 -0400 Received: from mail-pl0-f66.google.com ([209.85.160.66]:33051 "EHLO mail-pl0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751896AbeFBSim (ORCPT ); Sat, 2 Jun 2018 14:38:42 -0400 Received: by mail-pl0-f66.google.com with SMTP id n10-v6so17179828plp.0 for ; Sat, 02 Jun 2018 11:38:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=gwtX6xmFUjI6jMiEMsSoTwDJhgG6zGt5WPgN3rm1Dqc=; b=o+Gisaixz/so+E+3H5HHE1W3d68xpqtMKuE1XMA5NsB1ZuPvuvOCZ/duzKXezj+qVt Clf2FvGyxMEd34zSGr83qIS/nt3LEKXJ2O0rHKvvIcibIAWJk/1YMktX4Gft86YLzrgY y/5fGVAeEu6MU3iu6DWyb6HKlb9G289p/OuBp85VDW0+Fk53dsbvYkrfv3OI84Qo+3H2 1lf2gm0f3oGsFhXhzF7SFs9keJp5bS8gYzQ2kD8xDRZifK0bnyhHdcUHw+9/Rbo13W1a dV1cku/xNrKsORnY6nR1chHkkib5oeCy+kyi8OaCKLGwoW6mydSm7DFq0WwxZ2i3UCfA sdEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=gwtX6xmFUjI6jMiEMsSoTwDJhgG6zGt5WPgN3rm1Dqc=; b=c7xLK42b+xgzOvw2S7baMdJ0Va4JFSVYBrWZe06NP+fM6VmJUAC0p2n5rgTqs80Nzt +LRg3T4uWCiZc+HUtphkxfMGmgSY0Ne6LoczM4z/nXSoUu8fs6RYsS9O/XJYaobASA9i phT/w7F59GxPc3S0+bP0+ej+H1O4J+clHxIbcUwW2hM3e5PymqXXPVplfDwWUWwMzCTB u5ucMnJ1fbQJuazIyIzYfFBlbGPGMVe7tRanRD6+BgiEbP34qMr5+W59ThdBvExRil8Y renUFb1X79sZj661XkerSTS0/fr5adPAoIaet8x0schlEN4lgJHzBa5+fl48Pa/eeTS5 gaMw== X-Gm-Message-State: APt69E17yv9vJSyUUW9exflK0NcDGM8NAKWXCeBMLJonFxGuksurrMQT UU/HaOxhaimKoC50XSyFKFc= X-Received: by 2002:a17:902:740a:: with SMTP id g10-v6mr3389931pll.246.1527964722195; Sat, 02 Jun 2018 11:38:42 -0700 (PDT) Received: from localhost ([47.30.23.93]) by smtp.gmail.com with ESMTPSA id m11-v6sm6746034pfk.42.2018.06.02.11.38.40 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 02 Jun 2018 11:38:41 -0700 (PDT) From: Sankalp Negi To: gregkh@linuxfoundation.org Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, neil@brown.name, sankalpnegi2310@gmail.com Subject: [PATCH v3 1/5] staging: mt7621-spi: Indent case labels and switch at the same level. Date: Sun, 3 Jun 2018 00:07:27 +0530 Message-Id: <20180602183731.12395-2-sankalpnegi2310@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180602183731.12395-1-sankalpnegi2310@gmail.com> References: <20180602183731.12395-1-sankalpnegi2310@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The patch fixes following checkpatch.pl issue: ERROR : switch and case should be at the same indent Signed-off-by: Sankalp Negi --- drivers/staging/mt7621-spi/spi-mt7621.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/drivers/staging/mt7621-spi/spi-mt7621.c b/drivers/staging/mt7621-spi/spi-mt7621.c index 37f299080410..b268084b6cd1 100644 --- a/drivers/staging/mt7621-spi/spi-mt7621.c +++ b/drivers/staging/mt7621-spi/spi-mt7621.c @@ -138,17 +138,17 @@ static int mt7621_spi_prepare(struct spi_device *spi, unsigned int speed) reg &= ~(MT7621_CPHA | MT7621_CPOL); switch(spi->mode & (SPI_CPOL | SPI_CPHA)) { - case SPI_MODE_0: - break; - case SPI_MODE_1: - reg |= MT7621_CPHA; - break; - case SPI_MODE_2: - reg |= MT7621_CPOL; - break; - case SPI_MODE_3: - reg |= MT7621_CPOL | MT7621_CPHA; - break; + case SPI_MODE_0: + break; + case SPI_MODE_1: + reg |= MT7621_CPHA; + break; + case SPI_MODE_2: + reg |= MT7621_CPOL; + break; + case SPI_MODE_3: + reg |= MT7621_CPOL | MT7621_CPHA; + break; } mt7621_spi_write(rs, MT7621_SPI_MASTER, reg); -- 2.11.0