Re: [PATCH RFC 4/4] input: touchscreen: add SPI support for Goodix Berlin Touchscreen IC

From: Jeff LaBundy
Date: Mon Jun 12 2023 - 13:08:16 EST


Hi Neil,

[...]

> > > +static const struct input_id goodix_berlin_spi_input_id = {
> > > + .bustype = BUS_SPI,
> > > + .vendor = 0x0416,
> > > + .product = 0x1001,
> >
> > After having seen these in the I2C counterpart; consider defining them
> > in goodix_berlin.h.
>
> To be honest, I blindly copied it from goodix.c because the vendor
> driver puts random values here.
>
> input_dev->id.product = 0xDEAD;
> input_dev->id.vendor = 0xBEEF;
>
> So what should I set ?

If there is no explicit guidance from the vendor, I would simply leave
these unassigned; in theory one would imagine that this controller would
have a different product ID than other models.

[...]

Kind regards,
Jeff LaBundy