Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

UAPI: Fix nested __KERNEL__ guards in video/edid.h

Fix nested __KERNEL__ guards in video/edid.h to make parsing easier.

Signed-off-by: David Howells <dhowells@redhat.com>

+2 -4
+2 -4
include/video/edid.h
··· 1 1 #ifndef __linux_video_edid_h__ 2 2 #define __linux_video_edid_h__ 3 3 4 - #if !defined(__KERNEL__) || defined(CONFIG_X86) 5 - 6 4 struct edid_info { 7 5 unsigned char dummy[128]; 8 6 }; 9 7 10 8 #ifdef __KERNEL__ 9 + #ifdef CONFIG_X86 11 10 extern struct edid_info edid_info; 12 - #endif /* __KERNEL__ */ 13 - 11 + #endif 14 12 #endif 15 13 16 14 #endif /* __linux_video_edid_h__ */