On Thursday 21 April 2016 12:04:19 Peter Griffin wrote: > Signed-off-by: Ludovic Barre <ludovic.barre@xxxxxx> > Signed-off-by: Peter Griffin <peter.griffin@xxxxxxxxxx> Please add a changelog text for each patch. > drivers/dma/st_fdma.h | 281 ++++++++++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 281 insertions(+) > create mode 100644 drivers/dma/st_fdma.h When the header file is only included from one other file, it's usually better to move the entire contents into the .c file. > +#define fdma_read(fdev, name) \ > + readl_relaxed((fdev)->io_base + FDMA_##name##_OFST) > + > +#define fdma_write(fdev, val, name) \ > + writel_relaxed((val), (fdev)->io_base + FDMA_##name##_OFST) Try to avoid string concatenation for macro names. It's better to always pass the full name of the register in there to make it easier to grep for the usage when trying to understand the driver as a reader. Once you do that, just convert the macro into an inline function. > +bool st_fdma_filter_fn(struct dma_chan *chan, void *param); The filter function should not be needed here. Arnd -- To unsubscribe from this list: send the line "unsubscribe dmaengine" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html