Rasmus Villemoes
6cc6a2f699
serial: embed the rx buffer in struct serial_dev_priv
...
The initialization of upriv->buf doesn't check for a NULL return. But
there's actually no point in doing a separate, unconditional malloc()
in post_probe; we can just make serial_dev_priv contain the rx buffer
itself, and let the (larger) allocation be handled by the driver core
when it allocates the ->per_device_auto. The total run-time memory
used is mostly the same, we reduce the code size a little, and as a
bonus, struct serial_dev_priv does not contain the unused members when
!SERIAL_RX_BUFFER.
Signed-off-by: Rasmus Villemoes <ravi@prevas.dk >
Reviewed-by: Simon Glass <sjg@chromium.org >
2024-10-16 15:54:31 -06:00
..
2024-08-09 18:35:23 +08:00
2024-08-27 11:17:39 -06:00
2024-05-20 13:35:03 -06:00
2024-07-22 10:53:04 -06:00
2024-10-02 13:35:31 -06:00
2024-09-16 14:48:13 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2024-07-22 10:53:04 -06:00
2024-09-16 14:48:13 -06:00
2024-10-03 11:52:16 -06:00
2024-09-19 00:12:41 -03:00
2024-09-16 16:37:17 -06:00
2024-09-19 00:12:41 -03:00
2024-05-20 13:35:03 -06:00
2024-09-13 17:41:18 +02:00
2024-08-30 13:57:39 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2024-09-12 17:35:37 +02:00
2024-07-22 10:53:05 -06:00
2024-05-20 13:35:03 -06:00
2024-05-24 13:42:07 -06:00
2024-08-30 22:32:29 -03:00
2024-05-20 13:35:03 -06:00
2024-08-19 18:24:58 -06:00
2024-07-22 10:53:05 -06:00
2024-09-06 10:47:47 +02:00
2024-07-30 14:31:24 -06:00
2024-06-17 16:02:29 +02:00
2024-06-07 14:07:23 -06:00
2024-10-03 11:52:17 -06:00
2024-10-03 11:52:42 -06:00
2024-09-24 13:41:21 -06:00
2024-09-20 09:09:42 -06:00
2024-09-25 08:21:40 -06:00
2024-06-24 13:34:52 -06:00
2024-05-20 13:35:03 -06:00
2024-08-27 11:17:39 -06:00
2024-05-20 13:35:03 -06:00
2024-09-30 17:48:12 -06:00
2024-09-16 16:43:53 -06:00
2024-09-30 19:19:07 -06:00
2024-09-11 17:02:36 -03:00
2023-11-07 14:50:51 -05:00
2024-10-03 11:52:42 -06:00
2024-05-20 13:35:03 -06:00
2024-08-27 11:17:39 -06:00
2024-07-22 10:53:06 -06:00
2024-07-25 09:14:29 -06:00
2024-10-02 13:41:26 -06:00
2024-07-22 10:53:06 -06:00
2024-10-16 15:54:31 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2024-09-06 10:47:46 +02:00
2024-07-22 10:53:06 -06:00
2024-10-02 13:38:37 -06:00
2024-07-05 12:07:37 +02:00
2024-05-20 13:35:03 -06:00
2024-07-22 10:53:06 -06:00
2024-04-26 08:28:35 +03:00
2024-07-22 10:53:06 -06:00
2024-09-11 20:35:03 +08:00
2024-08-06 14:01:14 +03:00
2024-05-20 13:35:03 -06:00
2024-09-30 17:48:12 -06:00
2024-08-26 14:05:38 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2024-07-31 16:51:54 +02:00
2024-05-20 13:35:03 -06:00
2023-10-15 12:23:48 +02:00
2024-08-09 18:35:23 +08:00