Thread (39 messages) 39 messages, 12 authors, 2024-12-26

Re: [PATCH v3 6/7] hwmon: Add Nuvoton NCT6694 HWMON support

From: Ming Yu <hidden>
Date: 2024-12-16 07:04:12
Also in: linux-can, linux-gpio, linux-hwmon, linux-i2c, linux-rtc, linux-watchdog, lkml

Dear Vincent,

Thank you for your comments,
I understand, I will make the modifications for these drivers,

Thanks,
Ming

Vincent Mailhol [off-list ref] 於 2024年12月13日 週五 上午12:10寫道:
...
quoted
+struct nct6694_hwmon_data {
+       struct nct6694 *nct6694;
+       struct mutex lock;
+       unsigned char *xmit_buf;
+       unsigned char hwmon_en[NCT6694_HWMON_CMD0_LEN];
+};
A global comment on this series: do not declare your buffers as some
opaque unsigned char arrays. Instead, make it a structure (or an array
of structures if needed) using the little endian types for the
different fields.

You already applied this change to the CAN driver after I made a
comment, please do the same throughout the series.

The same applies with any other comments made by anyone else: do not
only apply to the patch where the comment is made, but apply it
broadly to the series.

Thank you.


Yours sincerely,
Vincent Mailhol
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help