[PATCH 07/12] nvme-pci: factor out a nvme_pci_alloc_ctrl helper
Christoph Hellwig
hch at lst.de
Tue Nov 8 22:28:44 PST 2022
On Wed, Nov 09, 2022 at 05:03:19AM +0200, Sagi Grimberg wrote:
>> -static int nvme_probe(struct pci_dev *pdev, const struct pci_device_id
>> *id)
>> +static struct nvme_dev *nvme_pci_alloc_ctrl(struct pci_dev *pdev,
>> + const struct pci_device_id *id)
>
> kinda weird that nvme_pci_alloc_ctrl return struct nvme_dev. Patch looks
> fine though...
We can call it alloc_dev instead. But that whole nvme_dev naming is weird,
it really should be nvme_pci_ctrl.
More information about the Linux-nvme
mailing list