Skip to content

Commit a3836a0

Browse files
andy-shevJiri Kosina
authored andcommitted
HID: i2c-hid: acpi: Move GUID out of function and described it
Move static GUID variable out of the function and add a comment how it looks like in the human readable representation. While at it, include uuid.h since the guid_t type is defined in it. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Acked-by: Benjamin Tissoires <benjamin.tissoires@redhat.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
1 parent 4cecff8 commit a3836a0

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

drivers/hid/i2c-hid/i2c-hid-acpi.c

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
#include <linux/kernel.h>
2626
#include <linux/module.h>
2727
#include <linux/pm.h>
28+
#include <linux/uuid.h>
2829

2930
#include "i2c-hid.h"
3031

@@ -42,11 +43,13 @@ static const struct acpi_device_id i2c_hid_acpi_blacklist[] = {
4243
{ },
4344
};
4445

46+
/* HID I²C Device: 3cdff6f7-4267-4555-ad05-b30a3d8938de */
47+
static guid_t i2c_hid_guid =
48+
GUID_INIT(0x3CDFF6F7, 0x4267, 0x4555,
49+
0xAD, 0x05, 0xB3, 0x0A, 0x3D, 0x89, 0x38, 0xDE);
50+
4551
static int i2c_hid_acpi_get_descriptor(struct acpi_device *adev)
4652
{
47-
static guid_t i2c_hid_guid =
48-
GUID_INIT(0x3CDFF6F7, 0x4267, 0x4555,
49-
0xAD, 0x05, 0xB3, 0x0A, 0x3D, 0x89, 0x38, 0xDE);
5053
acpi_handle handle = acpi_device_handle(adev);
5154
union acpi_object *obj;
5255
u16 hid_descriptor_address;

0 commit comments

Comments
 (0)