Loading drivers/hid/hid-sensor-custom.c +2 −2 Original line number Diff line number Diff line Loading @@ -62,7 +62,7 @@ struct hid_sensor_sample { u32 raw_len; } __packed; static struct attribute hid_custom_attrs[] = { static struct attribute hid_custom_attrs[HID_CUSTOM_TOTAL_ATTRS] = { {.name = "name", .mode = S_IRUGO}, {.name = "units", .mode = S_IRUGO}, {.name = "unit-expo", .mode = S_IRUGO}, Loading Loading @@ -862,7 +862,7 @@ hid_sensor_register_platform_device(struct platform_device *pdev, return ERR_PTR(-ENOMEM); custom_pdev = platform_device_register_data(pdev->dev.parent, dev_name, PLATFORM_DEVID_NONE, hsdev, PLATFORM_DEVID_AUTO, hsdev, sizeof(*hsdev)); kfree(dev_name); return custom_pdev; Loading Loading
drivers/hid/hid-sensor-custom.c +2 −2 Original line number Diff line number Diff line Loading @@ -62,7 +62,7 @@ struct hid_sensor_sample { u32 raw_len; } __packed; static struct attribute hid_custom_attrs[] = { static struct attribute hid_custom_attrs[HID_CUSTOM_TOTAL_ATTRS] = { {.name = "name", .mode = S_IRUGO}, {.name = "units", .mode = S_IRUGO}, {.name = "unit-expo", .mode = S_IRUGO}, Loading Loading @@ -862,7 +862,7 @@ hid_sensor_register_platform_device(struct platform_device *pdev, return ERR_PTR(-ENOMEM); custom_pdev = platform_device_register_data(pdev->dev.parent, dev_name, PLATFORM_DEVID_NONE, hsdev, PLATFORM_DEVID_AUTO, hsdev, sizeof(*hsdev)); kfree(dev_name); return custom_pdev; Loading