|
@@ -241,6 +241,9 @@ static int hid_dev_rot_probe(struct platform_device *pdev)
|
|
case HID_USAGE_SENSOR_RELATIVE_ORIENTATION:
|
|
case HID_USAGE_SENSOR_RELATIVE_ORIENTATION:
|
|
name = "relative_orientation";
|
|
name = "relative_orientation";
|
|
break;
|
|
break;
|
|
|
|
+ case HID_USAGE_SENSOR_GEOMAGNETIC_ORIENTATION:
|
|
|
|
+ name = "geomagnetic_orientation";
|
|
|
|
+ break;
|
|
default:
|
|
default:
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
}
|
|
}
|
|
@@ -339,6 +342,10 @@ static const struct platform_device_id hid_dev_rot_ids[] = {
|
|
/* Relative orientation(AG) sensor */
|
|
/* Relative orientation(AG) sensor */
|
|
.name = "HID-SENSOR-20008e",
|
|
.name = "HID-SENSOR-20008e",
|
|
},
|
|
},
|
|
|
|
+ {
|
|
|
|
+ /* Geomagnetic orientation(AM) sensor */
|
|
|
|
+ .name = "HID-SENSOR-2000c1",
|
|
|
|
+ },
|
|
{ /* sentinel */ }
|
|
{ /* sentinel */ }
|
|
};
|
|
};
|
|
MODULE_DEVICE_TABLE(platform, hid_dev_rot_ids);
|
|
MODULE_DEVICE_TABLE(platform, hid_dev_rot_ids);
|