From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eduardo Valentin Subject: Re: [PATCH v2 1/8] thermal: Provide stub for thermal_of_cooling_device_register() function Date: Fri, 2 Jan 2015 14:54:28 -0400 Message-ID: <20150102185426.GC12485@developer> References: <1418897591-18332-1-git-send-email-l.majewski@samsung.com> <1419265668-32283-1-git-send-email-l.majewski@samsung.com> <1419265668-32283-2-git-send-email-l.majewski@samsung.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="eRtJSFbw+EEWtPj3" Return-path: Content-Disposition: inline In-Reply-To: <1419265668-32283-2-git-send-email-l.majewski@samsung.com> Sender: linux-kernel-owner@vger.kernel.org To: Lukasz Majewski Cc: Kamil Debski , Jean Delvare , Guenter Roeck , lm-sensors@lm-sensors.org, Linux PM list , "linux-samsung-soc@vger.kernel.org" , devicetree@vger.kernel.org, Lukasz Majewski , Kukjin Kim , linux-kernel@vger.kernel.org, Sylwester Nawrocki , Abhilash Kesavan , Abhilash Kesavan List-Id: devicetree@vger.kernel.org --eRtJSFbw+EEWtPj3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Dec 22, 2014 at 05:27:41PM +0100, Lukasz Majewski wrote: > Odroid U3 fan can work without being registered as OF cooling device > (with CONFIG_THERMAL_OF disabled). > In this situation it can be controlled via PWM entry at > /sys/class/hwmon/hwmon0/pwm1. >=20 > Therefore, the thermal_of_cooling_device_register() function needs a stub > to allow clean compilation. >=20 > Signed-off-by: Lukasz Majewski Acked-by: Eduardo Valentin > --- > Changes for v2: > - None > --- > include/linux/thermal.h | 14 +++++++++++--- > 1 file changed, 11 insertions(+), 3 deletions(-) >=20 > diff --git a/include/linux/thermal.h b/include/linux/thermal.h > index 2de3d9e..871123c 100644 > --- a/include/linux/thermal.h > +++ b/include/linux/thermal.h > @@ -328,6 +328,10 @@ thermal_zone_of_sensor_register(struct device *dev, = int id, void *data, > const struct thermal_zone_of_device_ops *ops); > void thermal_zone_of_sensor_unregister(struct device *dev, > struct thermal_zone_device *tz); > +struct thermal_cooling_device * > +thermal_of_cooling_device_register(struct device_node *np, > + char *type, void *devdata, > + const struct thermal_cooling_device_ops *); > #else > static inline struct thermal_zone_device * > thermal_zone_of_sensor_register(struct device *dev, int id, void *data, > @@ -342,6 +346,13 @@ void thermal_zone_of_sensor_unregister(struct device= *dev, > { > } > =20 > +static inline struct thermal_cooling_device * > +thermal_of_cooling_device_register(struct device_node *np, > + char *type, void *devdata, > + const struct thermal_cooling_device_ops *ops) > +{ > + return NULL; > +} > #endif > struct thermal_zone_device *thermal_zone_device_register(const char *, i= nt, int, > void *, struct thermal_zone_device_ops *, > @@ -357,9 +368,6 @@ void thermal_zone_device_update(struct thermal_zone_d= evice *); > =20 > struct thermal_cooling_device *thermal_cooling_device_register(char *, v= oid *, > const struct thermal_cooling_device_ops *); > -struct thermal_cooling_device * > -thermal_of_cooling_device_register(struct device_node *np, char *, void = *, > - const struct thermal_cooling_device_ops *); > void thermal_cooling_device_unregister(struct thermal_cooling_device *); > struct thermal_zone_device *thermal_zone_get_zone_by_name(const char *na= me); > int thermal_zone_get_temp(struct thermal_zone_device *tz, unsigned long = *temp); > --=20 > 2.0.0.rc2 >=20 --eRtJSFbw+EEWtPj3 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBAgAGBQJUpulbAAoJEMLUO4d9pOJWUq8H/2GaJ1MfMZPLIcSnovdK9wW+ gJmXYn02MMjZuop/2e4y/OUzrr4xoXmfhy5sRvOyVWb/S3wNnB6jGXhgRilsMof7 i0/92SBcm61HvVZE5SbvmGChTFBgZTH6g0Psyq3lLPaD3wtzgfLc1ORBjiAV3eVQ CQZw+3BC05Jsjf8lhJcChvb5CrFHa2/gXEmdEfDobn9SDGW5Nx/9lh0pjXH55wAY Ma51IAzSxux7+SOdn0GMyZPGmrMXBLfwUV1xiFaSHteHQ23euxLC5ED28fqJ2e3b YjhIVRbow5dpTO9sbc+OIyW6Q3hNIwGpZUwWTumKD/GxFR2dKygJaPDFdWRylLU= =Vwm8 -----END PGP SIGNATURE----- --eRtJSFbw+EEWtPj3--