The former returns false and the latter returns NULL.
This is part of the update of the DRM drivers to Linux 5.14.
Differential D38163
linuxkpi: Define `dev_is_platform()` and `to_platform_device()` dumbbell on Jan 22 2023, 2:14 PM. Authored by Tags None Referenced Files
Details The former returns false and the latter returns NULL. This is part of the update of the DRM drivers to Linux 5.14.
Diff Detail
Event TimelineComment Actions I'm not sure I understand the concept, so let me copy/paste the comment in Documentation/driver-api/driver-model/platform.rst: Platform devices are devices that typically appear as autonomous entities in the system. This includes legacy port-based devices and host bridges to peripheral buses, and most controllers integrated into system-on-chip platforms. What they usually have in common is direct addressing from a CPU bus. Rarely, a platform_device will be connected through a segment of some other kind of bus; but its registers will still be directly addressable. In the context of DRM, it is used in the support for VESA/EFI during early stages of the boot. The code is not called on FreeBSD. Comment Actions Ok, good to me then, but please add in the commit message that those are no-op just to satisfy drm compiling. |