This is an automated email from the ASF dual-hosted git repository.

kopyscinski pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git


The following commit(s) were added to refs/heads/master by this push:
     new 1eb3e09f1 hw/drivers: fix LIS2DH12_SHELL_DEV_NAME syscfg restrictions
1eb3e09f1 is described below

commit 1eb3e09f154532e32e77e21b8062e91790f53490
Author: Krzysztof Kopyściński <[email protected]>
AuthorDate: Mon Feb 5 12:02:58 2024 +0100

    hw/drivers: fix LIS2DH12_SHELL_DEV_NAME syscfg restrictions
    
    Statement was not effective, it is `restrictions` not `restriction`
---
 hw/drivers/sensors/lis2dh12/syscfg.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/drivers/sensors/lis2dh12/syscfg.yml 
b/hw/drivers/sensors/lis2dh12/syscfg.yml
index 5eee6abf3..b2f061646 100644
--- a/hw/drivers/sensors/lis2dh12/syscfg.yml
+++ b/hw/drivers/sensors/lis2dh12/syscfg.yml
@@ -34,7 +34,6 @@ syscfg.defs:
         description: >
             Device name for lis2dh12 device used in shell
         value:
-        restriction: LIS2DH12_CLI == 0 || $notnull
     LIS2DH12_CLI:
         description: 'Enable shell support for the LIS2DH12'
         value: 0
@@ -82,6 +81,7 @@ syscfg.defs:
 
 syscfg.restrictions:
     - "(LIS2DH12_ENABLE_I2C == 1) || (LIS2DH12_ENABLE_SPI == 1)"
+    - '(LIS2DH12_CLI == 0) || (LIS2DH12_SHELL_DEV_NAME != "")'
 
 syscfg.logs:
     LIS2DH12_LOG:

Reply via email to