On Thu, Jun 9, 2022 at 1:39 AM Jakob Hauser <jahau@xxxxxxxxxxxxxx> wrote: > This is a preparation for adding YAS537 variant. > > In function yas5xx_probe(), there is a switch statement checking for device > IDs. If the ID is unknown, it exits with a device error. In later functions, > it's not neccessary to check the validity of the device IDs again. > > When adding YAS537 in a later patch, several of such switch statements will be > added. To make it more uniform, the redundant ones in YAS530/532 get herby > removed. This is done in a separate patch for better history control. > > Cc: Linus Walleij <linus.walleij@xxxxxxxxxx> > Signed-off-by: Jakob Hauser <jahau@xxxxxxxxxxxxxx> No big deal for me, this works fine. Reviewed-by: Linus Walleij <linus.walleij@xxxxxxxxxx> Yours, Linus Walleij