All of lore.kernel.org
 help / color / mirror / Atom feed
From: Eduardo Valentin <edubezval@gmail.com>
To: Linux PM <linux-pm@vger.kernel.org>
Cc: Caesar Wang <caesar.wang@rock-chips.com>, Wei Ni <wni@nvidia.com>,
	Lukasz Majewski <l.majewski@samsung.com>,
	Mikko Perttunen <mikko.perttunen@kapsi.fi>,
	Eduardo Valentin <edubezval@gmail.com>
Subject: [PATCHv4 0/1] of-thermal API change
Date: Tue, 18 Nov 2014 10:39:34 -0400	[thread overview]
Message-ID: <1416321575-18348-1-git-send-email-edubezval@gmail.com> (raw)

Hello guys,

I am proposing this change in the of-thermal API to sensors. The only
single change is how we represent the callbacks between sensor drivers
and of-thermal.

Essentially, instead of passing callbacks as parameters of the registration
function, now of-thermal users will pass an ops. It is a simple way of
growing the callback API smoothly. 

There are already proposals to grow this API. Thus I would like to change
this before we start to introduce new callbacks here.

I changed the existing of-thermal users to adapt accordingly.

Let me know if you have objections.

BR,

Eduardo Valentin (1):
  thermal: of: improve of-thermal sensor registration API

 drivers/hwmon/lm75.c                               |  9 +++--
 drivers/hwmon/ntc_thermistor.c                     |  6 +++-
 drivers/hwmon/tmp102.c                             |  6 +++-
 drivers/thermal/of-thermal.c                       | 40 ++++++++++------------
 drivers/thermal/tegra_soctherm.c                   |  7 ++--
 drivers/thermal/ti-soc-thermal/ti-thermal-common.c |  8 +++--
 include/linux/thermal.h                            | 24 +++++++++----
 7 files changed, 63 insertions(+), 37 deletions(-)

-- 
2.1.3


             reply	other threads:[~2014-11-18 14:39 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-18 14:39 Eduardo Valentin [this message]
2014-11-18 14:39 ` [PATCHv4 1/1] thermal: of: improve of-thermal sensor registration API Eduardo Valentin
2014-11-18 14:39   ` [lm-sensors] " Eduardo Valentin
2014-11-19  8:06   ` Alexandre Courbot
2014-11-19  8:06     ` [lm-sensors] " Alexandre Courbot
     [not found]     ` <CAAVeFu+aUdpV_hj50TAZDO_5JgRmPH2RtJuP7Qozx4RNEzO-6A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-11-20 13:52       ` Eduardo Valentin
2014-11-20 13:52         ` [lm-sensors] " Eduardo Valentin
2014-11-20 13:52         ` Eduardo Valentin
     [not found]   ` <1416321575-18348-2-git-send-email-edubezval-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2014-11-19  8:21     ` Lukasz Majewski
2014-11-19  8:21       ` [lm-sensors] " Lukasz Majewski
2014-11-19  8:21       ` Lukasz Majewski
2014-11-19 12:03       ` Eduardo Valentin
2014-11-19 12:03         ` [lm-sensors] " Eduardo Valentin
2014-11-19 12:03         ` Eduardo Valentin
2014-11-19 15:41   ` Mikko Perttunen
2014-11-19 15:41     ` [lm-sensors] " Mikko Perttunen
2014-11-19 15:43     ` Mikko Perttunen
2014-11-19 15:43       ` [lm-sensors] " Mikko Perttunen
2014-11-20 13:49       ` Eduardo Valentin
2014-11-20 13:49         ` [lm-sensors] " Eduardo Valentin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1416321575-18348-1-git-send-email-edubezval@gmail.com \
    --to=edubezval@gmail.com \
    --cc=caesar.wang@rock-chips.com \
    --cc=l.majewski@samsung.com \
    --cc=linux-pm@vger.kernel.org \
    --cc=mikko.perttunen@kapsi.fi \
    --cc=wni@nvidia.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.