Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752939AbaBXPNG (ORCPT ); Mon, 24 Feb 2014 10:13:06 -0500 Received: from cam-admin0.cambridge.arm.com ([217.140.96.50]:35485 "EHLO cam-admin0.cambridge.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752541AbaBXPND (ORCPT ); Mon, 24 Feb 2014 10:13:03 -0500 Date: Mon, 24 Feb 2014 15:13:01 +0000 From: Mark Rutland To: Sebastian Reichel Cc: Sebastian Reichel , Linus Walleij , Shubhrajyoti Datta , Carlos Chinea , Tony Lindgren , "grant.likely@linaro.org" , "rob.herring@calxeda.com" , Pawel Moll , Stephen Warren , Ian Campbell , Rob Landley , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-omap@vger.kernel.org" , Pali =?utf-8?B?Um9ow6Fy?= , =?utf-8?B?0JjQstCw0LnQu9C+INCU0LjQvNC40YLRgNC+0LI=?= , Joni Lapilainen , Aaro Koskinen Subject: Re: [PATCHv1 3/6] HSI: hsi-char: add Device Tree support Message-ID: <20140224151301.GJ28555@e106331-lin.cambridge.arm.com> References: <1393199401-27197-1-git-send-email-sre@debian.org> <1393199401-27197-4-git-send-email-sre@debian.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1393199401-27197-4-git-send-email-sre@debian.org> Thread-Topic: [PATCHv1 3/6] HSI: hsi-char: add Device Tree support Accept-Language: en-GB, en-US Content-Language: en-US User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Feb 23, 2014 at 11:49:58PM +0000, Sebastian Reichel wrote: > Add of_match_table to hsi_char driver, so that it can > be referenced from Device Tree. > > Signed-off-by: Sebastian Reichel > --- > drivers/hsi/clients/hsi_char.c | 11 +++++++++++ > 1 file changed, 11 insertions(+) > > diff --git a/drivers/hsi/clients/hsi_char.c b/drivers/hsi/clients/hsi_char.c > index e61e5f9..7f64bed 100644 > --- a/drivers/hsi/clients/hsi_char.c > +++ b/drivers/hsi/clients/hsi_char.c > @@ -42,6 +42,7 @@ > #include > #include > #include > +#include > > #define HSC_DEVS 16 /* Num of channels */ > #define HSC_MSGS 4 > @@ -758,12 +759,22 @@ static int hsc_remove(struct device *dev) > return 0; > } > > +#ifdef CONFIG_OF > +static const struct of_device_id hsi_char_of_match[] = { > + { .compatible = "ssi-char", }, This string is undocumented. > + { .compatible = "hsi-char", }, I'm not sure either string makes sense though; this feels like a binding for the sake of the driver rather than describing the device and allowing the driver to pick it up if it makes sense to do so. What exactly is a "ssi-char" device or a "hsi-char" device? Cheers, Mark. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/