Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp2289226rdd; Fri, 12 Jan 2024 05:23:11 -0800 (PST) X-Google-Smtp-Source: AGHT+IE+o7JJM2wO6YYW3bnzK+5dEO2LuTJ94zDfC9aPFIXgq5lUabir4tEkKut+dt8/MiaK4RDy X-Received: by 2002:a05:6358:5f06:b0:175:8ecb:54ca with SMTP id y6-20020a0563585f0600b001758ecb54camr2449712rwn.34.1705065790738; Fri, 12 Jan 2024 05:23:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705065790; cv=none; d=google.com; s=arc-20160816; b=T0zysAakl5mF/ME5vkuOQSnQecRHSG6QvVwKLgmWPu4P3em73s5n/tDRo0ym/AhLDS qfpYibpQBFp1FZvLILhx1iLGNmNuR6Y/SX+6LiROlC3Xq0Kz8eBkg+Yq+eIr6GUadli6 x9MQfeBTuDbs504c3f5NspiG2k3MUiuKdraBYxTOcT53l+qaekIvyQx2tNr+6wdKRtjb WCOl5qzuSeZXL4BwAEuib4LLFQSEpI74txJ52h1Xmj5Yx0qKFEBST9TvUy4dpJWZSwsx SvEwmQ5l16/ND4zNVTu51XxPl4GitBLhMp8Re5YPJnsNOrrSbyyA7Hi7p3qcLtlVhLGj vdOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=K3QvRQlNygcUhQFlY5uahz8ykWUnZtriIogeRUs2a1w=; fh=/y8dwzMSpztNb1FQx4918QuGkjkLYbBMAO8cMYUQygc=; b=i4Q9LlgcgqO3LbNODfFw55YSwkdUgcqP0bqlmd2vhmRDQ2olo3m4k8ZXmkWNNK4N5X e6TBtTPs5Gm5iqa4wDpwnb/vSMvllMJpzDJhlemqZ3g3RLAUQEjOwymlVK0zJMC1lV/H Q9/5mUQzUrXhTiVkTV0BzPGIFjsivUoI6NxsA5X/N7jzFkT59r1kc2ME7qXXTxebr/U9 3OegHce4PuNdxIjVTmbbqdWWBC1L3xBGeP5WMeaAcYTLbUuRFQsXSZgqqk4G1oVnkUN2 Bi7AXVK3a3A7MrcI1UFNoeeYfxESLX6asxRMXAk81pZ6/w3H3k0cyjWZ4bxICj4jsM4I ILaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=u598Lenm; spf=pass (google.com: domain of linux-kernel+bounces-24687-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24687-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id z5-20020aa78885000000b006d995661f68si3351699pfe.51.2024.01.12.05.23.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Jan 2024 05:23:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-24687-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=u598Lenm; spf=pass (google.com: domain of linux-kernel+bounces-24687-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24687-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 64A542845DC for ; Fri, 12 Jan 2024 13:23:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 23EE76E2C0; Fri, 12 Jan 2024 13:21:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="u598Lenm" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 11DF46E2B2 for ; Fri, 12 Jan 2024 13:21:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1705065695; bh=gIUn32GOZvNsfDJEtW4SBOOpxVUI+08upkQ6PKTzhZg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=u598Lenmeb95HeOuDOhyRzOU/puSD8AwcBF+nzTySLpZZfVZIyNSfSFyfacdwN5kW +v7989vDBjlU+0+mV70V6iFqOe3gPw1PqTbw5QzIaD9wdphdgjIfvP0pcx2yuOQTou 3SWcQhKs1cO4VYTup+KRxUzIXK8HTuo0WMcy2Xyh4uoyFABPSYu1es328E5vd7MhXy lFKa1xIwV4gD6Ipe0aPMMmZy+Os3oj5f6rOjA8dS0eacDP1/dc110lAGriyyGjUevP HsRFpr3f/wXn778wFrMQy3zmVPlNQmM6rads4iJua6odIt1diE3A7rViX5W25FdVOX 6GGR/nJlOLPOw== Received: from localhost.localdomain (zone.collabora.co.uk [167.235.23.81]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: nfraprado) by madrid.collaboradmins.com (Postfix) with ESMTPSA id CBCF43782031; Fri, 12 Jan 2024 13:21:32 +0000 (UTC) From: =?UTF-8?q?N=C3=ADcolas=20F=2E=20R=2E=20A=2E=20Prado?= To: Tzung-Bi Shih Cc: kernel@collabora.com, AngeloGioacchino Del Regno , chrome-platform@lists.linux.dev, =?UTF-8?q?N=C3=ADcolas=20F=2E=20R=2E=20A=2E=20Prado?= , Brian Norris , Julius Werner , linux-kernel@vger.kernel.org Subject: [PATCH v2 6/7] firmware: google: framebuffer: Add to module device table Date: Fri, 12 Jan 2024 10:18:35 -0300 Message-ID: <20240112131857.900734-7-nfraprado@collabora.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240112131857.900734-1-nfraprado@collabora.com> References: <20240112131857.900734-1-nfraprado@collabora.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Create an id table and add it to the module device table to allow the framebuffer driver to be automatically loaded when a matching device is found. Suggested-by: Brian Norris Signed-off-by: NĂ­colas F. R. A. Prado --- Changes in v2: - Added this commit drivers/firmware/google/framebuffer-coreboot.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/firmware/google/framebuffer-coreboot.c b/drivers/firmware/google/framebuffer-coreboot.c index 5c84bbebfef8..b33e9c6f97d7 100644 --- a/drivers/firmware/google/framebuffer-coreboot.c +++ b/drivers/firmware/google/framebuffer-coreboot.c @@ -13,6 +13,7 @@ #include #include #include +#include #include #include @@ -80,6 +81,12 @@ static void framebuffer_remove(struct coreboot_device *dev) platform_device_unregister(pdev); } +static const struct coreboot_device_id framebuffer_ids[] = { + { .tag = CB_TAG_FRAMEBUFFER }, + { /* sentinel */ } +}; +MODULE_DEVICE_TABLE(coreboot, framebuffer_ids); + static struct coreboot_driver framebuffer_driver = { .probe = framebuffer_probe, .remove = framebuffer_remove, -- 2.43.0