Zijun Hu
b45ed06f46
drivers/base: Introduce device_match_t for device finding APIs
...
There are several drivers/base APIs for finding a specific device, and
they currently use the following good type for the @match parameter:
int (*match)(struct device *dev, const void *data)
Since these operations do not modify the caller-provided @*data, this
type is worthy of a dedicated typedef:
typedef int (*device_match_t)(struct device *dev, const void *data)
Advantages of using device_match_t:
- Shorter API declarations and definitions
- Prevent further APIs from using a bad type for @match
So introduce device_match_t and apply it to the existing
(bus|class|driver|auxiliary)_find_device() APIs.
Signed-off-by: Zijun Hu <quic_zijuhu@quicinc.com>
Link: https://lore.kernel.org/r/20240813-dev_match_api-v3-1-6c6878a99b9f@quicinc.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-09-03 12:48:51 +02:00
..
2024-08-13 13:45:14 +02:00
2024-07-03 15:16:54 +02:00
2024-07-31 13:48:25 +02:00
2024-08-14 15:49:37 +02:00
2024-08-12 10:41:44 +01:00
2024-07-26 11:04:28 -07:00
2024-09-03 12:48:51 +02:00
2024-07-03 15:16:54 +02:00
2024-07-27 15:28:53 -07:00
2024-08-07 16:35:53 -04:00
2024-07-27 12:46:16 -07:00
2024-08-01 07:15:02 -07:00
2024-07-24 20:59:29 +02:00
2024-07-03 15:16:54 +02:00
2024-08-16 09:57:56 +02:00
2024-07-31 14:51:47 -07:00
2024-07-25 06:53:47 -05:00
2024-07-19 15:55:08 -07:00
2024-08-02 14:40:13 +02:00
2024-07-20 12:41:03 -07:00
2024-07-28 09:33:28 -07:00
2024-07-25 10:42:22 -07:00
2024-07-25 10:42:22 -07:00
2024-07-10 15:38:14 +02:00
2024-07-25 10:42:22 -07:00
2024-07-21 17:15:46 -07:00
2024-07-28 15:49:18 -07:00
2024-07-03 15:16:54 +02:00
2024-07-25 10:42:22 -07:00
2024-07-29 10:33:51 -07:00
2024-07-25 10:42:22 -07:00
2024-07-31 13:40:00 +02:00
2024-08-10 21:35:16 +02:00
2024-08-16 13:16:47 +10:00
2024-07-25 10:42:22 -07:00
2024-07-29 13:07:05 -07:00
2024-07-25 10:42:22 -07:00
2024-07-25 10:42:22 -07:00
2024-07-28 15:49:18 -07:00
2024-07-25 10:42:22 -07:00
2024-08-15 00:22:28 +02:00
2024-07-27 10:53:06 -07:00
2024-07-25 06:53:47 -05:00
2024-07-19 09:59:58 -07:00
2024-07-29 10:44:48 -07:00
2024-07-19 15:55:08 -07:00
2024-08-02 15:58:05 +02:00
2024-07-03 15:16:54 +02:00
2024-08-10 10:42:04 +02:00
2024-07-25 08:05:05 -07:00
2024-07-17 17:51:30 -07:00
2024-07-25 12:58:36 -07:00
2024-07-19 21:25:23 -05:00
2024-07-25 10:42:22 -07:00
2024-08-16 14:03:31 -07:00
2024-08-15 10:23:19 -07:00
2024-07-25 10:42:22 -07:00
2024-07-27 12:46:16 -07:00
2024-08-18 10:16:34 -07:00
2024-07-25 10:42:22 -07:00
2024-07-25 10:42:22 -07:00
2024-07-28 11:51:51 -07:00
2024-08-15 13:07:08 +02:00
2024-07-28 15:49:18 -07:00
2024-07-25 10:42:22 -07:00
2024-08-09 14:29:58 -05:00
2024-07-31 07:40:10 -07:00
2024-07-25 10:42:22 -07:00
2024-08-13 15:17:24 -06:00
2024-07-15 18:55:14 +02:00
2024-07-25 12:58:36 -07:00
2024-08-01 12:58:03 -05:00
2024-07-25 10:42:22 -07:00
2024-07-25 10:42:22 -07:00
2024-08-01 07:15:13 -07:00
2024-07-24 13:11:28 -07:00
2024-07-25 06:53:47 -05:00
2024-08-12 08:21:52 -07:00
2024-07-09 13:12:41 +02:00
2024-07-03 15:16:54 +02:00
2024-08-07 09:45:21 -07:00
2024-07-25 10:42:22 -07:00
2024-07-16 19:28:34 -07:00
2024-07-25 06:53:47 -05:00
2024-07-03 15:16:54 +02:00
2024-07-15 18:20:24 -07:00
2024-07-27 12:27:52 -07:00
2024-07-23 13:41:59 -07:00
2024-07-25 10:42:22 -07:00
2024-07-25 10:42:22 -07:00
2024-07-10 17:15:33 +02:00
2024-08-16 14:03:31 -07:00
2024-07-11 15:42:03 +02:00
2024-08-17 10:04:01 -07:00
2024-07-03 15:16:54 +02:00
2024-07-25 10:42:22 -07:00
2024-07-25 10:42:22 -07:00
2024-08-08 20:08:44 +10:00
2024-07-25 10:42:22 -07:00
2024-08-07 23:45:12 +01:00
2024-07-31 13:49:28 +02:00
2024-07-03 15:16:54 +02:00
2024-08-15 10:23:19 -07:00
2024-07-03 15:16:54 +02:00
2024-07-25 10:42:22 -07:00
2024-08-16 13:13:59 +02:00
2024-08-06 08:01:10 +03:00
2024-08-15 07:22:10 +02:00
2024-08-01 21:59:00 -04:00
2024-08-15 16:29:46 +02:00
2024-07-29 12:53:37 -07:00
2024-07-25 10:42:22 -07:00
2024-08-06 10:58:28 -07:00
2024-07-21 17:15:46 -07:00
2024-07-20 12:41:03 -07:00
2024-07-29 12:53:37 -07:00
2024-07-25 10:18:35 -07:00
2024-07-25 10:42:22 -07:00
2024-07-25 10:42:22 -07:00