From mboxrd@z Thu Jan 1 00:00:00 1970 From: Fabio Estevam Date: Wed, 4 Nov 2015 15:13:57 -0200 Subject: [U-Boot] [PATCH 4/4] spi: sf_ops: Use size_t for len In-Reply-To: <1446657237-27091-1-git-send-email-festevam@gmail.com> References: <1446657237-27091-1-git-send-email-festevam@gmail.com> Message-ID: <1446657237-27091-4-git-send-email-festevam@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de From: Fabio Estevam Let the function and its prototype use the same variable type for 'len'. Signed-off-by: Fabio Estevam --- Applies against u-boot-spi next drivers/mtd/spi/sf_ops.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/spi/sf_ops.c b/drivers/mtd/spi/sf_ops.c index 31c79c6..d832464 100644 --- a/drivers/mtd/spi/sf_ops.c +++ b/drivers/mtd/spi/sf_ops.c @@ -652,7 +652,7 @@ int stm_is_locked(struct spi_flash *flash, u32 ofs, size_t len) * * Returns negative on errors, 0 on success. */ -int stm_lock(struct spi_flash *flash, u32 ofs, u32 len) +int stm_lock(struct spi_flash *flash, u32 ofs, size_t len) { u8 status_old, status_new; u8 mask = SR_BP2 | SR_BP1 | SR_BP0; @@ -703,7 +703,7 @@ int stm_lock(struct spi_flash *flash, u32 ofs, u32 len) * * Returns negative on errors, 0 on success. */ -int stm_unlock(struct spi_flash *flash, u32 ofs, u32 len) +int stm_unlock(struct spi_flash *flash, u32 ofs, size_t len) { uint8_t status_old, status_new; u8 mask = SR_BP2 | SR_BP1 | SR_BP0; -- 1.9.1