FILE
intel_colorop.c
File preview with syntax highlighting.
linux-6.19.14/drivers/gpu/drm/i915/display/intel_colorop.c
1// SPDX-License-Identifier: MIT 2/* 3 * Copyright © 2025 Intel Corporation 4 */ 5 6#include "intel_colorop.h" 7#include "intel_display_types.h" 8 9struct intel_colorop *to_intel_colorop(struct drm_colorop *colorop) 10{ 11 return container_of(colorop, struct intel_colorop, base); 12} 13 14struct intel_colorop *intel_colorop_alloc(void) 15{ 16 struct intel_colorop *colorop; 17 18 colorop = kzalloc(sizeof(*colorop), GFP_KERNEL); 19 if (!colorop) 20 return ERR_PTR(-ENOMEM); 21 22 return colorop; 23} 24 25struct intel_colorop *intel_colorop_create(enum intel_color_block id) 26{ 27 struct intel_colorop *colorop; 28 29 colorop = intel_colorop_alloc(); 30 31 if (IS_ERR(colorop)) 32 return colorop; 33 34 colorop->id = id; 35 36 return colorop; 37}
~/
Read-only file preview.