From: Won Chung <wonchung@google.com>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
linux-kernel@vger.kernel.org
Cc: "Rafael J . Wysocki" <rafael@kernel.org>,
Won Chung <wonchung@google.com>
Subject: [PATCH] driver core: location: Add "back" as a possible output for panel
Date: Mon, 9 May 2022 21:49:30 +0000 [thread overview]
Message-ID: <20220509214930.3573518-1-wonchung@google.com> (raw)
Add "back" as a possible panel output when _PLD output from ACPI
indicates back panel.
Fixes: 6423d2951087 ("driver core: Add sysfs support for physical location of a device")
Signed-off-by: Won Chung <wonchung@google.com>
---
drivers/base/physical_location.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/base/physical_location.c b/drivers/base/physical_location.c
index fbd9f9839e92..2b60d2b51684 100644
--- a/drivers/base/physical_location.c
+++ b/drivers/base/physical_location.c
@@ -56,6 +56,9 @@ static ssize_t panel_show(struct device *dev, struct device_attribute *attr,
case DEVICE_PANEL_FRONT:
panel = "front";
break;
+ case DEVICE_PANEL_BACK:
+ panel = "back";
+ break;
default:
panel = "unknown";
}
--
2.36.0.512.ge40c2bad7a-goog
reply other threads:[~2022-05-09 21:54 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20220509214930.3573518-1-wonchung@google.com \
--to=wonchung@google.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rafael@kernel.org \
/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
all inboxes | Powered by JetHome®