diff options
author | Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com> | 2016-03-23 12:01:06 +0100 |
---|---|---|
committer | Anas Nashif <anas.nashif@intel.com> | 2016-04-22 22:15:12 -0400 |
commit | fea1c49ba2af5924ea0f5644b66d831d57db4240 (patch) | |
tree | cbb267ae5e1a64cc6c84746c06faa89fa229110e /scripts/sanitycheck | |
parent | 18fc64dcffbe30c5cddfbe5cabcd30f50adf9ea3 (diff) |
gpio: Improve the public API to handle multi callbacks
Many sub-systems might require to set a callback on different pins.
Thus enabling it via changing the API.
It is also possible to retrieve private-data in the callback handler
using CONTAINER_OF() macro (include/misc/util.h).
Former API is still available, and is emulated through the new one.
Using both should not be a problem as it's using new API calls.
However, it's now better to start using the new API.
Change-Id: Id16594202905976cc524775d1cd3592b54a84514
Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Diffstat (limited to 'scripts/sanitycheck')
-rwxr-xr-x | scripts/sanitycheck | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/sanitycheck b/scripts/sanitycheck index 5303891a0..a22b8410a 100755 --- a/scripts/sanitycheck +++ b/scripts/sanitycheck @@ -327,7 +327,8 @@ class SizeCalculator: rw_sections = ["datas", "initlevel", "_k_mem_map_ptr", "_k_pipe_ptr", "_k_task_ptr", "_k_task_list", "_k_event_list"] # These get copied into RAM only on non-XIP - ro_sections = ["text", "ctors", "init_array", "rodata", "devconfig"] + ro_sections = ["text", "ctors", "init_array", + "rodata", "devconfig", "gpio_compat"] def __init__(self, filename): """Constructor @@ -1736,4 +1737,3 @@ def main(): if __name__ == "__main__": main() - |