ah, it seems there is a slightly different coding style. adjusted.
D335: 698_0001-Keep-a-reference-to-the-pin-when-converting-it-from-.patch
Here's the patch
D336: 697_0001-Keep-a-reference-to-the-pin-when-converting-it-from-.patch