Re: [PATCH v5 3/4] spi: Update swnode based SPI devices to use the fwnode name

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Apr 11, 2024 at 12:06 PM Charles Keepax
<ckeepax@xxxxxxxxxxxxxxxxxxxxx> wrote:
>
> Update the name for software node based SPI devices to use the fwnode
> name as the device name. This is helpful since swnode devices are
> usually added within the kernel, and the kernel often then requires a
> predictable name such that it can refer back to the device.

...

> +       if (is_software_node(fwnode)) {
> +               dev_set_name(dev, "spi-%s", fwnode_get_name(fwnode));

Wouldn't %pfwP / %pfw work?

Thinking more about this, maybe even the ACPI case also can be combined?
See for the details

87526603c892 ("irqdomain: Get rid of special treatment for ACPI in
__irq_domain_add()")
9ed78b05f998 ("irqdomain: Allow software nodes for IRQ domain creation")

> +               return;
> +       }


-- 
With Best Regards,
Andy Shevchenko





[Index of Archives]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux