From: rkir@google.com
To: b.zolnierkie@samsung.com
Cc: Roman Kiryanov <rkir@google.com>, Yu Ning <yu.ning@intel.com>,
dri-devel@lists.freedesktop.org, tkjos@google.com
Subject: [PATCH v2 2/3] video: fbdev: Enable ACPI-based enumeration for goldfishfb
Date: Fri, 8 Jun 2018 12:10:59 -0700 [thread overview]
Message-ID: <20180608191100.21751-2-rkir@google.com> (raw)
In-Reply-To: <20180608191100.21751-1-rkir@google.com>
From: Yu Ning <yu.ning@intel.com>
Add an ACPI id to make goldfish framebuffer to support ACPI enumeration.
Signed-off-by: Yu Ning <yu.ning@intel.com>
Signed-off-by: Roman Kiryanov <rkir@google.com>
---
Changes in v2:
- Removed references to commits outside of kernel.org.
- Updated the commit description.
drivers/video/fbdev/goldfishfb.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/drivers/video/fbdev/goldfishfb.c b/drivers/video/fbdev/goldfishfb.c
index de29c4ff77e5..01732858b60d 100644
--- a/drivers/video/fbdev/goldfishfb.c
+++ b/drivers/video/fbdev/goldfishfb.c
@@ -26,6 +26,7 @@
#include <linux/interrupt.h>
#include <linux/ioport.h>
#include <linux/platform_device.h>
+#include <linux/acpi.h>
enum {
FB_GET_WIDTH = 0x00,
@@ -312,12 +313,19 @@ static const struct of_device_id goldfish_fb_of_match[] = {
};
MODULE_DEVICE_TABLE(of, goldfish_fb_of_match);
+static const struct acpi_device_id goldfish_fb_acpi_match[] = {
+ { "GFSH0004", 0 },
+ { },
+};
+MODULE_DEVICE_TABLE(acpi, goldfish_fb_acpi_match);
+
static struct platform_driver goldfish_fb_driver = {
.probe = goldfish_fb_probe,
.remove = goldfish_fb_remove,
.driver = {
.name = "goldfish_fb",
.of_match_table = goldfish_fb_of_match,
+ .acpi_match_table = ACPI_PTR(goldfish_fb_acpi_match),
}
};
--
2.18.0.rc1.242.g61856ae69a-goog
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
next prev parent reply other threads:[~2018-06-08 19:11 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20180608191110epcas5p1a5873d2a43fac1b9530150d9851b227b@epcas5p1.samsung.com>
2018-06-08 19:10 ` [PATCH v2 1/3] video: fbdev: Fix checkpatch warnings in goldfishfb.c rkir
2018-06-08 19:10 ` rkir [this message]
2018-07-03 14:29 ` [PATCH v2 2/3] video: fbdev: Enable ACPI-based enumeration for goldfishfb Bartlomiej Zolnierkiewicz
2018-06-08 19:11 ` [PATCH v2 3/3] video: fbdev: Set pixclock = 0 in goldfishfb rkir
2018-07-03 14:30 ` Bartlomiej Zolnierkiewicz
2018-06-15 23:47 ` [PATCH v2 1/3] video: fbdev: Fix checkpatch warnings in goldfishfb.c Roman Kiryanov
2018-06-18 14:33 ` Bartlomiej Zolnierkiewicz
2018-07-03 14:29 ` Bartlomiej Zolnierkiewicz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180608191100.21751-2-rkir@google.com \
--to=rkir@google.com \
--cc=b.zolnierkie@samsung.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=tkjos@google.com \
--cc=yu.ning@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox