lkml.org 
[lkml]   [2017]   [Oct]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [RFC v3 2/7] platform/x86: intel_pmc_ipc: Use MFD framework to create dependent devices
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

\
 
 \ /
  Last update: 2017-10-01 16:44    [W:0.121 / U:32.264 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site