* [PATCH] driver core: location: Add "back" as a possible output for panel
@ 2022-05-09 21:49 Won Chung
0 siblings, 0 replies; only message in thread
From: Won Chung @ 2022-05-09 21:49 UTC (permalink / raw)
To: Greg Kroah-Hartman, linux-kernel; +Cc: Rafael J . Wysocki, Won Chung
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2022-05-09 21:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-09 21:49 [PATCH] driver core: location: Add "back" as a possible output for panel Won Chung
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).