Reduce device has whitelist

pull/4215/head
Jimmy Brisson 2017-06-27 16:08:41 -05:00
parent dfeb864f19
commit 18bca08d4b
1 changed files with 6 additions and 7 deletions

View File

@ -77,13 +77,12 @@ def check_inherits(dict):
if ("inherits" in dict and len(dict["inherits"]) > 1): if ("inherits" in dict and len(dict["inherits"]) > 1):
yield "multiple inheritance is forbidden" yield "multiple inheritance is forbidden"
DEVICE_HAS_ALLOWED = ["AACI", "ANALOGIN", "ANALOGOUT", "CAN", "CLCD", DEVICE_HAS_ALLOWED = ["ANALOGIN", "ANALOGOUT", "CAN", "ETHERNET", "EMAC",
"ERROR_PATTERN", "ETHERNET", "EMAC", "FLASH", "I2C", "FLASH", "I2C", "I2CSLAVE", "I2C_ASYNCH", "INTERRUPTIN",
"I2CSLAVE", "I2C_ASYNCH", "INTERRUPTIN", "LOWPOWERTIMER", "LOWPOWERTIMER", "PORTIN", "PORTINOUT", "PORTOUT",
"PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "TRNG", "PWMOUT", "RTC", "TRNG","SERIAL", "SERIAL_ASYNCH",
"TSC", "SERIAL", "SERIAL_ASYNCH", "SERIAL_FC", "SLEEP", "SERIAL_FC", "SLEEP", "SPI", "SPI_ASYNCH", "SPISLAVE",
"SPI", "SPI_ASYNCH", "SPISLAVE", "STDIO_MESSAGES", "STORAGE"]
"STORAGE", "SEMIHOST", "LOCALFILESYSTEM"]
def check_device_has(dict): def check_device_has(dict):
for name in dict.get("device_has", []): for name in dict.get("device_has", []):
if name not in DEVICE_HAS_ALLOWED: if name not in DEVICE_HAS_ALLOWED: