Re: [PATCH v3 18/20] platform/x86/intel/tpmi: Use DEFINE_RES_MEM() for the feature resources

From: Andy Shevchenko

Date: Thu Oct 01 2026 - 14:11:08 EST


On Wed, Sep 30, 2026 at 10:29:15AM -0700, Kuppuswamy Sathyanarayanan wrote:
> tpmi_create_device() fills in each feature resource field by field,
> deriving the end from the start and setting IORESOURCE_MEM by hand.
> That is what DEFINE_RES_MEM() exists for, so use it.
>
> The resources come from kzalloc_flex(), so the fields the macro sets
> that the open coded version left alone, name and desc, were already
> zero.
>
> No functional change intended.

Reviewed-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxx>

--
With Best Regards,
Andy Shevchenko