From 71df668d469d87c07fbbb803164a1ea29bedd3dc Mon Sep 17 00:00:00 2001 From: Eric Caruso Date: Tue, 30 Sep 2014 12:39:17 -0700 Subject: [PATCH] lightbar: Removing unused space in ramp table We don't need the upper two bytes of any elements in the ramp table, since none of them are big enough to flow into them. This saves us another 60-70 bytes. BUG=None BRANCH=ToT TEST=Manual, visual inspection Change-Id: Id9d03b8f63e61172c5cc6b36b010582957c7bb22 Signed-off-by: Eric Caruso Reviewed-on: https://chromium-review.googlesource.com/220595 Reviewed-by: Bill Richardson --- common/lightbar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/lightbar.c b/common/lightbar.c index 86600d4d5e..f67e7f174c 100644 --- a/common/lightbar.c +++ b/common/lightbar.c @@ -282,7 +282,7 @@ void demo_tap(void) /******************************************************************************/ #define F(x) (x * FP_SCALE) -static const int _ramp_table[] = { +static const uint16_t _ramp_table[] = { F(0.000000), F(0.002408), F(0.009607), F(0.021530), F(0.038060), F(0.059039), F(0.084265), F(0.113495), F(0.146447), F(0.182803), F(0.222215), F(0.264302), F(0.308658), F(0.354858), F(0.402455),