> + * This program is free software; you can redistribute it and/or > + * modify it under the terms of the GNU General Public License > + * as published by the Free Software Foundation; either version 2 > + * of the License, or (at your option) any later version. Here you say GPL v2 or later, while at the end you declare GPL V2 only. This needs to be made consistent. > +static irqreturn_t lpi2c_imx_isr(int irq, void *dev_id) > +{ > + struct lpi2c_imx_struct *lpi2c_imx = dev_id; > + unsigned int temp; > + > + lpi2c_imx_intctrl(lpi2c_imx, 0); > + temp = readl(lpi2c_imx->base + LPI2C_MSR); > + > + if (temp & MSR_RDF) { > + lpi2c_imx_read_rxfifo(lpi2c_imx); > + return IRQ_HANDLED; > + } > + > + if (temp & MSR_TDF) { > + lpi2c_imx_write_txfifo(lpi2c_imx); > + return IRQ_HANDLED; > + } > + > + complete(&lpi2c_imx->complete); > + > + return IRQ_HANDLED; > +} Minor nit: Why can't you have one single exit point (e.g. only one 'return IRQ_HANDLED') here? > +MODULE_LICENSE("GPL v2"); Here is GPL v2 only... Rest looks good. Thanks Vladimir for the reviews! Thanks, Wolfram
Attachment:
signature.asc
Description: PGP signature