# Re: \[PATCH v2 02/23\] PCI: artpec6: Prefer of\_device\_get\_match\_data()

- From: Jesper Nilsson \<Jesper.Nilsson@axis.com\>
- Date: 2021-12-25 13:31:00 
- List: linux-kernel-mentees
- Page: https://ratatoskr.run/linux-kernel-mentees/2021/12/1618413
- Thread: https://ratatoskr.run/linux-pci/2021/12/1617128/t.md

```text
On Thu, Dec 23, 2021 at 02:10:33AM +0100, Bjorn Helgaas wrote:
> From: Fan Fei <redacted>
> 
> The artpec6 driver only needs the device data, not the whole struct
> of_device_id.  Use of_device_get_match_data() instead of of_match_device().
> No functional change intended.
> 
> [bhelgaas: commit log]
> Signed-off-by: Fan Fei <redacted>
> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>

Looks good to me,

Acked-by: Jesper Nilsson <jesper.nilsson@axis.com>

> Cc: <redacted>

/^JN - Jesper Nilsson
-- 
               Jesper Nilsson -- jesper.nilsson@axis.com
_______________________________________________
Linux-kernel-mentees mailing list
Linux-kernel-mentees@lists.linuxfoundation.org
https://lists.linuxfoundation.org/mailman/listinfo/linux-kernel-mentees
```
