]> Git Repo - linux.git/commit
platform/chrome: cros_ec_sensorhub: Allocate sensorhub resource before claiming sensors
authorGwendal Grignou <[email protected]>
Mon, 27 Apr 2020 22:59:02 +0000 (15:59 -0700)
committerEnric Balletbo i Serra <[email protected]>
Wed, 29 Apr 2020 21:17:45 +0000 (23:17 +0200)
commitb31d1d2b1c3a8452f425b09ebd374ecd3ddd5179
treef55db54f3e521f0e2ce5e50cd99849170ea0933d
parent538b8471fee89eaf18f6bfbbc0576473f952b83e
platform/chrome: cros_ec_sensorhub: Allocate sensorhub resource before claiming sensors

Allocate callbacks array before enumerating the sensors: The probe routine
for these sensors (for instance cros_ec_sensors_probe) can be called
within the sensorhub probe routine (cros_ec_sensors_probe())

Fixes: 145d59baff594 ("platform/chrome: cros_ec_sensorhub: Add FIFO support")
Signed-off-by: Gwendal Grignou <[email protected]>
Reported-by: Douglas Anderson <[email protected]>
Tested-by: Douglas Anderson <[email protected]>
Signed-off-by: Enric Balletbo i Serra <[email protected]>
drivers/platform/chrome/cros_ec_sensorhub.c
drivers/platform/chrome/cros_ec_sensorhub_ring.c
include/linux/platform_data/cros_ec_sensorhub.h
This page took 0.051187 seconds and 4 git commands to generate.