From: Andres Salomon Date: Fri, 18 Feb 2011 03:07:34 +0000 (-0800) Subject: mfd: Add refcounting support to mfd_cells X-Git-Tag: v2.6.39-rc1~96^2~43 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1e29af62f2b285bd18685da93c3ce8c33ca2d1db;p=pandora-kernel.git mfd: Add refcounting support to mfd_cells 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: Andres Salomon Signed-off-by: Samuel Ortiz --- Reading git-diff-tree failed