linux/drivers/hid/i2c-hid
Arnd Bergmann dc5f9f5550 HID: i2c-hid: fix format string mismatch
clang doesn't like printing a 32-bit integer using %hX format string:

drivers/hid/i2c-hid/i2c-hid-core.c:994:18: error: format specifies type 'unsigned short' but the argument has type '__u32' (aka 'unsigned int') [-Werror,-Wformat]
                 client->name, hid->vendor, hid->product);
                               ^~~~~~~~~~~
drivers/hid/i2c-hid/i2c-hid-core.c:994:31: error: format specifies type 'unsigned short' but the argument has type '__u32' (aka 'unsigned int') [-Werror,-Wformat]
                 client->name, hid->vendor, hid->product);
                                            ^~~~~~~~~~~~

Use an explicit cast to truncate it to the low 16 bits instead.

Fixes: 9ee3e06610 ("HID: i2c-hid: override HID descriptors for certain devices")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
2021-05-27 15:40:34 +02:00
..
i2c-hid-acpi.c HID: i2c-hid: acpi: Drop redundant ACPI_PTR() 2021-03-08 10:43:34 +01:00
i2c-hid-core.c HID: i2c-hid: fix format string mismatch 2021-05-27 15:40:34 +02:00
i2c-hid-dmi-quirks.c HID: i2c-hid: add Vero K147 to descriptor override 2020-11-27 16:17:49 +01:00
i2c-hid-of-goodix.c HID: i2c-hid: Introduce goodix-i2c-hid using i2c-hid core 2021-01-18 16:56:22 +01:00
i2c-hid-of.c HID: i2c-hid: Reorganize so ACPI and OF are separate modules 2021-01-18 16:56:22 +01:00
i2c-hid.h HID: i2c-hid: Reorganize so ACPI and OF are separate modules 2021-01-18 16:56:22 +01:00
Kconfig HID: i2c-hid: Introduce goodix-i2c-hid using i2c-hid core 2021-01-18 16:56:22 +01:00
Makefile HID: i2c-hid: Introduce goodix-i2c-hid using i2c-hid core 2021-01-18 16:56:22 +01:00