Re: [PATCH v2 2/2] input: misc: Add PixArt PAJ7620 gesture sensor driver

From: Dmitry Torokhov

Date: Fri Apr 17 2026 - 17:28:35 EST


Hi Harpreet,

On Fri, Apr 17, 2026 at 01:25:27AM -0400, Harpreet Saini wrote:
> This driver adds support for the PixArt PAJ7620 gesture sensor.
> It implements hand gesture recognition (up, down, left, right,
> etc.) and reports them as standard input key events. The driver
> includes power management support via Runtime PM.

Sashiko has identified a number of valid concerns, please address them.

Also consider:

- moving powering up and down the chip into open()/close() for input
device
- getting keymap from device properties and allowing adjusting it from
userspace vi EVIOCSKEYCODE
- no capitals in type names
- use 'error' instead of 'ret' for variables holding only error code
or 0.

Thanks.

--
Dmitry