static int usb_dmac_chan_probe(struct usb_dmac *dmac,
                               struct usb_dmac_chan *uchan,
-                              unsigned int index)
+                              u8 index)
 {
        struct platform_device *pdev = to_platform_device(dmac->dev);
-       char pdev_irqname[5];
+       char pdev_irqname[6];
        char *irqname;
        int ret;
 
        uchan->iomem = dmac->iomem + USB_DMAC_CHAN_OFFSET(index);
 
        /* Request the channel interrupt. */
-       sprintf(pdev_irqname, "ch%u", index);
+       scnprintf(pdev_irqname, sizeof(pdev_irqname), "ch%u", index);
        uchan->irq = platform_get_irq_byname(pdev, pdev_irqname);
        if (uchan->irq < 0)
                return -ENODEV;
        const enum dma_slave_buswidth widths = USB_DMAC_SLAVE_BUSWIDTH;
        struct dma_device *engine;
        struct usb_dmac *dmac;
-       unsigned int i;
        int ret;
+       u8 i;
 
        dmac = devm_kzalloc(&pdev->dev, sizeof(*dmac), GFP_KERNEL);
        if (!dmac)
 static void usb_dmac_remove(struct platform_device *pdev)
 {
        struct usb_dmac *dmac = platform_get_drvdata(pdev);
-       int i;
+       u8 i;
 
        for (i = 0; i < dmac->n_channels; ++i)
                usb_dmac_chan_remove(dmac, &dmac->channels[i]);