Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751243AbaLZQSL (ORCPT ); Fri, 26 Dec 2014 11:18:11 -0500 Received: from mho-02-ewr.mailhop.org ([204.13.248.72]:39654 "EHLO mho-02-ewr.mailhop.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751066AbaLZQSI (ORCPT ); Fri, 26 Dec 2014 11:18:08 -0500 X-Mail-Handler: Dyn Standard SMTP by Dyn X-Originating-IP: 104.193.169.186 X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX19K2HpE4XWEb97eLz4yjuuK Date: Fri, 26 Dec 2014 08:17:57 -0800 From: Tony Lindgren To: Pavel Machek Cc: pali.rohar@gmail.com, sre@debian.org, sre@ring0.de, kernel list , linux-arm-kernel , linux-omap@vger.kernel.org, khilman@kernel.org, aaro.koskinen@iki.fi, ivo.g.dimitrov.75@gmail.com, jdelvare@suse.de, linux@roeck-us.net, lm-sensors@lm-sensors.org Subject: Re: [PATCH] add omap34xx temperature monitoring support Message-ID: <20141226161757.GD12409@atomide.com> References: <20141226102933.GA28778@amd> <20141226155456.GB12409@atomide.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20141226155456.GB12409@atomide.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Tony Lindgren [141226 07:57]: > * Pavel Machek [141226 02:32]: > > --- /dev/null > > +++ b/drivers/hwmon/omap34xx_temp.c > > @@ -0,0 +1,263 @@ > > +/* > > + * omap34xx_temp.c - Linux kernel module for OMAP34xx hardware monitoring > > + * > > + * Copyright (C) 2008 Nokia Corporation > > + * > > + * Written by Peter De Schrijver > > + * > > + * Inspired by k8temp.c > > + * > > + * This file is subject to the terms and conditions of the GNU General > > + * Public License. See the file "COPYING" in the main directory of this > > + * archive for more details. > > + * > > + * This program is distributed in the hope that it will be useful, > > + * but WITHOUT ANY WARRANTY; without even the implied warranty of > > + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > > + * GNU General Public License for more details. > > + */ > > + > > +#include > > +#include > > +#include > > +#include > > +#include > > +#include > > +#include > > +#include > > +#include > > + > > +#include "../../arch/arm/mach-omap2/control.h" > > No need to do this, you can use syscon here like pbias-regulator.c > is doing. Oh looks like you're already using syscon, nice. What defines do you need from control.h? Those should be in the driver if private to the driver, or else we should have some minimal header in include/linux somewhere if some control.h defines really need to be exposed. Regards, Tony -- 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/