[PATCH 5.18 0301/1095] pwm: lpc18xx: Fix period handling