From: Heikki Krogerus <heikki.krogerus@xxxxxxxxxxxxxxx>Acked-by: Jarkko Nikula <jarkko.nikula@xxxxxxxxxxxxxxx>
The irq resource itself can be used as a generic way to
determine when polling is needed.
This not only removes the need for special additional device
properties that would soon be needed when the platform may
or may not have the irq, but it also removes the need to
check the platform in the first place in order to determine
is polling needed or not.
Signed-off-by: Heikki Krogerus <heikki.krogerus@xxxxxxxxxxxxxxx>
Reviewed-by: Andi Shyti <andi.shyti@xxxxxxxxxxxxxxx>
---
drivers/i2c/busses/i2c-designware-platdrv.c | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)