Message ID | 1463256198-3829-7-git-send-email-sjg@chromium.org |
---|---|
State | Accepted |
Commit | 61fe076f0fceaa00bcbb8901504aedf1d1096293 |
Delegated to: | Simon Glass |
Headers | show |
On 14 May 2016 at 14:02, Simon Glass <sjg@chromium.org> wrote: > We don't need an int since no value is over 80. This saves a small amount of > SPL space (about 44 bytes). > > Signed-off-by: Simon Glass <sjg@chromium.org> > --- > > drivers/mmc/mmc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Applied to u-boot-dm.
diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index 1ddeff4..b7c936c 100644 --- a/drivers/mmc/mmc.c +++ b/drivers/mmc/mmc.c @@ -984,7 +984,7 @@ static const int fbase[] = { /* Multiplier values for TRAN_SPEED. Multiplied by 10 to be nice * to platforms without floating point. */ -static const int multipliers[] = { +static const u8 multipliers[] = { 0, /* reserved */ 10, 12,
We don't need an int since no value is over 80. This saves a small amount of SPL space (about 44 bytes). Signed-off-by: Simon Glass <sjg@chromium.org> --- drivers/mmc/mmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)