Message ID | 20210510131217.49357-6-andriy.shevchenko@linux.intel.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=i+Gf=KF=lists.infradead.org=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2E4A9C433B4 for <linux-arm-kernel@archiver.kernel.org>; Mon, 10 May 2021 13:15:07 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D0233611C2 for <linux-arm-kernel@archiver.kernel.org>; Mon, 10 May 2021 13:15:06 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D0233611C2 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.intel.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=Ssfet4EiUqChioX2ep4Clp1ekqNR1edfTqGrDG2cF+I=; b=dNiQNQPv2I746ut7nIayRE4LT eU4RfbbJI4UTxRazorjRfGL1e3XGvrFW923TaEnO+2FJ0glB4ETCifwTCTh74A0cmFizpvMo5Kpwt KsdJ3EaPOuALOLiUuHniipCHYpuIhyReaWx7KgdagqGa8Ne7NfbSMy5zUlU8Rm35d6Rpskp3nqBkw OA6+kcKk5RFtsE3HNAdVRyeaI5jTM4K4h9E+wrvFseN40F2ZMERKYXTqKXC1RQJkBbnyWCqbJjewf doBer5nH/F0XMt5M6AJOs+gRDK74gRd2BSbqH42hf5zVWs+TAQXl2aaLlgSULsTYX3enUzes13wJA p1zGKsPaQ==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lg5il-00EPKr-Oo; Mon, 10 May 2021 13:13:15 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lg5i4-00EP90-Df for linux-arm-kernel@desiato.infradead.org; Mon, 10 May 2021 13:12:32 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=a0RDJ1+reTCkMb5aW6jMpSC1zPv4dV0kn3ICMqp/UjM=; b=MoXviEpzD+sanzml42SPqQ0ngO pFzRP32P+18SUX6zWQaq/jfvViwR7fxoIiBcBkdujNC5ttnPYTzTwIHdMbKukH5aVrx6JZW6QLThm 7ZYFnFGxSgYgd6Qwet4JT4XfLvzD+4YJnK+2/DT5v8YFmVZitfse4bxe5VWuBzQsl/5BAA0RcOMFI DlVxJ5dahd7sgdV03d4a19W4s1iJy4YZpPLX7z9meMTssiCBbNbD0N7I1XMQzI2d5lyA1iZkmnkW3 Fgoz7Igwy4UCR9pKsqL8hVpEFZ+5gNZh+gUlj+59ofcGZ4LhvyXC0aRN7i2KOEVNix8alvWcqe6GP muOvFWHA==; Received: from mga06.intel.com ([134.134.136.31]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lg5i1-008jfm-Vq for linux-arm-kernel@lists.infradead.org; Mon, 10 May 2021 13:12:31 +0000 IronPort-SDR: WSz1+SGlHngYaA7UqCzHRqwL35h4Qk8YNbhYnFE6bcBfI+crD1+6dCDkh7SmL+KuELV+KcO/rr FrNnICGUcTNw== X-IronPort-AV: E=McAfee;i="6200,9189,9980"; a="260455815" X-IronPort-AV: E=Sophos;i="5.82,286,1613462400"; d="scan'208";a="260455815" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 May 2021 06:12:29 -0700 IronPort-SDR: SEBoGOsd7HXGOK7sM3x2GPA4qSj8lyD5tn9LcErORMjswRKOZx6rTJNkTWPONTmR8JmYPkViGo u8daIbcG3TWQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.82,287,1613462400"; d="scan'208";a="470793122" Received: from black.fi.intel.com ([10.237.72.28]) by orsmga001.jf.intel.com with ESMTP; 10 May 2021 06:12:12 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id 2A2AA202; Mon, 10 May 2021 16:12:28 +0300 (EEST) From: Andy Shevchenko <andriy.shevchenko@linux.intel.com> To: Linus Walleij <linus.walleij@linaro.org>, Mark Brown <broonie@kernel.org>, openbmc@lists.ozlabs.org, linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Avi Fishman <avifishman70@gmail.com>, Tomer Maimon <tmaimon77@gmail.com>, Tali Perry <tali.perry1@gmail.com>, Patrick Venture <venture@google.com>, Nancy Yuen <yuenn@google.com>, Benjamin Fair <benjaminfair@google.com>, Kunihiko Hayashi <hayashi.kunihiko@socionext.com>, Masami Hiramatsu <mhiramat@kernel.org>, Andy Shevchenko <andriy.shevchenko@linux.intel.com> Subject: [PATCH v1 6/7] spi: ppc4xx: Use SPI_MODE_X_MASK Date: Mon, 10 May 2021 16:12:16 +0300 Message-Id: <20210510131217.49357-6-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210510131217.49357-1-andriy.shevchenko@linux.intel.com> References: <20210510131217.49357-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210510_061230_077777_51DE44E4 X-CRM114-Status: GOOD ( 12.56 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series | [v1,1/7] spi: Use SPI_MODE_X_MASK | expand |
diff --git a/drivers/spi/spi-ppc4xx.c b/drivers/spi/spi-ppc4xx.c index d8ee363fb714..cb6aaad73f63 100644 --- a/drivers/spi/spi-ppc4xx.c +++ b/drivers/spi/spi-ppc4xx.c @@ -235,7 +235,7 @@ static int spi_ppc4xx_setup(struct spi_device *spi) */ cs->mode = SPI_PPC4XX_MODE_SPE; - switch (spi->mode & (SPI_CPHA | SPI_CPOL)) { + switch (spi->mode & SPI_MODE_X_MASK) { case SPI_MODE_0: cs->mode |= SPI_CLK_MODE0; break;
Use SPI_MODE_X_MASK instead of open coded variant. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> --- drivers/spi/spi-ppc4xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)