input: pwm-haptic: Properly configure PWM when opening / closing device

It was previously incorrectly configuring the PWM, which resulted in the
haptic device running at full power as soon as the device node was
opened.