Re: [PATCH] usb: typec: stusb160x: add missing NULL check for i2c_get_match_data()
Joshua Crofts <[email protected]>
| Newsgroups | org.kernel.vger.linux-kernel,org.kernel.vger.linux-usb |
|---|---|
| Message-ID | <[email protected]> |
On Mon, 24 Aug 2026 09:48:26 +0300 Andy Shevchenko <[email protected]> wrote: > On Mon, Aug 24, 2026 at 08:40:41AM +0200, Joshua Crofts wrote: > > On Thu, 6 Aug 2026 08:43:01 +0000 > > Joshua Crofts <[email protected]> wrote: > > ... > > > > regmap_config = i2c_get_match_data(client); > > > + if (!regmap_config) > > > + return -ENODEV; > > Return -ENODATA here, it will distinguish better in case of debugging. Yep, this was before our discussion about this in IIO :) -- Kind regards, Joshua Crofts