Author: ian Date: Sun Jul 29 16:55:28 2018 New Revision: 336869 URL: https://svnweb.freebsd.org/changeset/base/336869
Log: The device ID tables are used only within the driver, make them static so that both of these drivers can exist in the same kernel. Modified: head/sys/dev/flash/mx25l.c head/sys/dev/flash/n25q.c Modified: head/sys/dev/flash/mx25l.c ============================================================================== --- head/sys/dev/flash/mx25l.c Sun Jul 29 12:41:56 2018 (r336868) +++ head/sys/dev/flash/mx25l.c Sun Jul 29 16:55:28 2018 (r336869) @@ -116,7 +116,7 @@ static void mx25l_strategy(struct bio *bp); static int mx25l_getattr(struct bio *bp); static void mx25l_task(void *arg); -struct mx25l_flash_ident flash_devices[] = { +static struct mx25l_flash_ident flash_devices[] = { { "en25f32", 0x1c, 0x3116, 64 * 1024, 64, FL_NONE }, { "en25p32", 0x1c, 0x2016, 64 * 1024, 64, FL_NONE }, { "en25p64", 0x1c, 0x2017, 64 * 1024, 128, FL_NONE }, Modified: head/sys/dev/flash/n25q.c ============================================================================== --- head/sys/dev/flash/n25q.c Sun Jul 29 12:41:56 2018 (r336868) +++ head/sys/dev/flash/n25q.c Sun Jul 29 16:55:28 2018 (r336869) @@ -139,7 +139,7 @@ static void n25q_strategy(struct bio *bp); static int n25q_getattr(struct bio *bp); static void n25q_task(void *arg); -struct n25q_flash_ident flash_devices[] = { +static struct n25q_flash_ident flash_devices[] = { { "n25q00", 0x20, 0xbb21, (64 * 1024), 2048, FL_ENABLE_4B_ADDR}, }; _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"