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

backlight: kb3886_bl: fix incorrect placement of __initdata marker

The __initdata marker can be virtually anywhere on the line, EXCEPT right
after "struct". The preferred location is before the "=" sign if there is
one, or before the trailing ";" otherwise. It also fixes the following
chechpatch warning.

WARNING: __initdata should be placed after kb3886bl_device_table[]

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Jingoo Han and committed by
Linus Torvalds
81f5cdc1 0f53449d

+1 -1
+1 -1
drivers/video/backlight/kb3886_bl.c
··· 78 78 static unsigned long kb3886bl_flags; 79 79 #define KB3886BL_SUSPENDED 0x01 80 80 81 - static struct dmi_system_id __initdata kb3886bl_device_table[] = { 81 + static struct dmi_system_id kb3886bl_device_table[] __initdata = { 82 82 { 83 83 .ident = "Sahara Touch-iT", 84 84 .matches = {