Re: [PATCH] usb: typec: stusb160x: add missing NULL check for i2c_get_match_data()

From: Andy Shevchenko

Date: Mon Aug 24 2026 - 02:49:37 EST


On Mon, Aug 24, 2026 at 08:40:41AM +0200, Joshua Crofts wrote:
> On Thu, 6 Aug 2026 08:43:01 +0000
> Joshua Crofts <joshua.crofts1@xxxxxxxxx> wrote:

...

> > regmap_config = i2c_get_match_data(client);
> > + if (!regmap_config)
> > + return -ENODEV;

Return -ENODATA here, it will distinguish better in case of debugging.

> A (very) gentle ping on this patch. Do you need a v2 to include the
> Cc to stable?

--
With Best Regards,
Andy Shevchenko