iio: accel: mma9551_core: use size in words for word buffers
authorIrina Tirdea <irina.tirdea@intel.com>
Mon, 13 Apr 2015 15:41:01 +0000 (18:41 +0300)
committerJonathan Cameron <jic23@kernel.org>
Sun, 14 Jun 2015 14:59:28 +0000 (15:59 +0100)
commitc0d901cce736cb628d2e15f07ae00ea1029f64df
tree2423b38805326992393eed63e73799553ab59b77
parent1ca0259b18478b2bab6d5c81ca1de52dd519ae5e
iio: accel: mma9551_core: use size in words for word buffers

Change the prototype for the mma9551_read/write_*_words functions
to receive the length of the buffer in words (instead of bytes) since
we are using a word buffer. This will prevent users from sending an
odd number of bytes for a word array.

Signed-off-by: Irina Tirdea <irina.tirdea@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/accel/mma9551_core.c
drivers/iio/accel/mma9553.c