Re: [RFC PATCH 04/28] media: mali-vpu: initialize decoder format state
From: Charvi Mehta
Date: Wed Nov 25 2026 - 07:27:13 EST
On 11/24/26 17:35, Nicolas Dufresne wrote:
I heard your preference, but readability when up-streaming is important, we dontI’ve generally placed the direction last, as in dec_src/dec_dst andstruct mali_vpu_session {Ok, its time to comment, src_port and dst_port is a lot easier to read imho.
struct mali_vpu_dev *vpu_dev;
enum mali_vpu_session_role role;
+ struct mali_vpu_port port_src;
+ struct mali_vpu_port port_dst;
pixmp_src/pixmp_dst.
I’d prefer to retain port_src/port_dst to follow that pattern.
say "the port source", we say "the source port" (at least in english, which we
program in), and so when a human reads your code, having things in reverse makes
it harder.
I'll rename these members in v2.
Regards,
Charvi