lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
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

Powered by Openwall GNU/*/Linux Powered by OpenVZ