lkml.org 
[lkml]   [2020]   [Mar]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRE: [PATCH V9 3/3] Input: new da7280 haptic driver
Date

Monday, March 2, 2020 3:44 PM, Uwe Kleine-König Wrote:
> On Mon, Mar 02, 2020 at 01:52:30AM +0000, Roy Im wrote:
> > On Monday, March 2, 2020 6:20 AM, Uwe Kleine-König wrote:
> > > On Sat, Feb 29, 2020 at 12:59:20AM +0000, Roy Im wrote:
> > > > Okay, thanks. I have tried to update that as below.
> > > > Could I get your comment if you still see anything on this?
> > > >
> > > > /* Maximum gain is 0x7fff for PWM mode */
> > > > #define MAX_MAGNITUDE_SHIFT 15
> > > > [...]
> > > > period_mag_multi >>= MAX_MAGNITUDE_SHIFT;
> > > >
> > > > /* The interpretation of duty cycle depends on the acc_en,
> > > > * it should be from 50% to 100% for acc_en = 0.
> > > > * See datasheet 'PWM mode' section for more details.
> > > > */
> > > > if (!haptics->acc_en) {
> > > > period_mag_multi += state.period;
> > > > period_mag_multi /= 2;
> > > > }
> > >
> > > Much better. Extra points if you add a link to the datasheet at the
> > > top of the driver. I didn't look at the datasheet and assume that the reasoning is obvious then.
> >
> > Okay, then do you think it would be better to remove that comment(the 3rd line - datasheet)?.
>
> No, please keep the reference.

Okay, I will do.

>
> Best regards
> Uwe
>
> --
> Pengutronix e.K. | Uwe Kleine-König |
> Industrial Linux Solutions | https://www.pengutronix.de/ |

Thanks.

Kind regards,
Roy

\
 
 \ /
  Last update: 2020-03-02 09:59    [W:0.063 / U:22.088 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site