Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1724307imm; Sat, 2 Jun 2018 07:28:06 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKBe+1cbGu63lSFenmi2JyaPhBJ3rFvkIL2tt1loggkbYRz7vYdjmFV4j59TD0hrF+DJEe8 X-Received: by 2002:a63:3759:: with SMTP id g25-v6mr12329492pgn.59.1527949686255; Sat, 02 Jun 2018 07:28:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527949686; cv=none; d=google.com; s=arc-20160816; b=WRV5qcQcVWR1ksXz3oBf0A8faFGTeAk3OcezTcXVNBhMqCOndCxrDOzYl1UVsUZjYL 5s8MRm3nCUDsnPIJdD1thidyztkeYBkn53bLm09VlWH6JQi0sooBRyfrBpVWhSrDVj87 5dKKyYIhyikCvFBmYsOStC1JUC/ggKfzu8JDQOHaumQVspqUz/TdCgwBVk/hIKStCU0c opJ5i9MUciQlWeQB9sFjOdcBq3YXrk8b7PrzGYTqh+tMjwFuLuoidjzQZrSLIVsktnfb wgM7m0xA1qH+VttGt2IvnI4EXKhuuBf8W8/OtwqHytzivsqRcnd/SxQ1YvlM27eTH5J2 k1WQ== 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=W1igQYIgjqQBYjxU5mP9OAmHlsYAY4Os358le+Z1QVSadpqwwkzmxvyibdLpmgAYZ7 rLJ2UeCb2f1dyi2W9xRS+vI/9X/LgA23UaaMNyAEjxuQoC8AiLu87u5QmVxheVnor+FX NKmu6WIdy3W4xUB0S206tkB3+Eabl/GX/+b2mC/w9wptXeENsI43Tt3VKAIfMG4p3mjC GIkkzuR44aRXorcTrwm+X/vzYDK/Vj7WXwg6m3K+OSU2l8uweZexUjh3gCefG9+HuQGE 8P/0QZqWPk24BQcAsBRuYVIi4hVv9AToHjCJcLXIfYp/QbA6HnKBOdxtCUYccUsxAyAP Fg5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ljuj/lzF; 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 j7-v6si43497845pfh.3.2018.06.02.07.27.51; Sat, 02 Jun 2018 07:28: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=ljuj/lzF; 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 S1751701AbeFBO1M (ORCPT + 99 others); Sat, 2 Jun 2018 10:27:12 -0400 Received: from mail-pl0-f65.google.com ([209.85.160.65]:36763 "EHLO mail-pl0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751381AbeFBO1L (ORCPT ); Sat, 2 Jun 2018 10:27:11 -0400 Received: by mail-pl0-f65.google.com with SMTP id v24-v6so16991436plo.3 for ; Sat, 02 Jun 2018 07:27:10 -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=ljuj/lzFvqrxR1im3/yaFfX5S7HV6BA+CC9dUCwh7XnwcBQaLMzY38KWMieNEj1ZY1 572jr+W5qvlm9xXNxYovBniLRyETojWRxc2oLBWH+al+22meipSNXiTU3eRmmvZvMuJr z99DSb/ZmabpzFCncZ39SnsMEP9tcWTfmVS2iT9J6p8gIftixGHB2ns2Aaua9Z/339jw VSSYUKsvI1AcwDDtdjW9RZamVcrbAPMGYTaCoaFP81ffwus9DU/i/XD7gYyYfuQrqPJA n1bJotc8Cne1EwljA2wdEo4l92a6SpeXhjPCuT5roC4S+TVgTeIP3G+x/r53+0geaznk k0Ag== 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=YabHzBtVKdR6w6Aj4b9L/5GL6yfPUGb8brt3m9u9IU1lCuFWAV+qUPRD5nIAVaiidE l/SNSVcMMFkdRNQl8Z9XihmG1yAK20AShmV2dYHqHzxiyoMo0pOsDueQzMDX+GQKOWYA 3mDr2v1HfGcHCdkbvSewpqmpiHWJBpjbvoS55z8GLOnGvgUPA+j0Wj93bDZhMoKeuOlt yrfBFmGk4DUAxmSfrP8SqfGRimSGw9mb+u6UrCNa6/ZfeHWXtEI7cbwvspeO2Y4OYM0K SjKyRLpa0LhVJer0+GUes/c57xvs2zcZlSHftJQKrWHRCOrsHxTOOyPJFutJX4mkQQv+ OsWw== X-Gm-Message-State: ALKqPwd098eyKxI8ETSb2SumGWNsEg+a2KIL0+gfnD64uk6o0WFBjwgO /I35iA9qC6iFBQnn9WnYkYI= X-Received: by 2002:a17:902:5a87:: with SMTP id r7-v6mr15232878pli.78.1527949630510; Sat, 02 Jun 2018 07:27:10 -0700 (PDT) Received: from localhost ([47.30.73.118]) by smtp.gmail.com with ESMTPSA id z82-v6sm12436550pfk.30.2018.06.02.07.27.08 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 02 Jun 2018 07:27:09 -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 v2 1/5] staging: mt7621-spi: Fix Coding style issues reported by checkpatch.pl. Date: Sat, 2 Jun 2018 19:56:01 +0530 Message-Id: <20180602142605.6846-2-sankalpnegi2310@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180602142605.6846-1-sankalpnegi2310@gmail.com> References: <20180601091553.GA5821@kroah.com> <20180602142605.6846-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