summaryrefslogtreecommitdiffstats
path: root/util/sconfig
diff options
context:
space:
mode:
Diffstat (limited to 'util/sconfig')
-rw-r--r--util/sconfig/main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/util/sconfig/main.c b/util/sconfig/main.c
index 1fd440494231..815bfc7e5550 100644
--- a/util/sconfig/main.c
+++ b/util/sconfig/main.c
@@ -1559,6 +1559,12 @@ static void update_device(struct device *base_dev, struct device *override_dev)
base_dev->enabled = override_dev->enabled;
/*
+ * Copy the hidden state of override device to base device. This allows
+ * override tree to hide or unhide a particular device.
+ */
+ base_dev->hidden = override_dev->hidden;
+
+ /*
* Copy subsystem vendor and device ids from override device to base
* device only if the ids are non-zero in override device. Else, honor
* the values in base device.