mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
drm/tegra: Update to Linux v6.13
Update the Tegra DRM driver to align with Linux v6.13. A function pointer 'fbdev_probe' was added to the drm_driver structure in Linux v6.13 and so use conftest to detect this and make the necessary changes to the Tegra DRM driver. JIRA LINQPJ14-47 Change-Id: I0120fe9f13bc39446ce4e0a8827eb5d8b42a082c Signed-off-by: Jon Hunter <jonathanh@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3333836 Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
@@ -7162,6 +7162,25 @@ compile_test() {
|
||||
compile_check_conftest "$CODE" "NV_DRM_DISPLAY_INFO_STRUCT_HAS_SOURCE_PHYSICAL_ADDRESS" "" "types"
|
||||
;;
|
||||
|
||||
drm_driver_has_fbdev_probe)
|
||||
#
|
||||
# Determine if the 'drm_driver' structure has an 'fbdev_probe'
|
||||
# function pointer.
|
||||
#
|
||||
# In Linux v6.13, commit 5d08c44e47b9 ("drm/fbdev: Add
|
||||
# memory-agnostic fbdev client") added an 'fbdev_probe' callback
|
||||
# to the drm_driver structure.
|
||||
#
|
||||
CODE="
|
||||
#include <drm/drm_drv.h>
|
||||
|
||||
int conftest_drm_driver_has_fbdev_probe(void) {
|
||||
return offsetof(struct drm_driver, fbdev_probe);
|
||||
}"
|
||||
|
||||
compile_check_conftest "$CODE" "NV_DRM_DRIVER_HAS_FBDEV_PROBE" "" "types"
|
||||
;;
|
||||
|
||||
drm_driver_struct_has_date)
|
||||
#
|
||||
# Determine if the 'drm_driver' structure has a 'date' field.
|
||||
|
||||
Reference in New Issue
Block a user