From: kernel test robot <lkp@intel.com>
To: Chin-Ting Kuo <chin-ting_kuo@aspeedtech.com>,
broonie@kernel.org, robh+dt@kernel.org, joel@jms.id.au,
andrew@aj.id.au, clg@kaod.org, bbrezillon@kernel.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-aspeed@lists.ozlabs.org, linux-spi@vger.kernel.org
Cc: kbuild-all@lists.01.org
Subject: [RFC PATCH] spi: aspeed: aspeed_spi_get_io_mode() can be static
Date: Tue, 3 Nov 2020 08:33:31 +0800 [thread overview]
Message-ID: <20201103003331.GA44379@4742e760afe2> (raw)
In-Reply-To: <20201102075213.32404-5-chin-ting_kuo@aspeedtech.com>
Signed-off-by: kernel test robot <lkp@intel.com>
---
spi-aspeed.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/spi/spi-aspeed.c b/drivers/spi/spi-aspeed.c
index 795f67c9ca6ac3..6b067dee833246 100644
--- a/drivers/spi/spi-aspeed.c
+++ b/drivers/spi/spi-aspeed.c
@@ -144,7 +144,7 @@ static void aspeed_spi_chip_set_4byte(struct aspeed_spi_controller *ast_ctrl,
writel(reg_val, ast_ctrl->regs + OFFSET_CE_ADDR_MODE_CTRL);
}
-uint32_t aspeed_spi_get_io_mode(uint32_t bus_width)
+static uint32_t aspeed_spi_get_io_mode(uint32_t bus_width)
{
switch (bus_width) {
case 1:
@@ -295,8 +295,8 @@ aspeed_2600_spi_clk_basic_setting(struct aspeed_spi_controller *ast_ctrl,
* content is too monotonous, the frequency recorded in the device
* tree will be adopted.
*/
-int aspeed_2600_spi_timing_calibration(struct aspeed_spi_controller *ast_ctrl,
- uint32_t cs)
+static int aspeed_2600_spi_timing_calibration(struct aspeed_spi_controller *ast_ctrl,
+ uint32_t cs)
{
int ret = 0;
struct device *dev = ast_ctrl->dev;
@@ -432,7 +432,7 @@ int aspeed_2600_spi_timing_calibration(struct aspeed_spi_controller *ast_ctrl,
* of its related flash size. Namely, the total decoded size
* from flash 0 to flash N should be multiple of flash (N + 1).
*/
-void aspeed_2600_adjust_decode_sz(uint32_t decode_sz_arr[], int len)
+static void aspeed_2600_adjust_decode_sz(uint32_t decode_sz_arr[], int len)
{
int cs, j;
uint32_t sz;
prev parent reply other threads:[~2020-11-03 0:34 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-02 7:52 [PATCH 0/4] Porting ASPEED FMC/SPI memory controller driver Chin-Ting Kuo
2020-11-02 7:52 ` [PATCH 1/4] dt-bindings: spi: Add binding file for ASPEED FMC/SPI memory controller Chin-Ting Kuo
2020-11-02 7:52 ` [PATCH 2/4] ARM: dts: aspeed: ast2600: Update FMC/SPI controller setting for spi-aspeed.c Chin-Ting Kuo
2020-11-02 7:52 ` [PATCH 3/4] ARM: dts: aspeed: ast2600-evb: Adjust SPI flash configuration Chin-Ting Kuo
2020-11-02 7:52 ` [PATCH 4/4] spi: aspeed: Add ASPEED FMC/SPI memory controller driver Chin-Ting Kuo
2020-11-03 0:33 ` kernel test robot
2020-11-03 0:33 ` kernel test robot [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20201103003331.GA44379@4742e760afe2 \
--to=lkp@intel.com \
--cc=andrew@aj.id.au \
--cc=bbrezillon@kernel.org \
--cc=broonie@kernel.org \
--cc=chin-ting_kuo@aspeedtech.com \
--cc=clg@kaod.org \
--cc=devicetree@vger.kernel.org \
--cc=joel@jms.id.au \
--cc=kbuild-all@lists.01.org \
--cc=linux-aspeed@lists.ozlabs.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-spi@vger.kernel.org \
--cc=robh+dt@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).