Skip to contentSkip to conversation

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

PATCH New Won Chung 1 participant 1 message May 9, 2022 Driver core

lore
Share & tools
lore

Won Chung

author
#0 lore raw

PATCH 1/1 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")
---
 drivers/base/physical_location.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/base/physical_location.c +3 -0
index fbd9f9839e92..2b60d2b51684 100644
@@ -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";
 	}
Signature · 1 line
2.36.0.512.ge40c2bad7a-goog