linux/drivers/hid/amd-sfh-hid
Arnd Bergmann de30491e8b HID: sfh: fix address space confusion
The new driver uses a phys_addr_t to store a DMA address,
which does not work when the two are different size:

drivers/hid/amd-sfh-hid/amd_sfh_client.c:157:11: error: incompatible pointer types passing 'phys_addr_t *' (aka 'unsigned int *') to parameter of type 'dma_addr_t *' (aka 'unsigned long long *') [-Werror,-Wincompatible-pointer-types]
                                                                  &cl_data->sensor_phys_addr[i],
                                                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/dma-mapping.h:393:15: note: passing argument to parameter 'dma_handle' here
                dma_addr_t *dma_handle, gfp_t gfp)
                            ^

Change both the type and the variable name to dma_addr for consistency.

Fixes: 4b2c53d93a ("SFH:Transport Driver to add support of AMD Sensor Fusion Hub (SFH)")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
2021-01-04 16:08:12 +01:00
..
hid_descriptor AMD_SFH: Fix for incorrect Sensor index 2020-10-29 16:02:29 +01:00
amd_sfh_client.c HID: sfh: fix address space confusion 2021-01-04 16:08:12 +01:00
amd_sfh_hid.c SFH: fix error return check for -ERESTARTSYS 2020-11-12 16:25:40 +01:00
amd_sfh_hid.h HID: sfh: fix address space confusion 2021-01-04 16:08:12 +01:00
amd_sfh_pcie.c HID: sfh: fix address space confusion 2021-01-04 16:08:12 +01:00
amd_sfh_pcie.h HID: sfh: fix address space confusion 2021-01-04 16:08:12 +01:00
Kconfig
Makefile