TimJTi commented on issue #16367:
URL: https://github.com/apache/nuttx/issues/16367#issuecomment-3069316051

   It's FUBAR!!! It even accepts this which has MANY style errors:
   
   ```
   static int nau7802_read_reg(FAR nau7802_dev_s *dev, uint8_t addr, void *buf,
                               uint8_t nbytes)
   {
     struct i2c_msg_s readcmd[2] =          {
             {
        .frequency = CONFIG_SENSORS_NAU7802_I2C_FREQUENCY,
        .addr = dev->addr,
        .flags = I2C_M_NOSTOP,
        .buffer = &addr,
        .length = sizeof(addr),
         },
             {
         .frequency = CONFIG_SENSORS_NAU7802_I2C_FREQUENCY,
           .addr = dev->addr,
             .flags = I2C_M_READ,
               .buffer = buf,
                 .length = nbytes,
              },
                         };
   
     return I2C_TRANSFER(dev->i2c, readcmd, 2);
   }
   ```
   
   ```
   Tims-MacBook-Air nuttx: ./tools/checkpatch.sh -f drivers/sensors/nau7802.c
   Tims-MacBook-Air nuttx:
   ```
    
   Guess someone broke it and a bisect is needed on the script?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to