From: Pavel Machek Subject: Re: [PATCHv3 07/14] HSI: Add common DT binding for HSI client devices Date: Sat, 19 Apr 2014 21:16:12 +0200 Message-ID: <20140419191612.GG5148@amd.pavel.ucw.cz> References: <1396053110-21639-1-git-send-email-sre@kernel.org> <1396053110-21639-8-git-send-email-sre@kernel.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <1396053110-21639-8-git-send-email-sre-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> Sender: devicetree-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Sebastian Reichel Cc: Sebastian Reichel , Linus Walleij , Shubhrajyoti Datta , Carlos Chinea , Tony Lindgren , Rob Herring , Pawel Moll , Mark Rutland , Kumar Gala , devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Pali =?iso-8859-1?Q?Roh=E1r?= , =?utf-8?B?0JjQstCw0LnQu9C+INCU0LjQvNC40YLRgNC+0LI=?= , Joni Lapilainen , Aaro Koskinen List-Id: devicetree@vger.kernel.org On Sat 2014-03-29 01:31:43, Sebastian Reichel wrote: > Implement and document generic DT bindings for HSI clients. > > Signed-off-by: Sebastian Reichel Reviewed-by: Pavel Machek > diff --git a/drivers/hsi/hsi.c b/drivers/hsi/hsi.c > index 07e1639..5973906 100644 > --- a/drivers/hsi/hsi.c > +++ b/drivers/hsi/hsi.c > @@ -26,8 +26,14 @@ > #include > #include > #include > +#include > +#include > #include "hsi_core.h" > + err = hsi_of_property_parse_mode(client, "hsi-mode", &mode); > + if (err) { > + err = hsi_of_property_parse_mode(client, "hsi-rx-mode", > + &cl->rx_cfg.mode); > + if (err) > + goto err; > + > + err = hsi_of_property_parse_mode(client, "hsi-tx-mode", > + &cl->tx_cfg.mode); > + if (err) > + goto err; Will this need some #ifdef CONFIG_OF? -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html