Thread (10 messages) 10 messages, 5 authors, 2023-03-31

Re: [PATCH v2 3/3] i3c: ast2600: Add AST2600 platform-specific driver

From: Jeremy Kerr <jk@codeconstruct.com.au>
Date: 2023-03-31 02:09:21
Also in: linux-i3c

Hi Ben,

Thanks for the review. Comments inline:
How about wrapping the dw_i3c_master struct in an as2600_master struct
and then you can use container of, and simply do sizeof(struct
ast2600_master) ?

Also removes the need below to set pdata at-all
Yep, sounds good, and avoids my quirky pointer arithmetic below that.
quoted
+static struct platform_driver ast2600_i3c_driver = {
+       .probe = ast2600_i3c_probe,
+       .remove = ast2600_i3c_remove,
+       .driver = {
+               .name = "ast2600-i3c-master",
+               .of_match_table =
of_match_ptr(ast2600_i3c_master_of_match),
given this is probably an of-device only, of_match_ptr not needed
here?
Ack, will remove.

Thanks,


Jeremy
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help