We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d94d40 commit 4a70a41Copy full SHA for 4a70a41
drivers/hwmon/lis3lv02d.c
@@ -41,6 +41,8 @@
41
42
/* joystick device poll interval in milliseconds */
43
#define MDPS_POLL_INTERVAL 50
44
+#define MDPS_POLL_MIN 0
45
+#define MDPS_POLL_MAX 2000
46
/*
47
* The sensor can also generate interrupts (DRDY) but it's pretty pointless
48
* because they are generated even if the data do not change. So it's better
@@ -459,6 +461,8 @@ int lis3lv02d_joystick_enable(void)
459
461
460
462
lis3_dev.idev->poll = lis3lv02d_joystick_poll;
463
lis3_dev.idev->poll_interval = MDPS_POLL_INTERVAL;
464
+ lis3_dev.idev->poll_interval_min = MDPS_POLL_MIN;
465
+ lis3_dev.idev->poll_interval_max = MDPS_POLL_MAX;
466
input_dev = lis3_dev.idev->input;
467
468
input_dev->name = "ST LIS3LV02DL Accelerometer";
0 commit comments