Re: [PATCH v6 2/3] iio: light: add support for veml6046x00 RGBIR color sensor
From: Andreas Klinger
Date: Thu Aug 21 2025 - 15:22:04 EST
Hi Andy,
Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx> schrieb am Do, 21. Aug 12:43:
> > > > + part_id = le16_to_cpu(reg);
> > > > + if (part_id != 0x0001)
> > > > + dev_info(dev, "Unknown ID %#04x\n", part_id);
> > >
> > > For 0 it will print 0 and not 0x0000. Is it okay?
> >
> > I just tried and it prints 0x00 if the part_id is 0.
>
> This is interesting... So it's not 0, nor 0x0000?
No. It prints 0x00 on my BeagleBoneBlack with kernel 6.16.0-rc5.
Andreas
Attachment:
signature.asc
Description: PGP signature