From patchwork Sun Apr 28 20:28:36 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 316 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f200.google.com (mail-pf1-f200.google.com [209.85.210.200]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id BBB593F08F for ; Sun, 28 Apr 2019 22:29:11 +0200 (CEST) Received: by mail-pf1-f200.google.com with SMTP id j1sf6140597pff.1 for ; Sun, 28 Apr 2019 13:29:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1556483349; cv=pass; d=google.com; s=arc-20160816; b=sMx1f9vvhgIpPqF2mXVMKB9qjiGIAsT4ssfdNCM+FogtgqNkrj6EJFp2pPtkbuvx15 mhi4HM37pvYMpmYV79Nr05PzGZB1g0U4F59uvu4JgWXJ5wVNL8zvpR/6ZgQIybmJBILN Vlt1vWX7ruMzSy5xKm5TsQrc3G+Br4vkhA94vGG351gqDmMIveI8ul7re3XprBXzs5Hc I1xsY68niTHy1LAlVLx9iid3pTJyo6J2xa33qmL+wL3/Qq9lRnw5l852YF64OFg/la3P 2s/QMeDsbD9DgI/RMKE0FYW09YUiwz0TYuFlsLdCsHGkcBEooomujAPGTxRtx9iPwykM oc+A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=dhvDHwyCu3xYbb2eN9uSrLsaLXEKB8tWfWRo87iVWPg=; b=nJJ9+gilYWTdkKvxGShi2UswA5Tz2ZqLAToDAYJy1KEBg7MJioPZ7QsWdV4gOkcPt0 cDIUQIU6JZIVvYGrR5a1wIzeeRMnob9Yl6DvuDnms/yX9O7jszi6iJLldkor36N0+jPd 0c4DQbUNgdED5gY4pnS3oqpfYz7CsZBH+yQUT4hME9HFG8BZrYbIXEuVrAuObQjRw1B6 UrYIQ+bM7eIIJ2czsLbMZ8cwl6pmvj9sDP3NheFdUIz4oiY/Hqk7ld8xUqCWCeUS5f36 RDLcqLesXuYEk6kMFvbXCISNqfuwm8BMPrZ3sYYuqGgFwVsPN+LpcIc4t7oc2JxaFvoo KEwQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=X6Qf3DuC; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=dhvDHwyCu3xYbb2eN9uSrLsaLXEKB8tWfWRo87iVWPg=; b=JnODKrfhZDj3zsjbt3SbvfVslhTznXhSnqUb75dR/f5pe4NNSCeQa1pVxFoTjHLAC0 s9ifnbMUmAf248bEt3f2kXcEy3IZbM9836FxHlO5fijJtvVoNglp2j0hAcQ+xo0Cip/H 2EZYgB81BKp0xNt1gB4Gw6K3J4Jz0nXjUCAKY= 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:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=dhvDHwyCu3xYbb2eN9uSrLsaLXEKB8tWfWRo87iVWPg=; b=Q1Reh8Yxr37ILXUc0daydtyYi/Xmba7R+hoZuYIVMyaYpWVIkStjY4qEQodNJnkRIn XF5TLAh4nBEKtwdLu+C6iYOK42dOSFLVlXgfcIsLPh7JmiwlMukUfoqaFxU42cdMGFDr kIy7BegUl9o122kLPO0WfgDQ1avJbhBmPTQMiuYWnKB3CJOcqdsTJDtPXrci+ARJgwwx A/+c2xh72lNH6TysiaHa9nRR71f5l7e9MrbyTLJEkDWPrf9n6ZXvmGKgJUQR8OqJeBFg po17zfvDls3gvI8NDDBbwYQttA6mC/kVeAx97q5FFa7xlUDGY+Jta00vYXHmRx/XeF1+ sP2w== X-Gm-Message-State: APjAAAUAMDmB4/+gqz4ic/R3/sE8830WyLhqsnALO5fj/4v1PabG0PQl ITkqaLEVTP41JajT4HTl5Zqq5ChK X-Google-Smtp-Source: APXvYqxJ9nYU7QVpDXyLsBxfOzrrz+LwN1rLWfCQEq7PFORgHH0XGO+7AFeiPpQwYLLLAxalGTBRhA== X-Received: by 2002:a63:c601:: with SMTP id w1mr6044761pgg.190.1556483349679; Sun, 28 Apr 2019 13:29:09 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:b70c:: with SMTP id d12ls8394750pls.0.gmail; Sun, 28 Apr 2019 13:29:09 -0700 (PDT) X-Received: by 2002:a17:902:9693:: with SMTP id n19mr49822590plp.92.1556483349290; Sun, 28 Apr 2019 13:29:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556483349; cv=none; d=google.com; s=arc-20160816; b=zDbcuHHL8Lbr4TCqNgVa/XxCXyBAfUzdjFg5Vd2CMZLQGPanLQP334ggwQozWqRyYK clurgTmnN+LzfNM+LAjpKOjpuCadGtqup5dFsuvKTecfomGZ8P7BK8ySRC4eFfN9zWGJ hycMM604r711BzPDgPdodXG94yp58nMZ8bqrMxE1k4/8lzNbdstbMtxZS/jH3C6E53PL kC5fLigZwZQulf9Lt511vUQyiTgEy9TTHMTTbuTJTE2j9LVhieTvLo11PW2QpOWhbBL7 /Ymrz+qxZXqqcH18ByJ+j1/MzZpUCXdO5DExFAW4+V1fh9mTQOZAHqPBQDtpY70yYHuq FwoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=XFnoE+OQs19b63FjEbv4Y2p2pUKJN+c47WNEYs4N3ls=; b=dsHX+KlDlnr7l5wvon+JcgbXr+NtTAOe5W9kCcM6w+cv+ZcmTVVUMiqx9kopSbJAve ZfApe/EZv7GjbLRpurtxs6G3Ri1aAjs7a+A5prsBaEfodsgksji7mBW+k/H2XHIQ2LLd PUHnpHmZkqtbxGXotolpqJpXOu6JWu6728QDXDpfjJGyhiucNowsErAk/Ws09BFw4TWW 8XQYq0jbFUFKhRLrsoZfsX3vqac33D421ByafN/0/OOYz+fdz9wksgNvxcqXLDbVb7Mj dZmTrFXoU550rKrdA0085KPHhIm7/1qv81XhZdG3doZI3soUHdxMgFhIvqtl9eXkTwsK PWSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=X6Qf3DuC; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id x6sor6763196pgp.20.2019.04.28.13.29.08 for (Google Transport Security); Sun, 28 Apr 2019 13:29:08 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a63:6842:: with SMTP id d63mr55716104pgc.49.1556483347895; Sun, 28 Apr 2019 13:29:07 -0700 (PDT) Received: from localhost.localdomain ([115.97.185.144]) by smtp.gmail.com with ESMTPSA id x66sm68841439pfb.78.2019.04.28.13.29.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 28 Apr 2019 13:29:07 -0700 (PDT) From: Jagan Teki To: Heiko Schocher , Tom Rini Cc: u-boot@lists.denx.de, linux-amarula@amarulasolutions.com, Mario Six Subject: [PATCH v2 01/19] spi: mpc8xxx: Use short type names Date: Mon, 29 Apr 2019 01:58:36 +0530 Message-Id: <20190428202854.8590-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190428202854.8590-1-jagan@amarulasolutions.com> References: <20190428202854.8590-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=X6Qf3DuC; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Mario Six The function signatures in the driver are quite long as is. Use short type names (uint etc.) to make them more readable. Signed-off-by: Mario Six --- drivers/spi/mpc8xxx_spi.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/drivers/spi/mpc8xxx_spi.c b/drivers/spi/mpc8xxx_spi.c index 8d6d86d2b0..0c77f95159 100644 --- a/drivers/spi/mpc8xxx_spi.c +++ b/drivers/spi/mpc8xxx_spi.c @@ -20,8 +20,7 @@ #define SPI_TIMEOUT 1000 -struct spi_slave *spi_setup_slave(unsigned int bus, unsigned int cs, - unsigned int max_hz, unsigned int mode) +struct spi_slave *spi_setup_slave(uint bus, uint cs, uint max_hz, uint mode) { struct spi_slave *slave; @@ -68,17 +67,16 @@ int spi_claim_bus(struct spi_slave *slave) void spi_release_bus(struct spi_slave *slave) { - } -int spi_xfer(struct spi_slave *slave, unsigned int bitlen, const void *dout, - void *din, unsigned long flags) +int spi_xfer(struct spi_slave *slave, uint bitlen, const void *dout, void *din, + ulong flags) { volatile spi8xxx_t *spi = &((immap_t *) (CONFIG_SYS_IMMR))->spi; - unsigned int tmpdout, tmpdin, event; + uint tmpdout, tmpdin, event; int numBlks = DIV_ROUND_UP(bitlen, 32); int tm, isRead = 0; - unsigned char charSize = 32; + uchar charSize = 32; debug("spi_xfer: slave %u:%u dout %08X din %08X bitlen %u\n", slave->bus, slave->cs, *(uint *) dout, *(uint *) din, bitlen);