On Mon, 18 May 2020, Andy Shevchenko wrote: > has_irq member of struct dwapb_port_property is used only in one place, > so, make it local test instead and remove from the structure. > This local test is using memchr_inv() which is quite effective in comparison > to the original loop and possible little overhead can be neglected. > > Signed-off-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx> > Cc: Serge Semin <fancer.lancer@xxxxxxxxx> > Cc: Lee Jones <lee.jones@xxxxxxxxxx> > --- > v2: > - fixed compilation error (kbuild bot) > - added Lee into Cc > - moved memchr_inv() here (Serge) > drivers/gpio/gpio-dwapb.c | 14 +++++++------- > drivers/mfd/intel_quark_i2c_gpio.c | 1 - Acked-by: Lee Jones <lee.jones@xxxxxxxxxx> > include/linux/platform_data/gpio-dwapb.h | 1 - > 3 files changed, 7 insertions(+), 9 deletions(-) -- Lee Jones [李琼斯] Linaro Services Technical Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog