José Expósito and Jiri Kosina
a608dc1c06
HID: input: map battery system charging
...
HID descriptors with Battery System (0x85) Charging (0x44) usage are
ignored and POWER_SUPPLY_STATUS_DISCHARGING is always reported to user
space, even when the device is charging.
Map this usage and when it is reported set the right charging status.
In addition, add KUnit tests to make sure that the charging status is
correctly set and reported. They can be run with the usual command:
$ ./tools/testing/kunit/kunit.py run --kunitconfig=drivers/hid
Signed-off-by: José Expósito <jose.exposito89@gmail.com >
Signed-off-by: Jiri Kosina <jkosina@suse.cz >
2022-12-20 15:30:35 +01:00
..
2022-11-24 16:01:04 +01:00
2022-10-16 11:08:19 -07:00
2022-10-14 08:22:28 +01:00
2022-10-19 14:34:37 +01:00
2022-12-13 13:03:06 -08:00
2022-11-17 22:19:14 -08:00
2022-11-29 08:19:59 -08:00
2022-11-18 10:39:22 +01:00
2022-12-05 15:40:59 +01:00
2022-12-12 15:19:38 -08:00
2022-10-27 14:38:04 +03:00
2022-11-21 14:38:28 +01:00
2022-12-13 13:09:38 -08:00
2022-11-14 09:35:50 -08:00
2022-12-08 13:02:37 +00:00
2022-10-12 11:00:22 -07:00
2022-12-13 12:49:59 -08:00
2022-11-23 15:32:06 +00:00
2022-11-04 13:00:06 +00:00
2022-12-10 10:59:30 -05:00
2022-11-07 14:02:11 +00:00
2022-12-12 15:05:30 +01:00
2022-12-01 15:51:32 +00:00
2022-10-21 07:55:44 +09:00
2022-11-09 10:27:10 -08:00
2022-12-06 10:18:27 -07:00
2022-10-12 11:00:22 -07:00
2022-12-07 09:43:12 -07:00
2022-11-21 11:39:05 -07:00
2022-12-13 10:43:59 -08:00
2022-12-13 10:43:59 -08:00
2022-12-13 10:43:59 -08:00
2022-11-11 12:35:07 -08:00
2022-10-10 17:53:04 -07:00
2022-10-31 07:12:13 -10:00
2022-10-14 13:03:00 -07:00
2022-12-12 15:48:36 -08:00
2022-10-14 13:44:44 -07:00
2022-10-19 09:58:49 +02:00
2022-10-10 10:21:22 -07:00
2022-10-10 17:53:04 -07:00
2022-10-10 17:53:04 -07:00
2022-12-02 11:11:27 +01:00
2022-12-02 11:25:02 +01:00
2022-12-12 18:18:34 -08:00
2022-10-17 09:51:29 -04:00
2022-11-02 10:30:31 +05:30
2022-10-16 10:45:17 -07:00
2022-11-18 02:15:15 +01:00
2022-10-10 19:45:17 -07:00
2022-11-30 16:13:16 -08:00
2022-11-20 20:49:51 +09:00
2022-11-17 15:15:20 +01:00
2022-10-18 01:21:55 +03:00
2022-11-10 23:14:14 +01:00
2022-11-24 23:24:23 -05:00
2022-10-11 18:51:11 -07:00
2022-12-13 10:33:08 -08:00
2022-10-20 10:13:30 +02:00
2022-11-22 18:50:44 -08:00
2022-12-09 11:53:52 +10:00
2022-11-16 15:53:33 -08:00
2022-11-04 14:46:45 -07:00
2022-12-13 09:47:48 -08:00
2022-12-01 10:46:54 -05:00
2022-12-12 19:30:18 -08:00
2022-11-23 10:31:13 -08:00
2022-10-19 20:54:43 -07:00
2022-11-18 13:56:41 +00:00
2022-11-30 14:49:40 -08:00
2022-10-24 12:30:26 +03:00
2022-12-20 15:30:35 +01:00
2022-11-25 16:14:19 +01:00
2022-10-12 11:16:58 -07:00
2022-12-04 16:45:02 -08:00
2022-11-28 16:48:20 +00:00
2022-11-14 20:49:33 +01:00
2022-10-20 10:13:29 +02:00
2022-11-30 16:13:18 -08:00
2022-12-07 06:47:13 -07:00
2022-12-07 06:47:13 -07:00
2022-12-11 19:30:19 -08:00
2022-10-21 10:49:32 +02:00
2022-11-14 10:07:22 -08:00
2022-12-05 22:22:34 +01:00
2022-12-05 19:21:01 +01:00
2022-11-24 17:55:05 +01:00
2022-12-08 21:49:25 -05:00
2022-11-10 16:27:46 +01:00
2022-12-11 19:30:20 -08:00
2022-11-18 13:55:07 -08:00
2022-10-28 13:37:23 -07:00
2022-12-12 07:47:15 -08:00
2022-11-11 17:20:26 +09:00
2022-12-02 23:52:32 -08:00
2022-11-30 14:49:42 -08:00
2022-11-22 19:38:39 -07:00
2022-12-13 09:47:48 -08:00
2022-12-13 09:47:48 -08:00
2022-11-08 15:57:22 -08:00
2022-11-21 14:30:54 -07:00
2022-12-08 21:49:25 -05:00
2022-10-10 17:53:04 -07:00
2022-11-16 09:44:26 -07:00
2022-11-14 10:07:22 -08:00
2022-10-12 18:51:49 -07:00
2022-10-12 18:51:49 -07:00
2022-11-18 13:55:07 -08:00
2022-12-13 10:43:59 -08:00
2022-11-09 11:29:21 -07:00
2022-10-31 17:47:42 +01:00
2022-10-31 17:47:42 +01:00
2022-12-05 22:22:34 +01:00
2022-12-05 22:22:34 +01:00
2022-10-22 08:42:58 -06:00
2022-10-15 11:17:12 +01:00
2022-12-07 10:56:29 +08:00
2022-12-10 11:01:12 -05:00
2022-11-27 22:09:59 -05:00
2022-11-18 02:15:15 +01:00
2022-10-25 15:15:52 -07:00
2022-11-15 10:50:31 +01:00
2022-10-16 17:58:54 -05:00
2022-10-16 17:58:54 -05:00
2022-10-25 14:57:42 -07:00
2022-10-10 17:53:04 -07:00
2022-12-12 13:55:31 -08:00
2022-12-12 16:07:04 -08:00
2022-10-27 20:12:16 +02:00
2022-11-30 14:49:41 -08:00
2022-10-15 11:51:51 +01:00
2022-11-09 21:14:21 -06:00
2022-10-28 10:00:26 +02:00
2022-10-20 10:13:30 +02:00
2022-12-04 14:37:08 +01:00
2022-11-02 13:09:04 +02:00
2022-10-30 10:12:14 +01:00
2022-10-17 13:14:32 -07:00
2022-10-23 18:06:54 -04:00
2022-11-22 16:36:27 +02:00
2022-10-24 13:30:15 +01:00
2022-12-04 14:37:08 +01:00
2022-11-30 13:20:05 -08:00
2022-12-12 09:01:36 -08:00
2022-10-21 10:11:00 -07:00
2022-12-09 17:39:33 +00:00
2022-11-15 14:30:41 -08:00
2022-10-24 10:30:29 +02:00
2022-11-16 17:13:04 -05:00
2022-10-10 17:53:04 -07:00
2022-11-11 08:38:29 -07:00
2022-12-12 15:33:42 -08:00
2022-11-09 18:06:35 +00:00
2022-12-02 11:33:48 -08:00
2022-12-13 09:47:48 -08:00
2022-12-08 09:18:58 -07:00
2022-12-02 11:25:01 +01:00
2022-10-12 16:30:34 -06:00
2022-11-03 13:51:06 +01:00
2022-11-27 23:35:04 +01:00
2022-12-12 09:13:06 -08:00
2022-12-01 00:09:09 +01:00
2022-11-29 15:00:06 -08:00
2022-10-21 10:44:11 -07:00
2022-11-18 02:18:10 +01:00
2022-10-10 09:10:28 -07:00
2022-12-09 18:41:16 -08:00
2022-10-19 09:58:49 +02:00
2022-10-25 18:58:11 +02:00
2022-12-01 11:35:40 +01:00
2022-11-24 15:09:12 +01:00
2022-11-17 11:26:20 +01:00
2022-11-16 21:52:05 -05:00
2022-12-13 10:43:59 -08:00
2022-10-28 13:37:22 -07:00
2022-10-23 12:01:01 -07:00
2022-11-10 12:03:36 -07:00
2022-11-16 11:33:03 -07:00
2022-12-13 10:08:36 -08:00