> + /* > + * Enforce some basic assumptions this function makes about the > + * transfer. If this proves insufficient, some more complex logic will > + * be needed. > + */ > + if (num > 2 || (num == 2 && msgs[0].addr != msgs[1].addr)) > + return -EOPNOTSUPP; As you populated 'ad24xx_i2c_adapter_quirks' in the I2C driver, you can drop this. The I2C core will do the checks for you.
Attachment:
signature.asc
Description: PGP signature
- Follow-Ups:
- Re: [PATCH 04/13] a2b: add AD24xx I2C interface driver
- From: Alvin Šipraga
- Re: [PATCH 04/13] a2b: add AD24xx I2C interface driver
- References:
- [PATCH 00/13] Analog Devices Inc. Automotive Audio Bus (A2B) support
- From: Alvin Šipraga
- [PATCH 04/13] a2b: add AD24xx I2C interface driver
- From: Alvin Šipraga
- [PATCH 00/13] Analog Devices Inc. Automotive Audio Bus (A2B) support
- Prev by Date: Re: [PATCH 02/13] regmap: add A2B support
- Next by Date: Re: [PATCH 00/13] Analog Devices Inc. Automotive Audio Bus (A2B) support
- Previous by thread: [PATCH 04/13] a2b: add AD24xx I2C interface driver
- Next by thread: Re: [PATCH 04/13] a2b: add AD24xx I2C interface driver
- Index(es):