Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1742836 > unrolled thread

Re: [RFC v3 2/7] platform/x86: intel_pmc_ipc: Use MFD framework to create dependent devices

Started byAndy Shevchenko <andy.shevchenko@gmail.com>
First post2017-10-01 16:50 +0200
Last post2017-10-01 16:50 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [RFC v3 2/7] platform/x86: intel_pmc_ipc: Use MFD framework to  create dependent devices Andy Shevchenko <andy.shevchenko@gmail.com> - 2017-10-01 16:50 +0200

#1742836 — Re: [RFC v3 2/7] platform/x86: intel_pmc_ipc: Use MFD framework to create dependent devices

FromAndy Shevchenko <andy.shevchenko@gmail.com>
Date2017-10-01 16:50 +0200
SubjectRe: [RFC v3 2/7] platform/x86: intel_pmc_ipc: Use MFD framework to create dependent devices
Message-ID<uvNJ8-3mp-11@gated-at.bofh.it>
On Tue, Sep 5, 2017 at 8:37 AM,
<sathyanarayanan.kuppuswamy@linux.intel.com> wrote:
> From: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
>
> Currently, we have lot of repetitive code in dependent device resource
> allocation and device creation handling code. This logic can be improved if
> we use MFD framework for dependent device creation. This patch adds this
> support.
>

> +       punit_cell.id = -1;

> +       return devm_mfd_add_devices(&pdev->dev, PLATFORM_DEVID_AUTO,
> +                       &punit_cell, 1, NULL, 0, NULL);

IIRC you don't need to file cell ID in case of DEVID_AUTO.

-- 
With Best Regards,
Andy Shevchenko

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web