[PATCH] thermal/drivers/mediatek/lvts_thermal: fix memcpy's number of bytes in lvts_calibration_init()

AngeloGioacchino Del Regno angelogioacchino.delregno at collabora.com
Wed Mar 8 01:10:34 PST 2023


Il 07/03/23 14:42, bchihi at baylibre.com ha scritto:
> From: Balsam CHIHI <bchihi at 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




More information about the linux-arm-kernel mailing list