Messages in this thread | | | Date | Wed, 8 Mar 2023 10:10:34 +0100 | Subject | Re: [PATCH] thermal/drivers/mediatek/lvts_thermal: fix memcpy's number of bytes in lvts_calibration_init() | From | AngeloGioacchino Del Regno <> |
| |
Il 07/03/23 14:42, bchihi@baylibre.com ha scritto: > From: Balsam CHIHI <bchihi@baylibre.com> > > Replace memcpy 2 bytes by sizeof(int) bytes of LVTS calibration data.
sizeof(int) is architecture dependant... please use a fixed size type instead.
Also, shouldn't this be u16?!
Regards, Angelo
| |