lkml.org 
[lkml]   [2020]   [Jul]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH RFC 2/6] pwm: core: Add option to config PWM duty/period with u64 data length
> +#include <linux/math64.h>
> - gain_q23 = (gain_q23 * dmic->boost_gain) / 100;
> + gain_q23 = div_u64(gain_q23 * dmic->boost_gain, 100);

Ok so using a macro.

Thank you.

\
 
 \ /
  Last update: 2020-07-25 17:32    [W:0.041 / U:4.468 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site