From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark Brown Subject: Re: [PATCH 01/15] mfd: add new driver for Sharp LoCoMo Date: Wed, 5 Nov 2014 20:24:05 +0000 Message-ID: <20141105202405.GJ8509@sirena.org.uk> References: <1414454528-24240-1-git-send-email-dbaryshkov@gmail.com> <1414454528-24240-2-git-send-email-dbaryshkov@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="VSaCG/zfRnOiPJtU" Cc: Linus Walleij , "linux-arm-kernel@lists.infradead.org" , "linux-gpio@vger.kernel.org" , Linux Input , "linux-leds@vger.kernel.org" , "linux-spi@vger.kernel.org" , "linux-fbdev@vger.kernel.org" , "alsa-devel@alsa-project.org" , Andrea Adami , Russell King , Daniel Mack , Haojian Zhuang , Robert Jarzmik , Alexandre Courbot , Dmitry Torokhov , Bryan Wu , Richard Purdie , Samuel Ortiz , Lee Jones To: Dmitry Eremin-Solenikov Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-leds-owner@vger.kernel.org List-Id: linux-spi.vger.kernel.org --VSaCG/zfRnOiPJtU Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Nov 06, 2014 at 12:02:49AM +0400, Dmitry Eremin-Solenikov wrote: > 2014-11-03 16:41 GMT+03:00 Linus Walleij : > > The point is still the same: no unrelated code in drivers/mfd, > > then either use IIO DAC as a middle layer or sink the DAC handling > > into respective subdriver, i.e. push it into the backlight or > > volume directly then. > The problem is that the DAC is equally used by backlight and by sound > device (WIP). > What about true i2c device driver sitting in drivers/misc and exporting a regmap > of 2 8-bit registers? If it can just export registers that sounds like a MFD. If it needs to export functionality then like Linus says the IIO subsystem abstracts DACs. --VSaCG/zfRnOiPJtU Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBAgAGBQJUWodkAAoJECTWi3JdVIfQmVgH/3rgog8tN2ChD8V1ivSlMvNt BR0isnXota/g1iIVojeFIhBwN7UZ5ZniMjn0dV7LKpMO20yzKNKz7znanQqTps6e hBfrJc+uD1sjIdPCZHD0exKJyRCe40xkCG24rGUev9e2Vsnk2YyD5I6jo/yGNb97 icM3wNV/kSYXH0Iq/LViQqdtDXbFmnjxgN/qv1hQJGNF8ceAQeSTdO/HeLsyrjW5 JbIqnxNmxAaVACQSlkfbxrbCIj9zVqmW8V2Tab31nG3Mz/7rGofOcNM8ytzf2osP WoIfhvxmqLtRvjwf6tfK2feLyW+NwjQ3ZK0w6OxPC1QCwrg+LSMNP2wbRe9qfpw= =sVTi -----END PGP SIGNATURE----- --VSaCG/zfRnOiPJtU--