Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp655859imm; Wed, 10 Oct 2018 02:04:06 -0700 (PDT) X-Google-Smtp-Source: ACcGV61Vu7gYv9r/j2ecs+opYBbc7LVLicY5ZOvOEbN/V3IHWz4VsNiPT81FJWaS0AxxbQVUdA6f X-Received: by 2002:a63:525c:: with SMTP id s28-v6mr28663133pgl.78.1539162246751; Wed, 10 Oct 2018 02:04:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539162246; cv=none; d=google.com; s=arc-20160816; b=r7tC3b8pupKCEaK8P4lpHXYs+LNvDsRLfY5ZLX13vpQCj1GAPnP6tnpCE4NOKVgp3c noWExis/aEMqHKXKgAKP/QwBY5WRVqSdh/nlMEw3A8gzQuLsiLhAvTqeMKFw7WHQ1wRr oifql7nfJFk1KHoKcHnoTqEqCPFwJ+DYOYQkAHQqELoPaaIkWON2UWh9Z5AHWMeRdTHU MBCx5hNdmGwcXah0tgubJJd2CyC0beNrMcoDrWJ6Np5suRrbXLPFlV05owDRA445IMXx 4w+usyn6LX1msnBF1ccrPb8ZeXq1zSVuMnibm0YyUU2ZYJ2Zv5KJ2cisQdVJ63J62JOp QtdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=TA2hMcCsbnh1Gd9P/xX1f3LeZx7iF3o9MbmxqKWAyAk=; b=OAJOk9ZVYEtlTg/rIkf2QXfd9yfCp1JjzO/6gQDz1OWZeIuW42xYuXg4ZJGfqOXq0o h+QdqB4jsZv5wMywIr6/1BWyb8Ud/Q4BtG83LdOmcj/hLRxzdJSiTd1HhfuX/GrdqX0X 3mw26S8JqU33msEVer7IbkpwF6b9D4Lonzej9N9dQqF0/YpfhFdtodWYuOdB5wfFKswP dOqwf9+DwmcY4/Kbxk0cbetDBTrmmb/8sTvby0h2jD9uEZ2mTBqDNTj5dsuBx9aY7WmU jpZEie+NZX9/Y2/znD2Hcn8wbdzMOGMqj387IdkzaoChD5IA9kl2hVBEvttxgGFvPUgv UDjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=GAUp9Mt9; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n74-v6si26394736pfj.30.2018.10.10.02.03.52; Wed, 10 Oct 2018 02:04: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=fail header.i=@gmail.com header.s=20161025 header.b=GAUp9Mt9; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727709AbeJJQXK (ORCPT + 99 others); Wed, 10 Oct 2018 12:23:10 -0400 Received: from mail-lf1-f66.google.com ([209.85.167.66]:41659 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727554AbeJJQXI (ORCPT ); Wed, 10 Oct 2018 12:23:08 -0400 Received: by mail-lf1-f66.google.com with SMTP id q39-v6so3360620lfi.8; Wed, 10 Oct 2018 02:01:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=TA2hMcCsbnh1Gd9P/xX1f3LeZx7iF3o9MbmxqKWAyAk=; b=GAUp9Mt9TeIwF5R3rhnYGJUHDiV1Qz/t25mpiYrjA7PbOKKMSHW7EKhtkKOpWCUhAf PgXHrmRcHzz/LkNWkS0Zkh7Ip7iuvohCFqt6tYxsCXYLJWI2G+hSjPwuaoYZAAuLc8d8 2bzul8GgZQpSk99e0+gRxhVqAs7Gkm8N3ogKc7HjOhktzC37/It4mMM109Vkeo4f5rG3 cTrhEBW6eEf+rPrhaJRpd+YyvvKyVkCpvBipg5TlFCICCqGH1ZoAUqnfQeEOAzEUtXqv 6tSMzRpzKvIuxBH2LPEAhxPEHQQitXWv6dMYnlC3031bXaoRn35v6V3TwLKH1W9zJ9dh wyrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=TA2hMcCsbnh1Gd9P/xX1f3LeZx7iF3o9MbmxqKWAyAk=; b=HMTBQ7GJvEGFFttIA9x9tHDOUc3o6A6MJvkKE7KJL/V744LmDwYrFKxzkUMUmXR9be /VIvdiGUPWyiqS/I40yD8QYSv0bmSSVoSNZUTUhsdI5+Hj//L9U9DvQUQ62AEtINhjNd RYqczrFq5kliUtgf657JAKcbPRtmsF1h53xrYmnDTlHR7onP/N/U531oBl+oWe/8avvt LwYmS82u6iwyJwTedRV0GMia2l16DpLpkvajbHqh76IJz7YXze74KLqlFY98zp5utyny YJEhhQ6RURQ2WdLbJkKIi2K1CdSzZku0ju/L11Wik+oLfLqxNEcdYM2HQPaCNZ0FSh0s EVAw== X-Gm-Message-State: ABuFfojaEoSCvvw3a3pgCzURWdPvnqAkPnonC49ZCWMsbPR9csgyt+lg lxsvPCSqNDZdzFgWgka2Fn4= X-Received: by 2002:a19:5205:: with SMTP id m5-v6mr17373907lfb.68.1539162114515; Wed, 10 Oct 2018 02:01:54 -0700 (PDT) Received: from localhost.localdomain ([5.57.50.195]) by smtp.gmail.com with ESMTPSA id q2-v6sm2150078lfc.67.2018.10.10.02.01.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 10 Oct 2018 02:01:53 -0700 (PDT) From: Emil Renner Berthing To: linux-rockchip@lists.infradead.org Cc: Emil Renner Berthing , Rob Herring , Mark Rutland , Heiko Stuebner , Mark Brown , Enric Balletbo i Serra , Brian Norris , Douglas Anderson , Shunqian Zheng , Nickey Yang , Klaus Goger , Randy Li , Chris Zhong , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org Subject: [PATCH 5/7] spi: rockchip: mark use_dma as bool Date: Wed, 10 Oct 2018 11:00:36 +0200 Message-Id: <20181010090038.20834-6-kernel@esmil.dk> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181010090038.20834-1-kernel@esmil.dk> References: <20181010090038.20834-1-kernel@esmil.dk> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The driver data has a u32 field use_dma which is only ever used as a boolean, so change its type to reflect that. Signed-off-by: Emil Renner Berthing --- drivers/spi/spi-rockchip.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/spi/spi-rockchip.c b/drivers/spi/spi-rockchip.c index 85358f96f78f..1d8bf45304a5 100644 --- a/drivers/spi/spi-rockchip.c +++ b/drivers/spi/spi-rockchip.c @@ -202,7 +202,7 @@ struct rockchip_spi { bool cs_asserted[ROCKCHIP_SPI_MAX_CS_NUM]; - u32 use_dma; + bool use_dma; struct sg_table tx_sg; struct sg_table rx_sg; struct rockchip_spi_dma_data dma_rx; @@ -631,9 +631,9 @@ static int rockchip_spi_transfer_one( /* we need prepare dma before spi was enabled */ if (master->can_dma && master->can_dma(master, spi, xfer)) - rs->use_dma = 1; + rs->use_dma = true; else - rs->use_dma = 0; + rs->use_dma = false; rockchip_spi_config(rs); -- 2.19.1