Re: [PATCH 1/2] dmaengine: use dma_chan_name() helper to get per-channel device name
Andy Shevchenko <andriy.shevchenko-VuQAYsv1563Yd54FQh9/[email protected]>
| Newsgroups | gmane.linux.ports.tegra,gmane.linux.ports.arm.kernel,gmane.linux.kernel,gmane.linux.ports.mips |
|---|---|
| Organization | Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo |
| Message-ID | <[email protected]> |
On Wed, Aug 12, 2026 at 05:24:08PM -0400, [email protected] wrote: > Use the existing dma_chan_name() helper to obtain the per-channel device > name instead of open-coding: dev_name(chan->dev->device) / > dev_name(chan2dev()) > > Simplify the code and improve consistency. > > No functional change intended. ... > ret = devm_request_irq(dev, lchan->irq, loongson2_cmc_dma_chan_irq, IRQF_SHARED, > - dev_name(chan2dev(lchan)), lchan); > + dma_chan_name(&lchan->vchan.chan), lchan); Depending on the amount of users (and I expect there is a number), I would expect specific API for virt-dma case. > if (ret) > return ret; -- With Best Regards, Andy Shevchenko