Douglas Anderson
d6ddb6624a
drm/panel: boe-tv101wum-nl6: Don't use a table for initting panels
Consensus on the mailing lists is that panels shouldn't use a table of
init commands but should instead use init functions. With the recently
introduced mipi_dsi_dcs_write_seq_multi() this is not only clean/easy
but also saves space. Measuring before/after this change:
$ scripts/bloat-o-meter \
.../before/panel-boe-tv101wum-nl6.ko \
.../after/panel-boe-tv101wum-nl6.ko
add/remove: 14/8 grow/shrink: 0/1 up/down: 27062/-31433 (-4371)
Function old new delta
inx_hj110iz_init - 7040 +7040
boe_tv110c9m_init - 6440 +6440
boe_init - 5916 +5916
starry_qfh032011_53g_init - 1944 +1944
starry_himax83102_j02_init - 1228 +1228
inx_hj110iz_init.d - 1040 +1040
boe_tv110c9m_init.d - 982 +982
auo_b101uan08_3_init - 944 +944
boe_init.d - 580 +580
starry_himax83102_j02_init.d - 512 +512
starry_qfh032011_53g_init.d - 180 +180
auo_kd101n80_45na_init - 172 +172
auo_b101uan08_3_init.d - 82 +82
auo_kd101n80_45na_init.d - 2 +2
auo_kd101n80_45na_init_cmd 144 - -144
boe_panel_prepare 592 440 -152
auo_b101uan08_3_init_cmd 1056 - -1056
starry_himax83102_j02_init_cmd 1392 - -1392
starry_qfh032011_53g_init_cmd 2256 - -2256
.compoundliteral 3393 - -3393
boe_init_cmd 7008 - -7008
boe_tv110c9m_init_cmd 7656 - -7656
inx_hj110iz_init_cmd 8376 - -8376
Total: Before=37297, After=32926, chg -11.72%
Let's do the conversion.
Since we're touching all the tables, let's also convert hex numbers to
lower case as per kernel conventions.
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Douglas Anderson <dianders@chromium.org>
Link: https://lore.kernel.org/r/20240514102056.v5.7.Ib5030ab5cd41b4e08b1958bd7e51571725723008@changeid
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20240514102056.v5.7.Ib5030ab5cd41b4e08b1958bd7e51571725723008@changeid
2024-05-15 22:59:14 +02:00
..
2024-04-22 10:14:44 +02:00
2024-04-22 10:14:44 +02:00
2023-07-21 09:12:43 +02:00
2023-10-10 10:33:30 +02:00
2023-09-13 08:36:18 -07:00
2023-07-21 09:12:43 +02:00
2023-09-13 08:36:18 -07:00
2024-01-12 10:34:55 +01:00
2024-01-12 10:23:59 +01:00
2024-05-15 22:59:14 +02:00
2023-07-21 09:12:43 +02:00
2022-07-09 10:50:03 +02:00
2024-05-06 08:58:58 -07:00
2023-11-20 09:35:09 +01:00
2023-07-21 09:12:43 +02:00
2023-07-21 09:12:43 +02:00
2023-12-05 09:18:04 +01:00
2024-02-16 12:11:08 +01:00
2023-10-02 09:09:21 +02:00
2024-05-02 11:33:25 +02:00
2023-12-13 16:19:01 +01:00
2024-03-18 16:06:27 +01:00
2023-10-19 14:45:28 -07:00
2023-07-21 09:12:43 +02:00
2023-07-21 09:12:43 +02:00
2023-07-21 09:12:43 +02:00
2024-04-24 08:56:10 +02:00
2023-08-16 18:54:42 +02:00
2023-08-14 14:48:49 +02:00
2024-04-22 10:01:22 +02:00
2022-07-09 10:50:03 +02:00
2024-03-26 09:54:40 +01:00
2024-02-16 23:36:42 +01:00
2022-02-09 13:00:45 +00:00
2022-02-09 13:00:45 +00:00
2024-04-19 04:27:48 +03:00
2023-07-21 09:12:43 +02:00
2023-07-21 09:12:43 +02:00
2023-07-21 09:12:43 +02:00
2022-02-09 13:00:45 +00:00
2023-11-20 09:33:30 +01:00
2023-12-11 10:12:30 +01:00
2024-01-09 14:06:12 +01:00
2023-07-21 09:12:43 +02:00
2024-04-16 15:19:06 +02:00
2024-02-02 22:30:44 +01:00
2024-04-24 08:55:26 +02:00
2024-05-15 22:59:14 +02:00
2023-07-21 09:12:43 +02:00
2023-05-30 16:55:16 -07:00
2023-07-21 09:12:43 +02:00
2023-09-13 08:36:18 -07:00
2022-07-09 10:50:03 +02:00
2022-07-09 10:50:03 +02:00
2023-07-21 09:12:43 +02:00
2023-10-02 09:09:22 +02:00
2022-07-09 10:50:03 +02:00
2023-09-13 08:36:18 -07:00
2024-04-22 10:14:44 +02:00
2023-01-13 13:19:13 +01:00
2024-04-22 21:44:30 +03:00
2023-07-24 19:55:53 +02:00
2023-07-14 10:12:06 +02:00
2024-01-12 10:26:28 +01:00
2023-07-21 09:12:43 +02:00
2022-02-09 13:00:45 +00:00
2024-02-29 09:48:57 +01:00
2023-07-21 09:12:43 +02:00
2023-01-26 15:11:23 +09:00
2023-01-26 15:11:23 +09:00
2023-07-21 09:12:43 +02:00
2022-02-09 13:00:45 +00:00
2023-09-13 08:36:18 -07:00
2021-10-11 18:49:29 +02:00
2023-09-13 08:36:18 -07:00
2023-09-13 08:36:18 -07:00
2023-06-08 09:04:11 -07:00
2022-07-09 10:50:03 +02:00
2023-06-08 09:04:11 -07:00
2023-05-11 10:45:51 +02:00
2023-09-13 08:36:18 -07:00
2024-04-22 21:44:30 +03:00
2023-12-11 10:12:59 +01:00
2024-03-29 17:14:02 +01:00
2023-08-04 15:27:07 +02:00
2022-06-24 21:38:04 +02:00
2023-09-13 08:36:18 -07:00
2023-09-13 08:36:18 -07:00
2023-09-13 08:36:18 -07:00
2023-12-13 16:19:01 +01:00
2022-07-09 10:50:03 +02:00
2022-02-09 13:00:45 +00:00
2022-02-09 13:00:45 +00:00
2023-10-10 10:34:08 +02:00
2024-04-16 15:19:08 +02:00
2024-02-05 11:03:35 +01:00
2024-04-24 08:55:26 +02:00
2024-02-02 22:31:05 +01:00
2022-10-03 21:50:53 +02:00
2023-01-11 18:50:57 +01:00