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

<hr>

<p>In <a href="https://github.com/RIOT-OS/RIOT/pull/16577#discussion_r666173097">cpu/cc2538/include/cc2538_rf.h</a>:</p>
<pre style='color:#555'>> + *
+ * @return  pointer to the netdev descriptor. NULL if there's none.
+ */
+static inline cc2538_rf_t *netdev_to_cc2538_rf(netdev_t *netdev)
+{
+    /* Ugly... but at least type safe */
+#if IS_USED(MODULE_NETDEV_IEEE802154_SUBMAC)
+    return container_of(container_of(container_of(netdev,
+                                                  netdev_ieee802154_t,
+                                                  netdev),
+                                     netdev_ieee802154_submac_t,
+                                     dev
+                                     ),
+                        cc2538_rf_t,
+                        netdev);
+#elif IS_USED(MODULE_CC2538_RF_NETDEV_LEGACY)
</pre>
<p>should we just drop the legacy driver?</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/16577#pullrequestreview-702035374">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABE7WYBQC5ANWWVKSLR67LLTWWO6FANCNFSM47DJ4VMQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABE7WYDBHPDE2QEZDYWE6RDTWWO6FA5CNFSM47DJ4VM2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOFHMDLLQ.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/16577#pullrequestreview-702035374",
"url": "https://github.com/RIOT-OS/RIOT/pull/16577#pullrequestreview-702035374",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>