driver core: location: Add "back" as a possible output for panel
authorWon Chung <wonchung@google.com>
Mon, 9 May 2022 21:49:30 +0000 (21:49 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 May 2022 17:28:32 +0000 (19:28 +0200)
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>
drivers/base/physical_location.c

index 617ada5..87af641 100644 (file)
@@ -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";
        }