<p></p>
<p><b>@benpicco</b> commented on this pull request.</p>

<hr>

<p>In <a href="https://github.com/RIOT-OS/RIOT/pull/14105#discussion_r428094720">cpu/sam0_common/periph/spi.c</a>:</p>
<pre style='color:#555'>> +void spi_pm_cb_enter(int deep)
+{
+    if (deep) {
+        for (size_t i = 0; i < SPI_NUMOF; i++) {
+            spi_t bus = SPI_DEV(i);
+            if (spi_pins_muxed & (1 << bus)) {
+                gpio_disable_mux(spi_config[bus].mosi_pin);
+                gpio_disable_mux(spi_config[bus].clk_pin);
+            }
+        }
+    }
+}
+
+void spi_pm_cb_leave(int deep)
+{
+    if (deep) {
</pre>
<p>Minor nit:</p>
⬇️ Suggested change
<pre style="color: #555">-    if (deep) {
+    if (!deep) {
+        return;
+    }
</pre>

<p>saves you unnececary nesting.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/RIOT-OS/RIOT/pull/14105#pullrequestreview-415443271">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABE7WYC7FTRW6PE3DWCWXULRSPXYPANCNFSM4NF4ZU3Q">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABE7WYCFUACPNSFZYXQF6PLRSPXYPA5CNFSM4NF4ZU32YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGODDBSSRY.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/RIOT-OS/RIOT/pull/14105#pullrequestreview-415443271",
"url": "https://github.com/RIOT-OS/RIOT/pull/14105#pullrequestreview-415443271",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>