Hi, On Sat, Nov 4, 2023 at 4:17 AM Hans de Goede <hdegoede@xxxxxxxxxx> wrote: > > Switch i2c_hid_parse() to goto style error handling. > > This is a preparation patch for removing the need for > I2C_HID_QUIRK_NO_IRQ_AFTER_RESET by making i2c-hid behave > more like Windows. > > Note this changes the descriptor read error path to propagate > the actual i2c_hid_read_register() error code (which is always > negative) instead of hardcoding a -EIO return. > > Signed-off-by: Hans de Goede <hdegoede@xxxxxxxxxx> > --- > drivers/hid/i2c-hid/i2c-hid-core.c | 14 ++++++-------- > 1 file changed, 6 insertions(+), 8 deletions(-) Reviewed-by: Douglas Anderson <dianders@xxxxxxxxxxxx>