HID: amd_sfh: Correct the sensor enable and disable command
authorBasavaraj Natikar <Basavaraj.Natikar@amd.com>
Tue, 11 Apr 2023 16:10:25 +0000 (21:40 +0530)
committerJiri Kosina <jkosina@suse.cz>
Thu, 13 Apr 2023 13:55:22 +0000 (15:55 +0200)
commit0b9255bf11baa61cd526e6bd24d6c8e6d1eabf8d
treee56a2b4726aca10963be35f794650391373264de
parent7e7fdab79899f62de39c9280fb78f3d3b02ac207
HID: amd_sfh: Correct the sensor enable and disable command

In order to start or stop sensors, the firmware command needs to be
changed to add an additional default subcommand value. For this reason,
add a subcommand value to enable or disable sensors accordingly.

Fixes: 93ce5e0231d7 ("HID: amd_sfh: Implement SFH1.1 functionality")
Signed-off-by: Basavaraj Natikar <Basavaraj.Natikar@amd.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/amd-sfh-hid/sfh1_1/amd_sfh_interface.c