diff options
author | Won Chung <wonchung@google.com> | 2022-05-09 23:49:30 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-05-19 19:28:32 +0200 |
commit | 1f7ff11ca68f464b6a9a71b8fbe9e5219e7cac57 (patch) | |
tree | 6090474cf669f88eae50aabc24e18c01961237c5 /drivers/base/physical_location.c | |
parent | driver core: location: Free struct acpi_pld_info *pld (diff) | |
download | linux-1f7ff11ca68f464b6a9a71b8fbe9e5219e7cac57.tar.xz linux-1f7ff11ca68f464b6a9a71b8fbe9e5219e7cac57.zip |
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@google.com>
Link: https://lore.kernel.org/r/20220509214930.3573518-1-wonchung@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/base/physical_location.c')
-rw-r--r-- | drivers/base/physical_location.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/base/physical_location.c b/drivers/base/physical_location.c index 617ada542b00..87af641cfe1a 100644 --- a/drivers/base/physical_location.c +++ b/drivers/base/physical_location.c @@ -57,6 +57,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"; } |