• Andres Salomon's avatar
    mfd: Add refcounting support to mfd_cells · 1e29af62
    Andres Salomon authored
    This provides convenience functions for sharing of cells across
    multiple mfd clients.  Mfd drivers can provide enable/disable hooks
    to actually tweak the hardware, and clients can call
    mfd_shared_cell_{en,dis}able without having to worry about whether
    or not another client happens to have enabled or disabled the
    cell/hardware.
    
    Note that this is purely optional; drivers can continue to use
    the mfd_cell's enable/disable hooks for their own purposes, if
    desired.
    Signed-off-by: default avatarAndres Salomon <dilinger@queued.net>
    Signed-off-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
    1e29af62
mfd-core.c 4.37 KB