mfd: cros_ec: Register cros_ec_lid_angle driver when presented
authorGwendal Grignou <gwendal@chromium.org>
Fri, 17 May 2019 23:38:55 +0000 (16:38 -0700)
committerLee Jones <lee.jones@linaro.org>
Tue, 2 Jul 2019 11:11:31 +0000 (12:11 +0100)
commit1bb407f17c5316888c3c446e26cb2bb78943f236
treee36d6247d84ce0a3f3abd5912ae94f0734216035
parent5aa3709c0a5c026735b0ddd4ec80810a23d65f5b
mfd: cros_ec: Register cros_ec_lid_angle driver when presented

Register driver when EC indicates has precise lid angle calculation code
running.
Fix incorrect extra resource allocation in cros_ec_sensors_register().

Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/cros_ec_dev.c