diff options
author | Daniel Kurtz <djkurtz@chromium.org> | 2014-05-19 08:01:12 +0200 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2014-05-19 08:27:23 +0200 |
commit | 1e0c0c5b9c9d79acea00cab402b511a268a8bc8e (patch) | |
tree | 254e333777f29c6ddca7c1d4d9e3a3a7ccaf51dd /drivers/virtio | |
parent | Input: atmel_mxt_ts - return IRQ_NONE when interrupt handler fails (diff) | |
download | linux-1e0c0c5b9c9d79acea00cab402b511a268a8bc8e.tar.xz linux-1e0c0c5b9c9d79acea00cab402b511a268a8bc8e.zip |
Input: atmel_mxt_ts - define helper functions for size and instances
These two object table entry fields are reported 1 less than their value.
When used, however, we always want the actual size and instances.
To keep the object size and instances 1-byte fields, and thus preserve
the object-table struct's 6-byte packed alignment, add some convenient
accessor functions that do the +1 every time these fields are accessed.
Signed-off-by: Daniel Kurtz <djkurtz@chromium.org>
Signed-off-by: Nick Dyer <nick.dyer@itdev.co.uk>
Acked-by: Benson Leung <bleung@chromium.org>
Acked-by: Yufeng Shen <miletus@chromium.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/virtio')
0 files changed, 0 insertions, 0 deletions