[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <nycvar.YFH.7.76.2401231049150.29548@cbobk.fhfr.pm>
Date: Tue, 23 Jan 2024 10:49:54 +0100 (CET)
From: Jiri Kosina <jikos@...nel.org>
To: "sandeep.cs" <sandeep.cs@...sung.com>
cc: 'Joe Perches' <joe@...ches.com>,
'Benjamin Tissoires' <benjamin.tissoires@...hat.com>,
gaudium.lee@...sung.com, ih0923.kim@...sung.com, suhyun_.kim@...sung.com,
jitender.s21@...sung.com, junwan.cho@...sung.com,
linux-input@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: RE: [HID Patchsets for Samsung driver v2 2/6] HID: Samsung : Fix
the checkpatch complain.
On Mon, 8 Jan 2024, sandeep.cs wrote:
> >> - } else
> >> - if (*rsize == 203 && rdesc[192] == 0x15 && rdesc[193] == 0x0 &&
> >> + } else if (*rsize == 203 && rdesc[192] == 0x15 && rdesc[193] == 0x0
> >> +&&
> >> rdesc[194] == 0x25 && rdesc[195] == 0x12) {
> >> samsung_irda_dev_trace(hdev, 203);
> >> rdesc[193] = 0x1;
> >> rdesc[195] = 0xf;
> >> - } else
> >> - if (*rsize == 135 && rdesc[124] == 0x15 && rdesc[125] == 0x0 &&
> >> + } else if (*rsize == 135 && rdesc[124] == 0x15 && rdesc[125] == 0x0
> >> +&&
> >> rdesc[126] == 0x25 && rdesc[127] == 0x11) {
> >> samsung_irda_dev_trace(hdev, 135);
> >> rdesc[125] = 0x1;
> >> rdesc[127] = 0xe;
> >> - } else
> >> - if (*rsize == 171 && rdesc[160] == 0x15 && rdesc[161] == 0x0 &&
> >> + } else if (*rsize == 171 && rdesc[160] == 0x15 && rdesc[161] == 0x0
> >> +&&
> >> rdesc[162] == 0x25 && rdesc[163] == 0x01) {
> >> samsung_irda_dev_trace(hdev, 171);
> >> rdesc[161] = 0x1;
> >
> >For this block, I think a rewrite using memcmp would be clearer.
> >Something like:
> Okay . Thanks for your valuable feedback. We will promptly address your
> suggestions and enhance our code accordingly.
I agree with Joe's suggestion here; are you planning to send v2 of the
series?
The rest of the set looks good to me.
Thanks,
--
Jiri Kosina
SUSE Labs
Powered by blists - more mailing lists