commit | ddf2278c3ffdf25cc535e60435d80f676bf9dcd7 | [log] [tgz] |
---|---|---|
author | Marcin Niestroj <m.niestroj@grinn-global.com> | Thu Nov 19 22:39:13 2020 +0100 |
committer | Jukka Rissanen <jukka.rissanen+github@gmail.com> | Tue Nov 24 12:59:50 2020 +0200 |
tree | 7a72fb6b68b91cb23d707d005f5f43f952c57529 | |
parent | e0a418c1e35c956c016818f951ebd737efe8dcea [diff] |
drivers: modem: ublox-sara-r4: constify modem_cmd and setup_cmd structures Constifying global data allows to save lots of RAM. Defining data inside function as 'static const' allows on the other hand to save stack usage and reduced code size (because data doesn't have to be copied on stack in runtime). This improvement allows to save 448 bytes of RAM and 88 bytes of ROM when compiled on ARM, with default configuration. Signed-off-by: Marcin Niestroj <m.niestroj@grinn-global.com>