#
# SPDX-License-Identifier: MIT
+"""
+Device Tree Alias Functions
+"""
+
from typing import Optional
import os
import re
+
def get_dts_alias(device: str) -> Optional[str]:
"""Get the Device Tree Alias"""
uevent_path = "/sys/bus/platform/devices/" + device + "/uevent"