[PATCH] driver core: location: Add "back" as a possible output for panel

From: Won Chung
Date: Mon May 09 2022 - 17:54:07 EST


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@xxxxxxxxxx>
---
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