From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dmitry Torokhov Subject: Re: [PATCH v5 2/6] mfd: Add ChromeOS EC implementation Date: Wed, 20 Feb 2013 10:17:47 -0800 Message-ID: <20130220181746.GA15152@core.coreip.homeip.net> References: <1361381079-26747-1-git-send-email-sjg@chromium.org> <1361381079-26747-3-git-send-email-sjg@chromium.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <1361381079-26747-3-git-send-email-sjg@chromium.org> Sender: linux-kernel-owner@vger.kernel.org To: Simon Glass Cc: LKML , Samuel Ortiz , Che-Liang Chiou , Jonathan Kliegman , Luigi Semenzato , Olof Johansson , Vincent Palatin , Grant Likely , Rob Herring , Rob Landley , devicetree-discuss@lists.ozlabs.org, linux-doc@vger.kernel.org List-Id: devicetree@vger.kernel.org On Wed, Feb 20, 2013 at 09:24:35AM -0800, Simon Glass wrote: > This is the base EC implementation, which provides a high level > interface to the EC for use by the rest of the kernel. The actual > communcations is dealt with by a separate protocol driver which > registers itself with this interface. > > Interrupts are passed on through a notifier. > > A simple message structure is used to pass messages to the > protocol driver. > Signed-off-by: Simon Glass > Signed-off-by: Che-Liang Chiou > Signed-off-by: Jonathan Kliegman > Signed-off-by: Luigi Semenzato > Signed-off-by: Olof Johansson > Signed-off-by: Vincent Palatin ... > > +config MFD_CROS_EC > + bool "Support ChromeOS Embedded Controller" > + help > + If you say Y here you get support for the ChromeOS Embedded > + Controller (EC) providing keyboard, battery and power services. > + You also ned to enable the driver for the bus you are using. The > + protocol for talking to the EC is defined by the bus driver. Why can't it be a module? > + > +#ifndef __LINUX_MFD_CROS_EC_H > +#define __LINUX_MFD_CROS_EC_H > + > +struct i2c_msg; I do not believe this is needed here. Thanks. -- Dmitry