2014-04-24 4:17 GMT+08:00 Linus Walleij <linus.walleij@xxxxxxxxxx>: > On Tue, Apr 15, 2014 at 8:43 AM, Barry Song <21cnbao@xxxxxxxxx> wrote: > >> From: Barry Song <Baohua.Song@xxxxxxx> >> >> we set bank as handler_data, now we can get bank in ISR directly >> instead of looking-up. >> >> Signed-off-by: Barry Song <Baohua.Song@xxxxxxx> > > If you want to use some other handler data than the gpiochip, > you should just use irq_set_chained_handler() and > irq_set_handler_data() directly. i think this should be fixed in the general API but not use one more function call to over-write the handler_data which has been filled in the API. since we have the chance for drivers to set either the whole chip for a simple chip, or bank-specific data for a chip which has multiple parent IRQs. > > Yours, > Linus Walleij -barry -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html