EDAC, sb_edac: Get rid of ->show_interleave_mode()
authorNicolas Iooss <nicolas.iooss_linux@m4x.org>
Sun, 22 Jan 2017 17:28:06 +0000 (18:28 +0100)
committerBorislav Petkov <bp@suse.de>
Mon, 23 Jan 2017 10:39:48 +0000 (11:39 +0100)
commit127c1225bf89764976f80e6a0afb4e26df33c2f2
treeb599dd5b4cf789a30005540c8ff0b66e865719e6
parent4fb6fde74d6724dc6d64ec729f950fbdeefd7f07
EDAC, sb_edac: Get rid of ->show_interleave_mode()

Function sbridge_register_mci() sets pvt->info.show_interleave_mode
to knl_show_interleave_mode() on Knight's Landing and
show_interleave_mode() anywhere else.

Merge show_interleave_mode() and knl_show_interleave_mode() in a single
implementation and use it without an indirect function pointer.

Signed-off-by: Nicolas Iooss <nicolas.iooss_linux@m4x.org>
Cc: Mauro Carvalho Chehab <mchehab@kernel.org>
Cc: linux-edac <linux-edac@vger.kernel.org>
Link: http://lkml.kernel.org/r/20170122172806.10412-1-nicolas.iooss_linux@m4x.org
[ Call it get_intlv_mode_str(). ]
Signed-off-by: Borislav Petkov <bp@suse.de>
drivers/edac/sb_edac.c