commonlib/mipi/cmd: Remove unnecessary 'const void *' cast

The 'buf' variable is already 'const void *'.

Change-Id: I0d52f7386853bf353df637085be0f38f787bf6d5
Signed-off-by: Yu-Ping Wu <yupingso@chromium.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/90797
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Yidi Lin <yidilin@google.com>
Reviewed-by: Chen-Tsung Hsieh <chentsung@google.com>
This commit is contained in:
Yu-Ping Wu 2026-01-19 14:37:29 +08:00 committed by Yu-Ping Wu
commit d7d4b67c6a

View file

@ -17,7 +17,7 @@ enum cb_err mipi_panel_parse_commands(const void *buf, mipi_cmd_func_t cmd_func,
* to parse and scan.
*/
for (; command->cmd != PANEL_CMD_END; command = (const void *)buf) {
for (; command->cmd != PANEL_CMD_END; command = buf) {
/*
* For some commands like DELAY, the command->len should not be
* counted for buf.