Re: [RFC PATCH v2] rust: i2c: Remove use of bindings::i2c_match_id

From: Miguel Ojeda

Date: Mon Nov 16 2026 - 13:25:46 EST


On Thu, Nov 12, 2026 at 12:11 AM Andrew Davis <afd@xxxxxx> wrote:
>
> Well Sashiko suggested I take the easy way and just re-use a different C
> function instead of trying to open-code the loop in Rust. The C function

I noticed this series while going through Lore threads, and yeah, it
is generally better to avoid re-implementing logic in Rust if a
suitable function already exists in C in the subsystem (unless there
is a good reason to not do so, of course).

By the way, while the maintainers may already know about the removal,
I would suggest adding a Link: or commit reference to the patch
removing that C function, i.e. to give context for others.

I hope that helps!

Cheers,
Miguel