[RFC v2] ff-memless-next driver

2013-12-21 Thread Michal MalĂ˝
Revised patch with ff-memless-next driver. Changes to the previous version include: - Fixes for a few bugs and corner cases - More robust checking whether ff effect parameters are sane - (Hopefully) fully in accordance to MS DirectInput specs - Reworked triangle wave calculation - Added

Re: [RFC v2] ff-memless-next driver

2013-12-21 Thread Joe Perches
Refactoring can help reduce the line lengths. For example: Move the get_envelope function. Use get_envelope in set_envelope_times. --- drivers/input/ff-memless-next.c | 58 +++-- 1 file changed, 27 insertions(+), 31 deletions(-) diff --git