[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20220509214930.3573518-1-wonchung@google.com>
Date: Mon, 9 May 2022 21:49:30 +0000
From: Won Chung <wonchung@...gle.com>
To: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
linux-kernel@...r.kernel.org
Cc: "Rafael J . Wysocki" <rafael@...nel.org>,
Won Chung <wonchung@...gle.com>
Subject: [PATCH] driver core: location: Add "back" as a possible output for panel
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@...gle.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
Powered by blists - more mailing lists