firmware: coreboot: Replace tag with id table in driver struct
authorNícolas F. R. A. Prado <nfraprado@collabora.com>
Mon, 12 Feb 2024 14:50:07 +0000 (09:50 -0500)
committerTzung-Bi Shih <tzungbi@kernel.org>
Sat, 17 Feb 2024 00:53:06 +0000 (08:53 +0800)
commit8a0a62941a042612f7487f6c4ff291f9054ff214
treefe15f68ecdbcdd38f4bdc3f07ed03f5153ebe0ff
parentf1cebae1dbf85f9de65c13a2d9f5cc3be7e51dc4
firmware: coreboot: Replace tag with id table in driver struct

Switch the plain 'tag' field in struct coreboot_driver for the newly
created coreboot_device_id struct, which also contains a tag field and
has the benefit of allowing modalias generation, and update all coreboot
drivers accordingly.

While at it, also add the id table for each driver to the module device
table to allow automatically loading the module.

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Reviewed-by: Brian Norris <briannorris@chromium.org>
Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
Link: https://lore.kernel.org/r/20240212-coreboot-mod-defconfig-v4-3-d14172676f6d@collabora.com
Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org>
drivers/firmware/google/cbmem.c
drivers/firmware/google/coreboot_table.c
drivers/firmware/google/coreboot_table.h
drivers/firmware/google/framebuffer-coreboot.c
drivers/firmware/google/memconsole-coreboot.c
drivers/firmware/google/vpd.c