mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-09 17:11:42 +00:00
6aa967e4bbbdf28e0d9f5e537ccf4cbd76665b68
rt946x_closest_reg_via_tbl() is buggy and doesn't return the right reg value because of misuse of ARRAY_SIZE(). We should fix it. Meanwhile, since rt946x_closest_reg_via_tbl() is only called in rt946x_set_boost_current(), let's just delete rt946x_closest_reg_via_tbl() and move its code to rt946x_set_boost_current(). BUG=b:70524967 BRANCH=none TEST=Confirm reg 0x0a is set correctly Change-Id: Ie9c90ebf63596a52f864ff5809488731edc41fff Signed-off-by: Philip Chen <philipchen@google.com> Reviewed-on: https://chromium-review.googlesource.com/830895 Commit-Ready: Philip Chen <philipchen@chromium.org> Tested-by: Philip Chen <philipchen@chromium.org> Reviewed-by: Shawn N <shawnn@chromium.org>
For an overview of the Embedded Controller firmware, refer to http://www.chromium.org/chromium-os/2014-firmware-summit For instructions on building from source, refer to http://www.chromium.org/chromium-os/ec-development/getting-started-building-ec-images-quickly
Description
Languages
C
64.7%
Lasso
20.7%
ASL
3.6%
JavaScript
3.2%
C#
2.9%
Other
4.6%