mosys: cros_ec: Add support for upstream and cromeos-4.4 ioctl format

Upstream and Chrome OS v4.4 use a modified ioctl message format.
Auto-detect and support both formats.

BUG=chromium:601845
BRANCH=None
TEST=Work on Samus with kernel 4.4 and 3.8/3.14/3.18

Change-Id: Iba06e8bd61de19c112086f59349cbd01a17c6432
Signed-off-by: Guenter Roeck <groeck@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/338010
Reviewed-by: David Hendricks <dhendrix@chromium.org>
2 files changed