From: Fabio Estevam <festevam@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 4/4] spi: sf_ops: Use size_t for len
Date: Wed, 4 Nov 2015 15:13:57 -0200 [thread overview]
Message-ID: <1446657237-27091-4-git-send-email-festevam@gmail.com> (raw)
In-Reply-To: <1446657237-27091-1-git-send-email-festevam@gmail.com>
From: Fabio Estevam <fabio.estevam@freescale.com>
Let the function and its prototype use the same variable type for 'len'.
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
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
next prev parent reply other threads:[~2015-11-04 17:13 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-04 17:13 [U-Boot] [PATCH 1/4] mips: Use the generic bitops headers Fabio Estevam
2015-11-04 17:13 ` [U-Boot] [PATCH 2/4] arc: " Fabio Estevam
2015-11-04 17:13 ` [U-Boot] [PATCH 3/4] avr32: " Fabio Estevam
2015-11-04 17:13 ` Fabio Estevam [this message]
2015-11-04 17:21 ` [U-Boot] [PATCH 1/4] mips: " Dinh Nguyen
2015-11-05 13:21 ` Fabio Estevam
2015-11-04 17:58 ` Daniel Schwierzeck
2015-11-05 13:21 ` Fabio Estevam
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=1446657237-27091-4-git-send-email-festevam@gmail.com \
--to=festevam@gmail.com \
--cc=u-boot@lists.denx.de \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.