Pretty comments
This commit is contained in:
@@ -401,8 +401,8 @@ static void pidff_set_periodic_report(struct pidff_device *pidff,
|
|||||||
pidff_set_signed(&pidff->set_periodic[PID_OFFSET],
|
pidff_set_signed(&pidff->set_periodic[PID_OFFSET],
|
||||||
effect->u.periodic.offset);
|
effect->u.periodic.offset);
|
||||||
pidff_set(&pidff->set_periodic[PID_PHASE], effect->u.periodic.phase);
|
pidff_set(&pidff->set_periodic[PID_PHASE], effect->u.periodic.phase);
|
||||||
// Actually we just can use clamp macro here
|
// Actually we just can use clamp macro
|
||||||
// include/linux/kernel.h#L59
|
// from include/linux/kernel.h#L59
|
||||||
// But for the debug purposes we're leaving it as is
|
// But for the debug purposes we're leaving it as is
|
||||||
pidff->set_periodic[PID_PERIOD].value[0] =
|
pidff->set_periodic[PID_PERIOD].value[0] =
|
||||||
pidff_clamp(effect->u.periodic.period,
|
pidff_clamp(effect->u.periodic.period,
|
||||||
|
|||||||
Reference in New Issue
Block a user