iio: proximity: as3935: fix as3935_write
authorMatt Ranostay <matt.ranostay@konsulko.com>
Fri, 14 Apr 2017 06:21:56 +0000 (23:21 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 May 2017 12:30:13 +0000 (14:30 +0200)
commit0e9e19a6653079415bb33f515b14a1de15bd3126
tree1418b7490d579201ca58b4b4c620ab28211c96ef
parent8a5b15e198f1701da75a8223cfe72c04bcb15160
iio: proximity: as3935: fix as3935_write

commit 84ca8e364acb26aba3292bc113ca8ed4335380fd upstream.

AS3935_WRITE_DATA macro bit is incorrect and the actual write
sequence is two leading zeros.

Cc: George McCollister <george.mccollister@gmail.com>
Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iio/proximity/as3935.c