linux/drivers/hid/amd-sfh-hid
Basavaraj Natikar e3d6a59996 HID: amd_sfh: Use devm_kzalloc() instead of kzalloc()
Replace kzalloc with devm_kzalloc in driver initialization sequence. The
allocation can be tied to the lifetime of the amd_sfh driver. This cleans
up an exit & error paths, since the objects does not need to be
explicitly freed anymore.

Fixes: 4b2c53d93a ("SFH:Transport Driver to add support of AMD Sensor Fusion Hub (SFH)")
Reviewed-by: Shyam Sundar S K <Shyam-sundar.S-k@amd.com>
Signed-off-by: Basavaraj Natikar <Basavaraj.Natikar@amd.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
2021-05-27 15:40:34 +02:00
..
hid_descriptor AMD_SFH: Fix for incorrect Sensor index 2020-10-29 16:02:29 +01:00
amd_sfh_client.c HID: amd_sfh: Use devm_kzalloc() instead of kzalloc() 2021-05-27 15:40:34 +02:00
amd_sfh_hid.c HID: amd_sfh: Use devm_kzalloc() instead of kzalloc() 2021-05-27 15:40:34 +02:00
amd_sfh_hid.h HID: sfh: fix address space confusion 2021-01-04 16:08:12 +01:00
amd_sfh_pcie.c AMD_SFH: Add DMI quirk table for BIOS-es which don't set the activestatus bits 2021-03-08 16:32:32 +01:00
amd_sfh_pcie.h AMD_SFH: Removed unused activecontrolstatus member from the amd_mp2_dev struct 2021-03-08 16:32:32 +01:00
Kconfig
Makefile